@expofp/floorplan 3.2.12 → 3.2.14
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/Button-BdvuWzrR.js +204 -0
- package/dist/browser/CookieConsent-bTG3GDKg.js +71 -0
- package/dist/browser/{Debug-BpJ3Yt6j.js → Debug-CjX9xriA.js} +8 -7
- package/dist/browser/{Demo-CAu8tNnV.js → Demo-D66SE96z.js} +12 -11
- package/dist/browser/{Free-Dtjbs5Bb.js → Free-ouV3S0cy.js} +12 -11
- package/dist/browser/{Gallery-DCd-gVeP.js → Gallery-Bm4oVw4n.js} +608 -642
- package/dist/browser/{GpsLoader-CwhaM_rD.js → GpsLoader-BheKXFiI.js} +49 -47
- package/dist/browser/{KioskStore-S-D6b5kf.js → KioskStore-CYaE9WLG.js} +62 -62
- package/dist/browser/{Mapbox-CYVIXxFC.js → Mapbox-CDlR6UrM.js} +40 -39
- package/dist/browser/Modal-DS2N0vIo.js +105 -0
- package/dist/browser/{SetKioskMode-DgSmrgmn.js → SetKioskMode-DofzJB3e.js} +18 -17
- package/dist/browser/{ShowKiosk-Df5igL4n.js → ShowKiosk-UX2N2NU3.js} +11 -10
- package/dist/browser/{ThreeComponent-zl3QtM34.js → ThreeComponent-CglSG5wI.js} +248 -247
- package/dist/browser/{TouchHand-QJXR9zrh.js → TouchHand-DvgAAuKo.js} +15 -14
- package/dist/browser/{ViewerMenuPanel-BQg2PHof.js → ViewerMenuPanel-KPn2i2KL.js} +22 -21
- package/dist/browser/{add-debug-secret-listener-Dpg6hJXG.js → add-debug-secret-listener-BN00-9E4.js} +1 -1
- package/dist/browser/{boolean-editor-B1fg8GRP.js → boolean-editor-fbHiF9vJ.js} +11 -11
- package/dist/browser/{bootIntercom-DPGUvndP.js → bootIntercom-CKo2IztD.js} +3 -3
- package/dist/browser/{box-BgRrEHb5.js → box-B2jxGgXa.js} +6 -6
- package/dist/browser/{browser-CM6Y7IGk.js → browser-vqeti97Y.js} +2 -2
- package/dist/browser/bundle.json +68 -53
- package/dist/browser/{classnames-TFIMEeYe.js → classnames-CHmxGkvV.js} +2 -2
- package/dist/browser/{client-Aih6DWd7.js → client-pnzfy6PK.js} +5 -5
- package/dist/browser/components-DVzc3v5I.js +8145 -0
- package/dist/browser/{data-CfaOzRA9.js → data-BmUUjPca.js} +43 -43
- package/dist/browser/{debug-overlay-CvqXKYqC.js → debug-overlay-B_1ADa5Y.js} +12 -12
- package/dist/browser/{debug-ui-CbGnH4qz.js → debug-ui-DBOzEUkM.js} +7 -7
- package/dist/browser/{dist-Ch41wRCl.js → dist-0qGu5ADv.js} +3 -3
- package/dist/browser/{dist-CucOchil.js → dist-BpuX8MZ6.js} +7 -7
- package/dist/browser/{dist-B53U7F7A.js → dist-DblWkNUV.js} +6 -6
- package/dist/browser/{efp-debug-init-DBd9OXOq.js → efp-debug-init-BwJWCRkJ.js} +3 -3
- package/dist/browser/{enum-editor-BFL483S-.js → enum-editor-BYkKqvGq.js} +12 -12
- package/dist/browser/{exports-rKPKVDu-.js → exports-BRRDMtlG.js} +1 -1
- package/dist/browser/{favicon-D6XggTGV.js → favicon-C_bgpvWA.js} +1 -1
- package/dist/browser/{fetch-retry.umd-GAaYdRWp.js → fetch-retry.umd-Dinto0ag.js} +2 -2
- package/dist/browser/{flex-B3BtW7Bh.js → flex-uHBCXaOV.js} +7 -7
- package/dist/browser/{flex.props-BUSDD_Wi.js → flex.props-eBOcuRMU.js} +3 -3
- package/dist/browser/{floorplan.loader-qfH0ZSkQ.js → floorplan.loader-CMXBnLtZ.js} +650 -649
- package/dist/browser/{floorplan.ready-BbyaL6hp.js → floorplan.ready-UbtSin_R.js} +215 -215
- package/dist/browser/{fuse-D5ZhsMEO.js → fuse-CgTQNNsn.js} +2 -2
- package/dist/browser/{is-debug-Wdhvt3ms.js → i18n-BOl9oxrx.js} +774 -883
- package/dist/browser/index.js +12 -12
- package/dist/browser/is-debug-DMN58EYn.js +122 -0
- package/dist/browser/{jsx-runtime-zUblDIPy.js → jsx-runtime-B2BgIlMm.js} +2 -2
- package/dist/browser/{lib-BUzzfdPD.js → lib-DByP5YwC.js} +5 -5
- package/dist/browser/{main-O6EuNg2i.js → main-D3mbrWsr.js} +1 -1
- package/dist/browser/{mobx-PgfpkqhK.js → mobx-CdvsVcc9.js} +5 -5
- package/dist/browser/{particles.min-C7I-LldI.js → particles.min-DfI3C-qp.js} +2 -2
- package/dist/browser/{prop-types-D8LlC1ig.js → prop-types-B6zERU6Z.js} +2 -2
- package/dist/browser/{react--fZLaqnU.js → react-C3o_QT06.js} +2 -2
- package/dist/browser/{react-dom-BYFyq6EH.js → react-dom-sBqrMskT.js} +3 -3
- package/dist/browser/{reset-all-settings-BlOJ5U7L.js → reset-all-settings-BwKg7iVu.js} +8 -8
- package/dist/browser/{rolldown-runtime-inJhu5W8.js → rolldown-runtime-DB8Ddt08.js} +1 -1
- package/dist/browser/{settings-BGeWcEmK.js → settings-BLMQJ1yq.js} +2 -2
- package/dist/browser/{settings-item-9Fm2cbOj.js → settings-item-C19s0haM.js} +7 -7
- package/dist/browser/{store-DtssCn2i.js → store-CQE29UCE.js} +5679 -5857
- package/dist/browser/{string-editor-Dr-TZeXy.js → string-editor-DyFEQo_P.js} +9 -9
- package/dist/browser/{theme-CXkb1lmK.js → theme-CrwkiIG5.js} +9 -9
- package/dist/browser/{ui-div1xB9Z.js → ui-MUJDbhD1.js} +9 -9
- package/dist/browser/useRenderTarget-Pk0fGZOz.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/data/Flags.d.ts +4 -0
- package/dist/esm/data/Flags.js +1 -0
- package/dist/esm/store/RoutePlannerStore.d.ts +1 -1
- package/dist/esm/store/RoutePlannerStore.js +1 -1
- package/dist/esm/store/RouteStore.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 +3 -3
- package/dist/browser/CookieConsent-D7Z1zvoH.js +0 -8234
- 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,54 +1,56 @@
|
|
|
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.14" };
|
|
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] = "92af1699-30b6-42aa-807b-b4d8c69e1bbb", e._sentryDebugIdIdentifier = "sentry-dbid-92af1699-30b6-42aa-807b-b4d8c69e1bbb");
|
|
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
|
|
15
|
-
import {
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DB8Ddt08.js";
|
|
10
|
+
import { t } from "./react-C3o_QT06.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-B2BgIlMm.js";
|
|
12
|
+
import { K as r, s as i, st as a } from "./i18n-BOl9oxrx.js";
|
|
13
|
+
import { n as o } from "./Button-BdvuWzrR.js";
|
|
14
|
+
import { n as s } from "./CookieConsent-bTG3GDKg.js";
|
|
15
|
+
import { St as c, j as l, o as u, ot as d } from "./store-CQE29UCE.js";
|
|
16
|
+
import { r as f } from "./mobx-CdvsVcc9.js";
|
|
17
|
+
import "./components-DVzc3v5I.js";
|
|
16
18
|
//#region src/components/gps/utils.ts
|
|
17
19
|
var p = /* @__PURE__ */ e(t(), 1);
|
|
18
20
|
function m(e) {
|
|
19
21
|
return Math.floor(e);
|
|
20
22
|
}
|
|
21
23
|
function h(e, t) {
|
|
22
|
-
return
|
|
24
|
+
return d(e.lat, e.lng, t.lat, t.lng) >= 3 ? !0 : e.heading !== t.heading;
|
|
23
25
|
}
|
|
24
26
|
//#endregion
|
|
25
27
|
//#region src/components/gps/useUserLocationAndHeading.ts
|
|
26
28
|
var g = 120, _ = 3e3, v = 360;
|
|
27
29
|
function y(e) {
|
|
28
|
-
let t = (0, p.useRef)(null), n = (0, p.useRef)(null),
|
|
30
|
+
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), u = (t) => e(t), f = (e) => {
|
|
29
31
|
let t = Date.now();
|
|
30
|
-
if (t -
|
|
31
|
-
let n =
|
|
32
|
+
if (t - r.current < g) return;
|
|
33
|
+
let n = i.current;
|
|
32
34
|
if (!s.current) {
|
|
33
|
-
s.current = e,
|
|
35
|
+
s.current = e, r.current = t, i.current = e, u(e);
|
|
34
36
|
return;
|
|
35
37
|
}
|
|
36
|
-
let
|
|
37
|
-
c.current ?
|
|
38
|
+
let a = d(s.current.lat, s.current.lng, e.lat, e.lng), o;
|
|
39
|
+
c.current ? a <= 3 ? (c.current = !1, s.current = e, o = {
|
|
38
40
|
...s.current,
|
|
39
41
|
heading: e.heading
|
|
40
|
-
}) : (s.current = e, o = e) :
|
|
42
|
+
}) : (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
43
|
...s.current,
|
|
42
44
|
heading: e.heading
|
|
43
|
-
}), !(n && !h(n, o)) && (
|
|
45
|
+
}), !(n && !h(n, o)) && (r.current = t, i.current = o, u(o));
|
|
44
46
|
}, y = (0, p.useCallback)((e) => {
|
|
45
47
|
var t;
|
|
46
48
|
let r = (t = e.webkitCompassHeading) == null ? e.alpha == null ? null : v - e.alpha : t;
|
|
47
49
|
if (r == null) return;
|
|
48
|
-
let
|
|
49
|
-
n.current !==
|
|
50
|
-
...
|
|
51
|
-
heading:
|
|
50
|
+
let a = m(r);
|
|
51
|
+
n.current !== a && (n.current = a, i.current && f({
|
|
52
|
+
...i.current,
|
|
53
|
+
heading: a
|
|
52
54
|
}));
|
|
53
55
|
}, [e]);
|
|
54
56
|
return {
|
|
@@ -59,7 +61,7 @@ function y(e) {
|
|
|
59
61
|
lng: e.coords.longitude,
|
|
60
62
|
heading: n.current
|
|
61
63
|
});
|
|
62
|
-
}, (e) =>
|
|
64
|
+
}, (e) => a.warn("Geolocation watch error:", e), {
|
|
63
65
|
enableHighAccuracy: !0,
|
|
64
66
|
maximumAge: 0
|
|
65
67
|
}));
|
|
@@ -77,24 +79,24 @@ function y(e) {
|
|
|
77
79
|
}
|
|
78
80
|
//#endregion
|
|
79
81
|
//#region src/components/gps/GpsPermissionRequest.tsx
|
|
80
|
-
var b = n(), x =
|
|
81
|
-
return e ? /* @__PURE__ */ (0, b.jsx)(
|
|
82
|
-
title:
|
|
83
|
-
acceptText:
|
|
84
|
-
rejectText:
|
|
82
|
+
var b = n(), x = o(function({ isOpen: e, onAllow: t, onCancel: n }) {
|
|
83
|
+
return e ? /* @__PURE__ */ (0, b.jsx)(s, {
|
|
84
|
+
title: i("Show your position on the map"),
|
|
85
|
+
acceptText: i("Allow compass access"),
|
|
86
|
+
rejectText: i("Not now"),
|
|
85
87
|
onClickAccept: t,
|
|
86
88
|
onClickReject: n,
|
|
87
|
-
children:
|
|
89
|
+
children: i("To display your current position and orient the map around you, we’ll ask for permission to access your device orientation")
|
|
88
90
|
}) : null;
|
|
89
91
|
});
|
|
90
92
|
//#endregion
|
|
91
93
|
//#region src/components/gps/GpsManager.tsx
|
|
92
|
-
function S({ onPositionUpdate: e, onAllowCompass: t, onRejectCompass: n, orientationStorageKey:
|
|
93
|
-
let { startOrientation:
|
|
94
|
+
function S({ onPositionUpdate: e, onAllowCompass: t, onRejectCompass: n, orientationStorageKey: r = "compass-permission-granted", requestCompass: i = !0, requestCompassAllowed: o = !0 }) {
|
|
95
|
+
let { startOrientation: s, startGeolocation: l, stopOrientation: u, stopGeolocation: d } = y(e), [f, m] = (0, p.useState)(!1), [h, g] = (0, p.useState)(!1);
|
|
94
96
|
(0, p.useEffect)(() => (navigator.geolocation.getCurrentPosition(() => {
|
|
95
97
|
m(!0), l();
|
|
96
98
|
}, (e) => {
|
|
97
|
-
|
|
99
|
+
a.warn("Geolocation error:", e), m(!1);
|
|
98
100
|
}), () => {
|
|
99
101
|
u(), d();
|
|
100
102
|
}), [
|
|
@@ -103,22 +105,22 @@ function S({ onPositionUpdate: e, onAllowCompass: t, onRejectCompass: n, orienta
|
|
|
103
105
|
u
|
|
104
106
|
]);
|
|
105
107
|
let _ = async () => {
|
|
106
|
-
typeof DeviceOrientationEvent < "u" && typeof DeviceOrientationEvent.requestPermission == "function" && await DeviceOrientationEvent.requestPermission() !== "granted" || (localStorage.setItem(
|
|
108
|
+
typeof DeviceOrientationEvent < "u" && typeof DeviceOrientationEvent.requestPermission == "function" && await DeviceOrientationEvent.requestPermission() !== "granted" || (localStorage.setItem(r, "true"), s(), g(!1), t == null || t());
|
|
107
109
|
}, v = (0, p.useCallback)(() => {
|
|
108
|
-
localStorage.setItem(
|
|
110
|
+
localStorage.setItem(r, "false"), g(!1), n == null || n();
|
|
109
111
|
}, [n]);
|
|
110
112
|
return (0, p.useEffect)(() => {
|
|
111
|
-
if (!f || !
|
|
112
|
-
let e = localStorage.getItem(
|
|
113
|
-
if (!e ||
|
|
113
|
+
if (!f || !o || typeof navigator > "u" || !c) return;
|
|
114
|
+
let e = localStorage.getItem(r);
|
|
115
|
+
if (!e || i) {
|
|
114
116
|
g(!0);
|
|
115
117
|
return;
|
|
116
118
|
}
|
|
117
119
|
e === "true" && _();
|
|
118
120
|
}, [
|
|
119
121
|
f,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
i,
|
|
123
|
+
o,
|
|
122
124
|
_
|
|
123
125
|
]), /* @__PURE__ */ (0, b.jsx)(x, {
|
|
124
126
|
isOpen: h,
|
|
@@ -129,24 +131,24 @@ function S({ onPositionUpdate: e, onAllowCompass: t, onRejectCompass: n, orienta
|
|
|
129
131
|
//#endregion
|
|
130
132
|
//#region src/components/GpsLoader.tsx
|
|
131
133
|
function C({ requestCompassAllowed: e }) {
|
|
132
|
-
let [t, n] = (0, p.useState)(!1),
|
|
133
|
-
|
|
134
|
+
let [t, n] = (0, p.useState)(!1), i = (0, p.useCallback)(({ lat: e, lng: t, angle: n, heading: r }) => {
|
|
135
|
+
u.routeStore.selectCurrentPosition(new l(0, 0, 0, n || r, e, t), !1);
|
|
134
136
|
}, []), a = (0, p.useCallback)(() => {
|
|
135
|
-
|
|
137
|
+
u.routeStore.requestCompass = void 0, n(!1);
|
|
136
138
|
}, [n]), o = (0, p.useCallback)(() => {
|
|
137
|
-
|
|
139
|
+
u.routeStore.requestCompass = void 0, n(!1);
|
|
138
140
|
}, [n]);
|
|
139
|
-
return f(() =>
|
|
141
|
+
return f(() => u.uiState.hideCookieConsent, (e) => {
|
|
140
142
|
n(e);
|
|
141
|
-
}), f(() =>
|
|
143
|
+
}), f(() => u.routeStore.requestCompass, (e) => {
|
|
142
144
|
n(e);
|
|
143
145
|
}), /* @__PURE__ */ (0, b.jsx)(S, {
|
|
144
146
|
requestCompass: t,
|
|
145
147
|
requestCompassAllowed: e,
|
|
146
148
|
onRejectCompass: a,
|
|
147
149
|
onAllowCompass: o,
|
|
148
|
-
orientationStorageKey:
|
|
149
|
-
onPositionUpdate:
|
|
150
|
+
orientationStorageKey: r,
|
|
151
|
+
onPositionUpdate: i
|
|
150
152
|
});
|
|
151
153
|
}
|
|
152
154
|
//#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.14" };
|
|
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] = "212a51c0-b269-40a0-b549-2b4250b9f308", e._sentryDebugIdIdentifier = "sentry-dbid-212a51c0-b269-40a0-b549-2b4250b9f308");
|
|
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-BOl9oxrx.js";
|
|
10
|
+
import { D as o, E as s, O as c, Pt as l, ht as u, o as d } from "./store-CQE29UCE.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,28 +1,29 @@
|
|
|
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.14" };
|
|
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] = "b0131d65-2be6-49e1-bc28-63379c7616bb", e._sentryDebugIdIdentifier = "sentry-dbid-b0131d65-2be6-49e1-bc28-63379c7616bb");
|
|
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 {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DB8Ddt08.js";
|
|
10
|
+
import { t } from "./react-C3o_QT06.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-B2BgIlMm.js";
|
|
12
|
+
import { t as r } from "./classnames-CHmxGkvV.js";
|
|
13
|
+
import { i, r as a } from "./Button-BdvuWzrR.js";
|
|
14
|
+
import { Kn as o, Yn as s, o as c, s as l, t as u } from "./store-CQE29UCE.js";
|
|
15
|
+
import { r as d } from "./mobx-CdvsVcc9.js";
|
|
16
|
+
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-BmUUjPca.js";
|
|
16
17
|
//#region src/components/Mapbox/Mapbox.tsx
|
|
17
18
|
var E = /* @__PURE__ */ e(r(), 1), D = /* @__PURE__ */ e(f(), 1), O = /* @__PURE__ */ e(t(), 1), k = n();
|
|
18
19
|
function A() {
|
|
19
|
-
let e = (0, O.useRef)(null), t = (0, O.useRef)(null), n = null, r = [], f =
|
|
20
|
+
let e = (0, O.useRef)(null), t = (0, O.useRef)(null), n = null, r = [], f = a(() => ({
|
|
20
21
|
get initselected() {
|
|
21
22
|
return ![...l.selectedBooths].filter((e) => e.rect);
|
|
22
23
|
},
|
|
23
24
|
get actualCurrentPosition() {
|
|
24
|
-
let e =
|
|
25
|
-
return !(e != null && e.z) ||
|
|
25
|
+
let e = c.routeStore.currentPosition;
|
|
26
|
+
return !(e != null && e.z) || c.layerStore.visible.indexOf(c.layerStore.findLayer(e.z)) > -1 ? e : null;
|
|
26
27
|
},
|
|
27
28
|
get style() {
|
|
28
29
|
return { left: 0 };
|
|
@@ -43,28 +44,28 @@ function A() {
|
|
|
43
44
|
accessToken: x.token
|
|
44
45
|
}), T(t.current), t.current.on("load", async () => {
|
|
45
46
|
var e;
|
|
46
|
-
setTimeout(() => p(f.initselected ?
|
|
47
|
+
setTimeout(() => p(f.initselected ? s.fromMultiple([...l.selectedBooths].filter((e) => e.rect).map((e) => e.rect)) : o, 15, 4e3), 1500), t.current.setLight({
|
|
47
48
|
anchor: "viewport",
|
|
48
49
|
color: "white",
|
|
49
50
|
intensity: 0
|
|
50
51
|
});
|
|
51
|
-
let n = await C(
|
|
52
|
-
m(
|
|
53
|
-
x:
|
|
54
|
-
y:
|
|
55
|
-
} : null), h("cp", f.actualCurrentPosition), r = y(
|
|
52
|
+
let n = await C(c.boothStore.booths);
|
|
53
|
+
m(c.boothStore.booths, n), h("yah", (e = c.routeStore.defaultFrom) != null && e.rect ? {
|
|
54
|
+
x: c.routeStore.defaultFrom.rect.cx,
|
|
55
|
+
y: c.routeStore.defaultFrom.rect.cy
|
|
56
|
+
} : null), h("cp", f.actualCurrentPosition), r = y(c.layerStore.layers);
|
|
56
57
|
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 =
|
|
58
|
+
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) => {
|
|
59
|
+
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
60
|
var t;
|
|
60
61
|
return e.name === (i == null || (t = i.properties) == null ? void 0 : t.id);
|
|
61
62
|
});
|
|
62
|
-
|
|
63
|
+
c.clickBooth(a);
|
|
63
64
|
});
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
67
|
}), d(() => l.zoomBy, () => {
|
|
67
|
-
if (!l.zoomBy || !
|
|
68
|
+
if (!l.zoomBy || !c.mapboxStore.showMapbox) return;
|
|
68
69
|
let e = l.zoomBy;
|
|
69
70
|
l.zoomBy = null, t.current.flyTo({
|
|
70
71
|
zoom: t.current.getZoom() + (e > 1 ? .5 : -.5),
|
|
@@ -73,43 +74,43 @@ function A() {
|
|
|
73
74
|
essential: !0
|
|
74
75
|
});
|
|
75
76
|
}), d(() => [
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
c.layerStore.loaded,
|
|
78
|
+
c.layerStore.visible,
|
|
78
79
|
l.selectedRoute
|
|
79
80
|
], () => {
|
|
80
81
|
var e, n;
|
|
81
82
|
r.forEach((e) => {
|
|
82
|
-
let n = e.split("--")[0], r =
|
|
83
|
+
let n = e.split("--")[0], r = c.layerStore.layers.find((e) => e.name === n);
|
|
83
84
|
(r.visible || t.current.getLayoutProperty(e, "visibility") !== "none") && t.current.setLayoutProperty(e, "visibility", r.visible ? "visible" : "none");
|
|
84
|
-
}), _([...l.selectedBooths],
|
|
85
|
-
x:
|
|
86
|
-
y:
|
|
85
|
+
}), _([...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 ? {
|
|
86
|
+
x: c.routeStore.defaultFrom.rect.cx,
|
|
87
|
+
y: c.routeStore.defaultFrom.rect.cy
|
|
87
88
|
} : null), h("cp", f.actualCurrentPosition);
|
|
88
89
|
}), d(() => l.hoveredBooths, () => {
|
|
89
90
|
n && (clearTimeout(n), n = null), n = setTimeout(() => {
|
|
90
91
|
n = null, S([...l.hoveredBooths].filter((e) => {
|
|
91
92
|
var t, n;
|
|
92
93
|
return (t = (n = e.layer) == null ? void 0 : n.visible) == null ? !0 : t;
|
|
93
|
-
}),
|
|
94
|
+
}), c.boothStore.booths);
|
|
94
95
|
}, 50);
|
|
95
96
|
}), d(() => [l.selectedBooths, l.listBooths], () => {
|
|
96
97
|
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(
|
|
98
|
+
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);
|
|
99
|
+
}), d(() => c.mapboxStore.showMapbox, () => {
|
|
100
|
+
g(c.mapboxStore.showMapbox);
|
|
100
101
|
}), d(() => l.moveToBooths, () => {
|
|
101
|
-
if (!l.moveToBooths || !
|
|
102
|
-
let e = l.moveToBooths.filter((e) => e.rect).map((e) => e.rect), t =
|
|
102
|
+
if (!l.moveToBooths || !c.mapboxStore.showMapbox) return;
|
|
103
|
+
let e = l.moveToBooths.filter((e) => e.rect).map((e) => e.rect), t = s.fromMultiple(e);
|
|
103
104
|
e.length && p(t), l.moveToBooths = null;
|
|
104
105
|
}), d(() => l.moveToRect, () => {
|
|
105
|
-
!l.moveToRect || !
|
|
106
|
+
!l.moveToRect || !c.mapboxStore.showMapbox || (p(l.moveToRect, 15), l.moveToRect = null);
|
|
106
107
|
}), d(() => l.moveToLocation, () => {
|
|
107
|
-
!l.moveToLocation || !
|
|
108
|
+
!l.moveToLocation || !c.mapboxStore.showMapbox || v();
|
|
108
109
|
}), d(() => l.centerMap, () => {
|
|
109
|
-
!l.centerMap || !
|
|
110
|
-
}), d(() =>
|
|
110
|
+
!l.centerMap || !c.mapboxStore.showMapbox || (p(s.fromMultiple(u.booths.map((e) => e.rect)), 15), l.centerMap = !1);
|
|
111
|
+
}), d(() => c.routeStore.routeLines, () => b(c.routeStore)), d(() => f.actualCurrentPosition, () => h("cp", f.actualCurrentPosition)), i(() => /* @__PURE__ */ (0, k.jsx)("div", {
|
|
111
112
|
style: f.style,
|
|
112
|
-
className: (0, E.default)("map-container", { hidden: !
|
|
113
|
+
className: (0, E.default)("map-container", { hidden: !c.mapboxStore.showMapbox }),
|
|
113
114
|
children: /* @__PURE__ */ (0, k.jsx)("div", {
|
|
114
115
|
ref: e,
|
|
115
116
|
className: (0, E.default)("map-wrapper", "mapboxgl-map")
|