@expofp/floorplan 3.0.0-alpha.14 → 3.0.0-alpha.16
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/{Debug-Pul6-ZdY.js → Debug-DazuGIJc.js} +19 -10
- package/dist/browser/Demo-CXdISYQf.js +47 -0
- package/dist/browser/{Free-Dm2FRajw.js → Free-CVgHQ8yt.js} +29 -20
- package/dist/browser/Gallery-BMcvPLO_.js +288 -0
- package/dist/browser/GpsLoader-BiwFO3QG.js +140 -0
- package/dist/browser/{KioskStore-Bvvm0aNQ.js → KioskStore-NqUeUutQ.js} +58 -49
- package/dist/browser/Mapbox-PHCrBnx5.js +118 -0
- package/dist/browser/{SetKioskMode-BecTBVRp.js → SetKioskMode-DMQej1ec.js} +86 -77
- package/dist/browser/{ShowKiosk-C-6DHz7T.js → ShowKiosk-BWlBMcI7.js} +28 -19
- package/dist/browser/{ThreeComponent-Brnrh22I.js → ThreeComponent-Dmt2HPyX.js} +181 -172
- package/dist/browser/ViewerMenuPanel-CuqRZ7m1.js +77 -0
- package/dist/browser/boolean-editor-zsvPcNpX.js +157 -0
- package/dist/browser/bundle.json +32 -29
- package/dist/browser/{client-D3Op9Jdd.js → client-B2kCMH8A.js} +590 -581
- package/dist/browser/{data-0pZ-ZMEi.js → data-BtD6blv7.js} +276 -267
- package/dist/browser/{debug-overlay-6c_tWF4O.js → debug-overlay-CF0imHRX.js} +98 -89
- package/dist/browser/debug-ui-Zt7T7T-N.js +67 -0
- package/dist/browser/{favicon-DalyEhbd.js → favicon-Dj8hNa7i.js} +11 -2
- package/dist/browser/fetch-retry.umd-B-swKpFA.js +123 -0
- package/dist/browser/{flex-OW_m-DBA.js → flex-COa6XN1F.js} +80 -71
- package/dist/browser/{floorplan.ready-D-VQ-QvS.js → floorplan.ready-CNnM_Yyc.js} +12217 -14231
- package/dist/browser/fonts/efp-symbols.woff +0 -0
- package/dist/browser/index-B1P-x0sk.js +92 -0
- package/dist/browser/index-BEcZnTgd.js +54 -0
- package/dist/browser/{index-BUq8_R36.js → index-BeS6l0j-.js} +50 -41
- package/dist/browser/index-C04zJbbt.js +12475 -0
- package/dist/browser/index-CgWDjED_.js +57 -0
- package/dist/browser/{index-BuJlIIdP.js → index-CqICVJZO.js} +96 -87
- package/dist/browser/{index-AJbTBu7z.js → index-atMSRNM1.js} +258 -249
- package/dist/browser/index.js +11 -2
- package/dist/browser/jsx-runtime-DAY7g56y.js +40 -0
- package/dist/browser/locales/ar.json +3 -1
- package/dist/browser/locales/de.json +3 -1
- package/dist/browser/locales/es.json +3 -1
- package/dist/browser/locales/fr.json +3 -1
- package/dist/browser/locales/he.json +3 -1
- package/dist/browser/locales/it.json +3 -1
- package/dist/browser/locales/kk.json +3 -1
- package/dist/browser/locales/ko.json +3 -1
- package/dist/browser/locales/mn.json +3 -1
- package/dist/browser/locales/nl.json +3 -1
- package/dist/browser/locales/pl.json +3 -1
- package/dist/browser/locales/pt.json +3 -1
- package/dist/browser/locales/ru.json +3 -1
- package/dist/browser/locales/sv.json +3 -1
- package/dist/browser/locales/th.json +3 -1
- package/dist/browser/locales/tr.json +3 -1
- package/dist/browser/locales/uk.json +3 -1
- package/dist/browser/locales/vi.json +3 -1
- package/dist/browser/locales/zh.json +3 -1
- package/dist/browser/{main-CD9JioNt.js → main-DZpmA53N.js} +24 -15
- package/dist/browser/{particles.min-BZTb0pvb.js → particles.min-DXab_WLN.js} +43 -34
- package/dist/esm/components/Alert.d.ts +2 -0
- package/dist/esm/components/Alert.js +1 -1
- package/dist/esm/components/Badge.d.ts +3 -2
- package/dist/esm/components/Badge.js +1 -1
- package/dist/esm/components/CookieConsent.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.js +1 -1
- package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/components/Overlay.d.ts +2 -0
- package/dist/esm/components/Overlay.js +1 -1
- package/dist/esm/components/OverlayContainer.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/Schedule.js +1 -1
- package/dist/esm/components/SearchBox.js +1 -1
- package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
- package/dist/esm/components/ViewerMenuPanel.js +1 -0
- package/dist/esm/constants.d.ts +2 -0
- package/dist/esm/constants.js +1 -1
- package/dist/esm/floorplan.loader.d.ts +2 -0
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/services/routing.js +1 -1
- package/dist/esm/store/LayerStore.d.ts +1 -0
- package/dist/esm/store/LayerStore.js +1 -1
- package/dist/esm/store/RoutePlannerStore.d.ts +16 -0
- package/dist/esm/store/RoutePlannerStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +1 -0
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/init/init-layers.js +1 -1
- package/dist/esm/tools/telemetry.d.ts +35 -0
- package/dist/esm/tools/telemetry.js +1 -0
- package/dist/esm/tools/track-event.d.ts +3 -1
- package/dist/esm/tools/track-event.js +1 -1
- package/dist/esm/utils/i18n.d.ts +2 -2
- package/dist/esm/utils/i18n.js +1 -1
- package/package.json +4 -3
- package/dist/browser/Demo-DN_Ej-P_.js +0 -38
- package/dist/browser/Gallery-TLr-wfCG.js +0 -279
- package/dist/browser/GpsLoader-CeS0cp98.js +0 -131
- package/dist/browser/Mapbox-DizBJSb0.js +0 -109
- package/dist/browser/boolean-editor-Duwgypgb.js +0 -148
- package/dist/browser/debug-ui-TGRI1j4k.js +0 -58
- package/dist/browser/fetch-retry.umd-BZ52tMyv.js +0 -114
- package/dist/browser/index-B2YV6GNs.js +0 -48
- package/dist/browser/index-D0SjrKD-.js +0 -45
- package/dist/browser/index-Vc2rrV4B.js +0 -83
- package/dist/browser/index-Zz9lJz5_.js +0 -10224
- package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
|
@@ -1,21 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./jsx-runtime-
|
|
3
|
-
import "./
|
|
4
|
-
import "./index-
|
|
5
|
-
function
|
|
6
|
-
|
|
1
|
+
import { av as h, j as b, p as d, q as l, h as g } from "./index-C04zJbbt.js";
|
|
2
|
+
import "./jsx-runtime-DAY7g56y.js";
|
|
3
|
+
import { s as o, ao as k, ap as v, aq as D, ar as O } from "./floorplan.ready-CNnM_Yyc.js";
|
|
4
|
+
import "./index-BEcZnTgd.js";
|
|
5
|
+
(function() {
|
|
6
|
+
try {
|
|
7
|
+
var a = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
8
|
+
a.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
|
|
9
|
+
var e = new a.Error().stack;
|
|
10
|
+
e && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[e] = "e86a9cfd-9445-4344-9fa4-a2d8e4fb087b", a._sentryDebugIdIdentifier = "sentry-dbid-e86a9cfd-9445-4344-9fa4-a2d8e4fb087b");
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
})();
|
|
14
|
+
function w(a) {
|
|
15
|
+
const e = a.viewport.canvasToSvg({
|
|
7
16
|
x: 0,
|
|
8
17
|
y: 0
|
|
9
|
-
}), r =
|
|
10
|
-
x:
|
|
18
|
+
}), r = a.viewport.canvasToSvg({
|
|
19
|
+
x: a.canvas.clientWidth,
|
|
11
20
|
y: 0
|
|
12
|
-
}),
|
|
21
|
+
}), i = a.viewport.canvasToSvg({
|
|
13
22
|
x: 0,
|
|
14
|
-
y:
|
|
15
|
-
}), p =
|
|
16
|
-
x:
|
|
17
|
-
y:
|
|
18
|
-
}), s = Math.min(e.x, r.x,
|
|
23
|
+
y: a.canvas.clientHeight
|
|
24
|
+
}), p = a.viewport.canvasToSvg({
|
|
25
|
+
x: a.canvas.clientWidth,
|
|
26
|
+
y: a.canvas.clientHeight
|
|
27
|
+
}), s = Math.min(e.x, r.x, i.x, p.x), c = Math.max(e.x, r.x, i.x, p.x), u = Math.min(e.y, r.y, i.y, p.y), y = Math.max(e.y, r.y, i.y, p.y);
|
|
19
28
|
return {
|
|
20
29
|
x: s,
|
|
21
30
|
y: u,
|
|
@@ -31,37 +40,37 @@ function P(n) {
|
|
|
31
40
|
}
|
|
32
41
|
};
|
|
33
42
|
}
|
|
34
|
-
function
|
|
35
|
-
const r =
|
|
43
|
+
function C(a, e) {
|
|
44
|
+
const r = w(a);
|
|
36
45
|
return e.x >= r.left && e.x <= r.right && e.y >= r.bottom && e.y <= r.top;
|
|
37
46
|
}
|
|
38
47
|
var t, S, m;
|
|
39
|
-
function
|
|
40
|
-
r && Object.defineProperty(
|
|
48
|
+
function f(a, e, r, i) {
|
|
49
|
+
r && Object.defineProperty(a, e, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(i) : void 0 });
|
|
41
50
|
}
|
|
42
|
-
function
|
|
51
|
+
function n(a, e, r, i, p) {
|
|
43
52
|
var s = {};
|
|
44
|
-
return Object.keys(
|
|
45
|
-
s[c] =
|
|
53
|
+
return Object.keys(i).forEach(function(c) {
|
|
54
|
+
s[c] = i[c];
|
|
46
55
|
}), s.enumerable = !!s.enumerable, s.configurable = !!s.configurable, ("value" in s || s.initializer) && (s.writable = !0), s = r.slice().reverse().reduce(function(c, u) {
|
|
47
|
-
return u(
|
|
48
|
-
}, s), p && s.initializer !== void 0 && (s.value = s.initializer ? s.initializer.call(p) : void 0, s.initializer = void 0), s.initializer === void 0 ? (Object.defineProperty(
|
|
56
|
+
return u(a, e, c) || c;
|
|
57
|
+
}, s), p && s.initializer !== void 0 && (s.value = s.initializer ? s.initializer.call(p) : void 0, s.initializer = void 0), s.initializer === void 0 ? (Object.defineProperty(a, e, s), null) : s;
|
|
49
58
|
}
|
|
50
|
-
let
|
|
59
|
+
let P = (t = class {
|
|
51
60
|
constructor() {
|
|
52
|
-
|
|
61
|
+
f(this, "savedKiosk", S, this), f(this, "statusMessages", m, this), this.statusMessageTimer = 0, this.initialPtScale = void 0;
|
|
53
62
|
}
|
|
54
63
|
get kiosk() {
|
|
55
|
-
return
|
|
64
|
+
return o.uiState.kioskData;
|
|
56
65
|
}
|
|
57
66
|
setKiosk(e) {
|
|
58
|
-
|
|
67
|
+
o.uiState.setKioskData(e);
|
|
59
68
|
}
|
|
60
69
|
get renderer() {
|
|
61
|
-
return
|
|
70
|
+
return o.rendererService.renderer;
|
|
62
71
|
}
|
|
63
72
|
getCameraState() {
|
|
64
|
-
const e =
|
|
73
|
+
const e = o.rendererService.getCameraState();
|
|
65
74
|
return e ? {
|
|
66
75
|
mapInitialPtScale: this.initialPtScale,
|
|
67
76
|
mapPtScale: e.ptScale,
|
|
@@ -75,10 +84,10 @@ let w = (t = class {
|
|
|
75
84
|
const e = this.savedKiosk, r = h(this.kiosk);
|
|
76
85
|
if (!r || !e)
|
|
77
86
|
return !!r != !!e;
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
87
|
+
const i = Object.keys(e), p = Object.keys(r);
|
|
88
|
+
if (i.length !== p.length)
|
|
80
89
|
return !0;
|
|
81
|
-
for (const s of
|
|
90
|
+
for (const s of i)
|
|
82
91
|
if (!(s in r) || e[s] !== r[s])
|
|
83
92
|
return !0;
|
|
84
93
|
return !1;
|
|
@@ -99,7 +108,7 @@ let w = (t = class {
|
|
|
99
108
|
const {
|
|
100
109
|
z: e,
|
|
101
110
|
mapRollDegrees: r,
|
|
102
|
-
mapInitialPtScale:
|
|
111
|
+
mapInitialPtScale: i,
|
|
103
112
|
mapPtScale: p,
|
|
104
113
|
mapCenterX: s,
|
|
105
114
|
mapCenterY: c
|
|
@@ -110,43 +119,43 @@ let w = (t = class {
|
|
|
110
119
|
roll: !0,
|
|
111
120
|
pitch: !0
|
|
112
121
|
}, !0), b(() => {
|
|
113
|
-
Number.isFinite(
|
|
122
|
+
Number.isFinite(i) && Number.isFinite(p) && p > 0 && this.renderer.controls.zoomBy(i / p, !0), Number.isFinite(s) && Number.isFinite(c) && this.renderer.controls.panTo(s, c, !0), Number.isFinite(r) && this.renderer.controls.rollTo(r, !0), e && o.fp.activateFloor({
|
|
114
123
|
name: e
|
|
115
124
|
});
|
|
116
125
|
});
|
|
117
126
|
}
|
|
118
127
|
restoreData() {
|
|
119
|
-
const e =
|
|
120
|
-
return e && (this.setKiosk(e), this.savedKiosk = e,
|
|
128
|
+
const e = k();
|
|
129
|
+
return e && (this.setKiosk(e), this.savedKiosk = e, o.uiState.kiosk = !0, this.resetCamera()), e;
|
|
121
130
|
}
|
|
122
131
|
handleSetupReady() {
|
|
123
|
-
this.restoreData(),
|
|
132
|
+
this.restoreData(), o.uiState.kiosk = !0, o.uiState.hideFreeOrDemo = !0, o.uiState.setForceDimm(!0), o.searchStore.setSearchText(""), o.searchStore.setFocused(!1);
|
|
124
133
|
}
|
|
125
134
|
handleClose() {
|
|
126
|
-
this.setKiosk(null),
|
|
135
|
+
this.setKiosk(null), o.uiState.setForceDimm(!1), o.uiState.enableSetKioskMode(!1), o.searchStore.closeSearch(), this.resetCamera();
|
|
127
136
|
}
|
|
128
137
|
handleDelete() {
|
|
129
|
-
|
|
138
|
+
v(), this.setKiosk(null), o.uiState.resetMapSettings(), o.uiState.resetUIScale(), this.resetCamera(), this.addStatusMessage({
|
|
130
139
|
variant: "success",
|
|
131
140
|
title: "Deleted"
|
|
132
141
|
});
|
|
133
142
|
}
|
|
134
143
|
handleSave() {
|
|
135
|
-
const e = h(this.kiosk), r = this.getCameraState(),
|
|
144
|
+
const e = h(this.kiosk), r = this.getCameraState(), i = {
|
|
136
145
|
...e,
|
|
137
146
|
...r
|
|
138
147
|
};
|
|
139
|
-
if (!
|
|
148
|
+
if (!C(this.renderer, i)) {
|
|
140
149
|
this.addStatusMessage({
|
|
141
150
|
variant: "error",
|
|
142
151
|
title: "Kiosk not visible"
|
|
143
152
|
});
|
|
144
153
|
return;
|
|
145
154
|
}
|
|
146
|
-
this.setKiosk(
|
|
155
|
+
this.setKiosk(i), D(i), o.uiState.setUIScale(i.uiScale, !0), this.addStatusMessage({
|
|
147
156
|
variant: "success",
|
|
148
157
|
title: "Saved"
|
|
149
|
-
}), this.savedKiosk =
|
|
158
|
+
}), this.savedKiosk = i;
|
|
150
159
|
}
|
|
151
160
|
delayChange(e) {
|
|
152
161
|
requestAnimationFrame(() => e == null ? void 0 : e());
|
|
@@ -159,7 +168,7 @@ let w = (t = class {
|
|
|
159
168
|
}), Number.isFinite(e.scale) && (this.setKiosk({
|
|
160
169
|
...r,
|
|
161
170
|
uiScale: e.scale
|
|
162
|
-
}), this.delayChange(() =>
|
|
171
|
+
}), this.delayChange(() => o.uiState.setUIScale(e.scale, !1))), Number.isFinite(e.percent) && this.setKiosk({
|
|
163
172
|
...r,
|
|
164
173
|
iconSizePercent: e.percent
|
|
165
174
|
}));
|
|
@@ -178,7 +187,7 @@ let w = (t = class {
|
|
|
178
187
|
point: e
|
|
179
188
|
}) {
|
|
180
189
|
var c;
|
|
181
|
-
const r = h(this.kiosk),
|
|
190
|
+
const r = h(this.kiosk), i = o.fp.getFloors(), p = O() ? (c = i.find((u) => u.active)) == null ? void 0 : c.name : null, s = o.uiState.uiScale;
|
|
182
191
|
this.setKiosk({
|
|
183
192
|
...r,
|
|
184
193
|
x: e.x,
|
|
@@ -197,20 +206,20 @@ let w = (t = class {
|
|
|
197
206
|
...this.getCameraState()
|
|
198
207
|
});
|
|
199
208
|
}
|
|
200
|
-
},
|
|
209
|
+
}, n(t.prototype, "kiosk", [d], Object.getOwnPropertyDescriptor(t.prototype, "kiosk"), t.prototype), n(t.prototype, "setKiosk", [l], Object.getOwnPropertyDescriptor(t.prototype, "setKiosk"), t.prototype), n(t.prototype, "renderer", [d], Object.getOwnPropertyDescriptor(t.prototype, "renderer"), t.prototype), S = n(t.prototype, "savedKiosk", [g], {
|
|
201
210
|
configurable: !0,
|
|
202
211
|
enumerable: !0,
|
|
203
212
|
writable: !0,
|
|
204
213
|
initializer: null
|
|
205
|
-
}),
|
|
214
|
+
}), n(t.prototype, "hasUnsavedChanges", [d], Object.getOwnPropertyDescriptor(t.prototype, "hasUnsavedChanges"), t.prototype), m = n(t.prototype, "statusMessages", [g], {
|
|
206
215
|
configurable: !0,
|
|
207
216
|
enumerable: !0,
|
|
208
217
|
writable: !0,
|
|
209
218
|
initializer: function() {
|
|
210
219
|
return [];
|
|
211
220
|
}
|
|
212
|
-
}),
|
|
213
|
-
const F = new
|
|
221
|
+
}), n(t.prototype, "addStatusMessage", [l], Object.getOwnPropertyDescriptor(t.prototype, "addStatusMessage"), t.prototype), n(t.prototype, "clearStatusMessages", [l], Object.getOwnPropertyDescriptor(t.prototype, "clearStatusMessages"), t.prototype), n(t.prototype, "startCleanupMessages", [l], Object.getOwnPropertyDescriptor(t.prototype, "startCleanupMessages"), t.prototype), n(t.prototype, "resetCamera", [l], Object.getOwnPropertyDescriptor(t.prototype, "resetCamera"), t.prototype), n(t.prototype, "restoreData", [l], Object.getOwnPropertyDescriptor(t.prototype, "restoreData"), t.prototype), n(t.prototype, "handleSetupReady", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleSetupReady"), t.prototype), n(t.prototype, "handleClose", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleClose"), t.prototype), n(t.prototype, "handleDelete", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleDelete"), t.prototype), n(t.prototype, "handleSave", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleSave"), t.prototype), n(t.prototype, "handleChange", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleChange"), t.prototype), n(t.prototype, "setInitialPtScale", [l], Object.getOwnPropertyDescriptor(t.prototype, "setInitialPtScale"), t.prototype), n(t.prototype, "handleClick", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleClick"), t.prototype), n(t.prototype, "handleNavigationChange", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleNavigationChange"), t.prototype), t);
|
|
222
|
+
const F = new P();
|
|
214
223
|
export {
|
|
215
224
|
F as k
|
|
216
225
|
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { j as B } from "./jsx-runtime-DAY7g56y.js";
|
|
2
|
+
import { y as w } from "./index-BEcZnTgd.js";
|
|
3
|
+
import { p, m as z, s as P, a as f, l as E, b as k, c as b, d as C, u as T, e as D, f as M, g as F, h as I, i as _ } from "./data-BtD6blv7.js";
|
|
4
|
+
import { u as j, s as e, a as t, R as x, d as N, e as n, f as O, c as A } from "./floorplan.ready-CNnM_Yyc.js";
|
|
5
|
+
import { r as S } from "./index-C04zJbbt.js";
|
|
6
|
+
(function() {
|
|
7
|
+
try {
|
|
8
|
+
var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
9
|
+
i.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
|
|
10
|
+
var r = new i.Error().stack;
|
|
11
|
+
r && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[r] = "78ce0388-27ac-4b17-bca0-c443d45725e4", i._sentryDebugIdIdentifier = "sentry-dbid-78ce0388-27ac-4b17-bca0-c443d45725e4");
|
|
12
|
+
} catch {
|
|
13
|
+
}
|
|
14
|
+
})();
|
|
15
|
+
function $() {
|
|
16
|
+
const i = S.useRef(null), r = S.useRef(null);
|
|
17
|
+
let c = null, d = [];
|
|
18
|
+
const u = j(() => ({
|
|
19
|
+
get initselected() {
|
|
20
|
+
return ![...t.selectedBooths].filter((o) => o.rect);
|
|
21
|
+
},
|
|
22
|
+
get actualCurrentPosition() {
|
|
23
|
+
const o = e.routeStore.currentPosition;
|
|
24
|
+
return !(o != null && o.z) || e.layerStore.visible.indexOf(e.layerStore.findLayer(o.z)) > -1 ? o : null;
|
|
25
|
+
},
|
|
26
|
+
get style() {
|
|
27
|
+
return {
|
|
28
|
+
left: 0
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}));
|
|
32
|
+
return S.useEffect(() => {
|
|
33
|
+
if (!r.current) {
|
|
34
|
+
var {
|
|
35
|
+
cx: o,
|
|
36
|
+
cy: l
|
|
37
|
+
} = p.viewbox;
|
|
38
|
+
r.current = new z.Map({
|
|
39
|
+
container: i.current,
|
|
40
|
+
style: `mapbox://styles/mapbox/${p.style}`,
|
|
41
|
+
center: [o, l],
|
|
42
|
+
zoom: 15.5,
|
|
43
|
+
bearing: p.initBearing - 30,
|
|
44
|
+
pitch: p.initPitch + 30,
|
|
45
|
+
maxPitch: 70,
|
|
46
|
+
bearingSnap: 0,
|
|
47
|
+
accessToken: p.token
|
|
48
|
+
}), P(r.current), r.current.on("load", async () => {
|
|
49
|
+
var y;
|
|
50
|
+
setTimeout(() => f(u.initselected ? x.fromMultiple([...t.selectedBooths].filter((s) => s.rect).map((s) => s.rect)) : N, 15, 4e3), 1500), r.current.setLight({
|
|
51
|
+
anchor: "viewport",
|
|
52
|
+
color: "white",
|
|
53
|
+
intensity: 0
|
|
54
|
+
});
|
|
55
|
+
const a = await E(e.boothStore.booths);
|
|
56
|
+
k(e.boothStore.booths, a), b("yah", (y = e.routeStore.defaultFrom) != null && y.rect ? {
|
|
57
|
+
x: e.routeStore.defaultFrom.rect.cx,
|
|
58
|
+
y: e.routeStore.defaultFrom.rect.cy
|
|
59
|
+
} : null), b("cp", u.actualCurrentPosition), d = C(e.layerStore.layers);
|
|
60
|
+
const m = d.filter((s) => s.indexOf("--") === -1);
|
|
61
|
+
T(e.routeStore), D(), r.current.on("mouseenter", m, () => r.current.getCanvas().style.cursor = "pointer"), r.current.on("mouseleave", m, () => r.current.getCanvas().style.cursor = ""), r.current.on("click", (s) => {
|
|
62
|
+
const h = [[s.point.x - 5, s.point.y - 5], [s.point.x + 5, s.point.y + 5]], v = r.current.queryRenderedFeatures(h, {
|
|
63
|
+
layers: d
|
|
64
|
+
})[0], L = e.boothStore.booths.find((R) => {
|
|
65
|
+
var g;
|
|
66
|
+
return R.name === ((g = v == null ? void 0 : v.properties) == null ? void 0 : g.id);
|
|
67
|
+
});
|
|
68
|
+
e.clickBooth(L);
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}), n(() => t.zoomBy, () => {
|
|
73
|
+
if (!t.zoomBy || !e.mapboxStore.showMapbox) return;
|
|
74
|
+
const o = t.zoomBy;
|
|
75
|
+
t.zoomBy = null, r.current.flyTo({
|
|
76
|
+
zoom: r.current.getZoom() + (o > 1 ? 0.5 : -0.5),
|
|
77
|
+
animate: !0,
|
|
78
|
+
duration: 500,
|
|
79
|
+
essential: !0
|
|
80
|
+
});
|
|
81
|
+
}), n(() => [e.layerStore.loaded, e.layerStore.visible, t.selectedRoute], () => {
|
|
82
|
+
var o, l, a;
|
|
83
|
+
d.forEach((m) => {
|
|
84
|
+
const y = m.split("--")[0], s = e.layerStore.layers.find((h) => h.name === y);
|
|
85
|
+
(s.visible || r.current.getLayoutProperty(m, "visibility") !== "none") && r.current.setLayoutProperty(m, "visibility", s.visible ? "visible" : "none");
|
|
86
|
+
}), M([...t.selectedBooths], e.boothStore.booths), b("yah", (o = e.routeStore.defaultFrom) != null && o.rect && ((a = (l = e.routeStore.defaultFrom) == null ? void 0 : l.layer) != null && a.visible) ? {
|
|
87
|
+
x: e.routeStore.defaultFrom.rect.cx,
|
|
88
|
+
y: e.routeStore.defaultFrom.rect.cy
|
|
89
|
+
} : null), b("cp", u.actualCurrentPosition);
|
|
90
|
+
}), n(() => t.hoveredBooths, () => {
|
|
91
|
+
c && (clearTimeout(c), c = null), c = setTimeout(() => {
|
|
92
|
+
c = null, F([...t.hoveredBooths].filter((o) => {
|
|
93
|
+
var l, a;
|
|
94
|
+
return (a = (l = o.layer) == null ? void 0 : l.visible) != null ? a : !0;
|
|
95
|
+
}), e.boothStore.booths);
|
|
96
|
+
}, 50);
|
|
97
|
+
}), n(() => [t.selectedBooths, t.listBooths], () => {
|
|
98
|
+
var o = [];
|
|
99
|
+
t.selectedBooths.size ? o = [...t.selectedBooths] : t.listBooths.size && (t.activeListIndex === 0 || t.list.type === "bookmarks" || t.list.type === "category") && (o = [...t.listBooths]), M(o, e.boothStore.booths);
|
|
100
|
+
}), n(() => e.mapboxStore.showMapbox, () => {
|
|
101
|
+
I(e.mapboxStore.showMapbox);
|
|
102
|
+
}), n(() => t.moveToBooths, () => {
|
|
103
|
+
if (!t.moveToBooths || !e.mapboxStore.showMapbox) return;
|
|
104
|
+
const o = t.moveToBooths.filter((a) => a.rect).map((a) => a.rect), l = x.fromMultiple(o);
|
|
105
|
+
o.length && f(l), t.moveToBooths = null;
|
|
106
|
+
}), n(() => t.moveToRect, () => {
|
|
107
|
+
!t.moveToRect || !e.mapboxStore.showMapbox || (f(t.moveToRect, 15), t.moveToRect = null);
|
|
108
|
+
}), n(() => t.moveToLocation, () => {
|
|
109
|
+
!t.moveToLocation || !e.mapboxStore.showMapbox || _();
|
|
110
|
+
}), n(() => t.centerMap, () => {
|
|
111
|
+
!t.centerMap || !e.mapboxStore.showMapbox || (f(x.fromMultiple(O.booths.map((o) => o.rect)), 15), t.centerMap = !1);
|
|
112
|
+
}), n(() => e.routeStore.routeLines, () => T(e.routeStore)), n(() => u.actualCurrentPosition, () => b("cp", u.actualCurrentPosition)), A(() => /* @__PURE__ */ B.jsx("div", { style: u.style, className: w("map-container", {
|
|
113
|
+
hidden: !e.mapboxStore.showMapbox
|
|
114
|
+
}), children: /* @__PURE__ */ B.jsx("div", { ref: i, className: w("map-wrapper", "mapboxgl-map") }) }));
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
$ as default
|
|
118
|
+
};
|
|
@@ -1,27 +1,36 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
2
|
-
import { r as
|
|
3
|
-
import { aj as
|
|
4
|
-
import { k as a } from "./KioskStore-
|
|
5
|
-
import { y as
|
|
1
|
+
import { j as e } from "./jsx-runtime-DAY7g56y.js";
|
|
2
|
+
import { r as I, I as _ } from "./index-C04zJbbt.js";
|
|
3
|
+
import { aj as b, ak as E, al as w, b as D, s as N } from "./floorplan.ready-CNnM_Yyc.js";
|
|
4
|
+
import { k as a } from "./KioskStore-NqUeUutQ.js";
|
|
5
|
+
import { y as L } from "./index-BEcZnTgd.js";
|
|
6
|
+
(function() {
|
|
7
|
+
try {
|
|
8
|
+
var s = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
9
|
+
s.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
|
|
10
|
+
var t = new s.Error().stack;
|
|
11
|
+
t && (s._sentryDebugIds = s._sentryDebugIds || {}, s._sentryDebugIds[t] = "2dea61eb-bdc1-40ed-8770-8ff33d5c06f5", s._sentryDebugIdIdentifier = "sentry-dbid-2dea61eb-bdc1-40ed-8770-8ff33d5c06f5");
|
|
12
|
+
} catch {
|
|
13
|
+
}
|
|
14
|
+
})();
|
|
6
15
|
function S({
|
|
7
16
|
value: s,
|
|
8
|
-
name:
|
|
17
|
+
name: t,
|
|
9
18
|
min: n,
|
|
10
|
-
max:
|
|
11
|
-
step:
|
|
19
|
+
max: r,
|
|
20
|
+
step: i,
|
|
12
21
|
onChange: l,
|
|
13
22
|
isDisabled: o,
|
|
14
23
|
symbol: c
|
|
15
24
|
}) {
|
|
16
|
-
const x = () => l(Math.min(s +
|
|
25
|
+
const x = () => l(Math.min(s + i, r)), j = () => l(Math.max(s - i, n));
|
|
17
26
|
let d = 0;
|
|
18
|
-
|
|
19
|
-
let
|
|
20
|
-
return d === 0 ?
|
|
27
|
+
r !== n && (d = (s - n) / (r - n) * 100);
|
|
28
|
+
let p = "-50%";
|
|
29
|
+
return d === 0 ? p = "0" : d === 100 && (p = "-100%"), /* @__PURE__ */ e.jsxs("div", { className: "efp-range-input", children: [
|
|
21
30
|
/* @__PURE__ */ e.jsxs("span", { className: "efp-range-input__header", children: [
|
|
22
31
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: "efp-range-input__control", draggable: "false", onClick: j, disabled: o, "aria-label": "Decrease", children: /* @__PURE__ */ e.jsx("i", { className: "icon-minus" }) }),
|
|
23
32
|
/* @__PURE__ */ e.jsxs("span", { className: "efp-no-select", children: [
|
|
24
|
-
|
|
33
|
+
t,
|
|
25
34
|
" ",
|
|
26
35
|
/* @__PURE__ */ e.jsxs("strong", { children: [
|
|
27
36
|
s,
|
|
@@ -31,44 +40,44 @@ function S({
|
|
|
31
40
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: "efp-range-input__control", draggable: "false", onClick: x, disabled: o, "aria-label": "Increase", children: /* @__PURE__ */ e.jsx("i", { className: "icon-plus" }) })
|
|
32
41
|
] }),
|
|
33
42
|
/* @__PURE__ */ e.jsxs("label", { className: "efp-range-input__input-block", children: [
|
|
34
|
-
/* @__PURE__ */ e.jsx("input", { className: "efp-range-input__input", name:
|
|
43
|
+
/* @__PURE__ */ e.jsx("input", { className: "efp-range-input__input", name: t, type: "range", min: n, max: r, step: i, value: s, disabled: o, onChange: (u) => l(Number(u.target.value)) }),
|
|
35
44
|
/* @__PURE__ */ e.jsxs("span", { className: "efp-range-input__custom-input", children: [
|
|
36
45
|
/* @__PURE__ */ e.jsx("span", { className: "efp-range-input__progress", style: {
|
|
37
46
|
width: `${d}%`
|
|
38
47
|
} }),
|
|
39
48
|
/* @__PURE__ */ e.jsx("span", { className: "efp-range-input__thumb", style: {
|
|
40
49
|
insetInlineStart: `${d}%`,
|
|
41
|
-
transform: `translateX(${
|
|
50
|
+
transform: `translateX(${p}) translateY(-50%)`
|
|
42
51
|
} })
|
|
43
52
|
] })
|
|
44
53
|
] })
|
|
45
54
|
] });
|
|
46
55
|
}
|
|
47
|
-
function
|
|
56
|
+
function C({
|
|
48
57
|
onSave: s,
|
|
49
|
-
onDelete:
|
|
58
|
+
onDelete: t,
|
|
50
59
|
isSaveDisabled: n,
|
|
51
|
-
isDeleteDisabled:
|
|
52
|
-
areControlsDisabled:
|
|
60
|
+
isDeleteDisabled: r,
|
|
61
|
+
areControlsDisabled: i,
|
|
53
62
|
angle: l,
|
|
54
63
|
onRotateIcon: o,
|
|
55
64
|
uiScale: c,
|
|
56
65
|
minUiScale: x,
|
|
57
66
|
maxUiScale: j,
|
|
58
67
|
uiScaleStep: d,
|
|
59
|
-
onUiScaleChange:
|
|
60
|
-
iconSizePercent:
|
|
68
|
+
onUiScaleChange: p,
|
|
69
|
+
iconSizePercent: u,
|
|
61
70
|
onChangeIconSizePercent: k
|
|
62
71
|
}) {
|
|
63
72
|
return /* @__PURE__ */ e.jsx("div", { className: "efp-set-kiosk-form", children: /* @__PURE__ */ e.jsxs("div", { className: "efp-set-kiosk-form__content", children: [
|
|
64
73
|
/* @__PURE__ */ e.jsxs("div", { className: "efp-set-kiosk-form__inputs", children: [
|
|
65
|
-
/* @__PURE__ */ e.jsx(S, { value: l, name: "Icon rotation", min: 0, max: 360, step: 1, symbol: "°", isDisabled:
|
|
66
|
-
/* @__PURE__ */ e.jsx(S, { value:
|
|
67
|
-
/* @__PURE__ */ e.jsx(S, { value: Math.round(c * 100), name: "UI scale", min: x * 100, max: j * 100, step: d * 100, symbol: "%", isDisabled:
|
|
74
|
+
/* @__PURE__ */ e.jsx(S, { value: l, name: "Icon rotation", min: 0, max: 360, step: 1, symbol: "°", isDisabled: i, onChange: o }),
|
|
75
|
+
/* @__PURE__ */ e.jsx(S, { value: u, name: "Icon size", min: 100, max: 300, step: 1, symbol: "%", isDisabled: i, onChange: k }),
|
|
76
|
+
/* @__PURE__ */ e.jsx(S, { value: Math.round(c * 100), name: "UI scale", min: x * 100, max: j * 100, step: d * 100, symbol: "%", isDisabled: i, onChange: (v) => p(v / 100) })
|
|
68
77
|
] }),
|
|
69
78
|
/* @__PURE__ */ e.jsxs("div", { className: "efp-set-kiosk-form__controls", children: [
|
|
70
|
-
/* @__PURE__ */ e.jsx(
|
|
71
|
-
/* @__PURE__ */ e.jsx(
|
|
79
|
+
/* @__PURE__ */ e.jsx(b, { size: "md", variant: "gray", text: "Delete kiosk", onClick: t, disabled: r }),
|
|
80
|
+
/* @__PURE__ */ e.jsx(b, { size: "md", variant: "primary", text: "Save", onClick: s, disabled: n })
|
|
72
81
|
] })
|
|
73
82
|
] }) });
|
|
74
83
|
}
|
|
@@ -76,29 +85,29 @@ function U({
|
|
|
76
85
|
list: s
|
|
77
86
|
}) {
|
|
78
87
|
return s != null && s.length ? /* @__PURE__ */ e.jsx("div", { className: "efp-info-message", children: s.map(({
|
|
79
|
-
id:
|
|
88
|
+
id: t,
|
|
80
89
|
image: n,
|
|
81
|
-
content:
|
|
90
|
+
content: r
|
|
82
91
|
}) => /* @__PURE__ */ e.jsxs("div", { className: "efp-info-message__item", children: [
|
|
83
92
|
/* @__PURE__ */ e.jsx("img", { className: "efp-info-message__img", src: n.src, alt: n.alt, width: "30", height: "30" }),
|
|
84
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
85
|
-
] },
|
|
93
|
+
/* @__PURE__ */ e.jsx("span", { children: r })
|
|
94
|
+
] }, t)) }) : null;
|
|
86
95
|
}
|
|
87
96
|
function z({
|
|
88
97
|
isDisabled: s,
|
|
89
|
-
content:
|
|
98
|
+
content: t,
|
|
90
99
|
confirmLabel: n,
|
|
91
|
-
cancelLabel:
|
|
92
|
-
onConfirm:
|
|
100
|
+
cancelLabel: r,
|
|
101
|
+
onConfirm: i,
|
|
93
102
|
onCancel: l,
|
|
94
103
|
confirmVariant: o,
|
|
95
104
|
cancelVariant: c
|
|
96
105
|
}) {
|
|
97
106
|
return /* @__PURE__ */ e.jsxs("div", { className: "efp-confirm-dialog", children: [
|
|
98
|
-
|
|
107
|
+
t && /* @__PURE__ */ e.jsx("div", { className: "efp-confirm-dialog__content", children: t }),
|
|
99
108
|
/* @__PURE__ */ e.jsxs("div", { className: "efp-confirm-dialog__controls", children: [
|
|
100
|
-
/* @__PURE__ */ e.jsx(
|
|
101
|
-
l && /* @__PURE__ */ e.jsx(
|
|
109
|
+
/* @__PURE__ */ e.jsx(b, { size: "md", text: n, onClick: i, disabled: s, variant: o }),
|
|
110
|
+
l && /* @__PURE__ */ e.jsx(b, { size: "md", text: r, variant: c, onClick: l, disabled: s })
|
|
102
111
|
] })
|
|
103
112
|
] });
|
|
104
113
|
}
|
|
@@ -106,54 +115,54 @@ function M({
|
|
|
106
115
|
messages: s
|
|
107
116
|
}) {
|
|
108
117
|
return s != null && s.length ? /* @__PURE__ */ e.jsx("div", { className: "efp-status-messages", children: s.map(({
|
|
109
|
-
id:
|
|
118
|
+
id: t,
|
|
110
119
|
variant: n,
|
|
111
|
-
title:
|
|
120
|
+
title: r
|
|
112
121
|
}) => {
|
|
113
|
-
const
|
|
114
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
115
|
-
"efp-status-messages__message--success":
|
|
122
|
+
const i = n === "success", l = n === "error";
|
|
123
|
+
return /* @__PURE__ */ e.jsxs("div", { className: L("efp-status-messages__message", {
|
|
124
|
+
"efp-status-messages__message--success": i,
|
|
116
125
|
"efp-status-messages__message--error": l
|
|
117
126
|
}), children: [
|
|
118
|
-
|
|
127
|
+
i ? /* @__PURE__ */ e.jsx("i", { className: "icon-checkmark" }) : null,
|
|
119
128
|
l ? /* @__PURE__ */ e.jsx("i", { className: "icon-warning-solid" }) : null,
|
|
120
|
-
|
|
121
|
-
] },
|
|
129
|
+
r
|
|
130
|
+
] }, t);
|
|
122
131
|
}) }) : null;
|
|
123
132
|
}
|
|
124
133
|
function K({
|
|
125
134
|
isSaveDisabled: s,
|
|
126
|
-
isDeleteDisabled:
|
|
135
|
+
isDeleteDisabled: t,
|
|
127
136
|
areControlsDisabled: n,
|
|
128
|
-
confirmOnClose:
|
|
129
|
-
angle:
|
|
137
|
+
confirmOnClose: r,
|
|
138
|
+
angle: i,
|
|
130
139
|
uiScale: l,
|
|
131
140
|
minUiScale: o,
|
|
132
141
|
maxUiScale: c,
|
|
133
142
|
uiScaleStep: x,
|
|
134
143
|
iconSizePercent: j,
|
|
135
144
|
isInfoVisible: d,
|
|
136
|
-
statusMessages:
|
|
137
|
-
onClose:
|
|
145
|
+
statusMessages: p,
|
|
146
|
+
onClose: u,
|
|
138
147
|
onDelete: k,
|
|
139
148
|
onSave: v,
|
|
140
149
|
onChange: m
|
|
141
150
|
}) {
|
|
142
|
-
const [h, g] =
|
|
143
|
-
return /* @__PURE__ */ e.jsxs(
|
|
151
|
+
const [h, g] = I.useState(null);
|
|
152
|
+
return /* @__PURE__ */ e.jsxs(E, { className: "efp-set-kiosk-mode", translate: {
|
|
144
153
|
x: window.innerWidth / 2,
|
|
145
154
|
y: 0
|
|
146
155
|
}, children: [
|
|
147
156
|
/* @__PURE__ */ e.jsxs("div", { className: "efp-set-kiosk-mode__header", children: [
|
|
148
|
-
/* @__PURE__ */ e.jsx("img", { src: `${
|
|
157
|
+
/* @__PURE__ */ e.jsx("img", { src: `${_}icons/dragdrop-solid.svg`, alt: "Drag and Drop Icon", width: "24", height: "24" }),
|
|
149
158
|
/* @__PURE__ */ e.jsx("span", { className: "efp-no-select", children: h ? h.title : "Set Kiosk" }),
|
|
150
159
|
/* @__PURE__ */ e.jsx("button", { type: "button", draggable: "false", className: "efp-set-kiosk-mode__close", "aria-label": "Close", onClick: () => {
|
|
151
|
-
const
|
|
160
|
+
const f = () => {
|
|
152
161
|
g(null);
|
|
153
|
-
},
|
|
154
|
-
|
|
162
|
+
}, y = () => {
|
|
163
|
+
u == null || u(), g(null);
|
|
155
164
|
};
|
|
156
|
-
h ?
|
|
165
|
+
h ? f() : r ? g({
|
|
157
166
|
title: "Leave without saving?",
|
|
158
167
|
content: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
159
168
|
"You have changes that ",
|
|
@@ -161,18 +170,18 @@ function K({
|
|
|
161
170
|
] }),
|
|
162
171
|
confirmLabel: "Keep editing",
|
|
163
172
|
cancelLabel: "Leave",
|
|
164
|
-
onCancel:
|
|
165
|
-
onConfirm:
|
|
173
|
+
onCancel: y,
|
|
174
|
+
onConfirm: f,
|
|
166
175
|
confirmVariant: "primary",
|
|
167
176
|
cancelVariant: "danger"
|
|
168
|
-
}) :
|
|
177
|
+
}) : y();
|
|
169
178
|
}, children: /* @__PURE__ */ e.jsx("i", { className: "icon-close" }) })
|
|
170
179
|
] }),
|
|
171
|
-
!h && /* @__PURE__ */ e.jsx(M, { messages:
|
|
180
|
+
!h && /* @__PURE__ */ e.jsx(M, { messages: p }),
|
|
172
181
|
d ? /* @__PURE__ */ e.jsx(U, { list: [{
|
|
173
182
|
id: "1",
|
|
174
183
|
image: {
|
|
175
|
-
src: `${
|
|
184
|
+
src: `${_}icons/tap.svg`,
|
|
176
185
|
alt: "Tap to set or move kiosk."
|
|
177
186
|
},
|
|
178
187
|
content: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
@@ -183,14 +192,14 @@ function K({
|
|
|
183
192
|
}, {
|
|
184
193
|
id: "2",
|
|
185
194
|
image: {
|
|
186
|
-
src: `${
|
|
195
|
+
src: `${_}icons/rotate.svg`,
|
|
187
196
|
alt: "Zoom and rotate the map before saving."
|
|
188
197
|
},
|
|
189
198
|
content: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
190
199
|
/* @__PURE__ */ e.jsx("strong", { children: "Zoom and rotate" }),
|
|
191
200
|
" the map before saving."
|
|
192
201
|
] })
|
|
193
|
-
}] }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: h ? /* @__PURE__ */ e.jsx(z, { ...h }) : /* @__PURE__ */ e.jsx(
|
|
202
|
+
}] }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: h ? /* @__PURE__ */ e.jsx(z, { ...h }) : /* @__PURE__ */ e.jsx(C, { isSaveDisabled: s, isDeleteDisabled: t, areControlsDisabled: n, onSave: () => {
|
|
194
203
|
v == null || v(), g(null);
|
|
195
204
|
}, onDelete: () => {
|
|
196
205
|
g({
|
|
@@ -211,30 +220,30 @@ function K({
|
|
|
211
220
|
confirmVariant: "gray",
|
|
212
221
|
cancelVariant: "danger"
|
|
213
222
|
});
|
|
214
|
-
}, angle:
|
|
215
|
-
angle:
|
|
216
|
-
}), uiScale: l, minUiScale: o, maxUiScale: c, uiScaleStep: x, onUiScaleChange: (
|
|
217
|
-
scale:
|
|
218
|
-
}), iconSizePercent: j, onChangeIconSizePercent: (
|
|
219
|
-
percent:
|
|
223
|
+
}, angle: i, onRotateIcon: (f) => m == null ? void 0 : m({
|
|
224
|
+
angle: f
|
|
225
|
+
}), uiScale: l, minUiScale: o, maxUiScale: c, uiScaleStep: x, onUiScaleChange: (f) => m == null ? void 0 : m({
|
|
226
|
+
scale: f
|
|
227
|
+
}), iconSizePercent: j, onChangeIconSizePercent: (f) => m == null ? void 0 : m({
|
|
228
|
+
percent: f
|
|
220
229
|
}) }) })
|
|
221
230
|
] });
|
|
222
231
|
}
|
|
223
|
-
const
|
|
224
|
-
var
|
|
225
|
-
D(() => a.handleSetupReady()),
|
|
226
|
-
const
|
|
227
|
-
a.renderer.events.addEventListener("viewport:ptscale",
|
|
232
|
+
const P = w(() => {
|
|
233
|
+
var t, n, r;
|
|
234
|
+
D(() => a.handleSetupReady()), I.useEffect(() => {
|
|
235
|
+
const i = (c) => a.setInitialPtScale(c);
|
|
236
|
+
a.renderer.events.addEventListener("viewport:ptscale", i);
|
|
228
237
|
const l = (c) => a.handleClick(c);
|
|
229
238
|
a.renderer.events.addEventListener("pointer:click", l);
|
|
230
239
|
const o = () => a.handleNavigationChange();
|
|
231
240
|
return a.renderer.events.addEventListener("navigation:change", o), () => {
|
|
232
|
-
a.renderer.events.removeEventListener("viewport:ptscale",
|
|
241
|
+
a.renderer.events.removeEventListener("viewport:ptscale", i), a.renderer.events.removeEventListener("pointer:click", l), a.renderer.events.removeEventListener("navigation:change", o);
|
|
233
242
|
};
|
|
234
243
|
}, [a.renderer]);
|
|
235
244
|
const s = !!a.kiosk;
|
|
236
|
-
return /* @__PURE__ */ e.jsx(K, { isSaveDisabled: s ? !a.hasUnsavedChanges : !0, isDeleteDisabled: !s, areControlsDisabled: !s, confirmOnClose: s ? a.hasUnsavedChanges : !1, angle: ((
|
|
245
|
+
return /* @__PURE__ */ e.jsx(K, { isSaveDisabled: s ? !a.hasUnsavedChanges : !0, isDeleteDisabled: !s, areControlsDisabled: !s, confirmOnClose: s ? a.hasUnsavedChanges : !1, angle: ((t = a.kiosk) == null ? void 0 : t.heading) || 0, uiScale: ((n = a.kiosk) == null ? void 0 : n.uiScale) || N.uiState.uiScale, minUiScale: N.uiState.minUIScale, maxUiScale: N.uiState.maxUIScale, uiScaleStep: 0.01, iconSizePercent: ((r = a.kiosk) == null ? void 0 : r.iconSizePercent) || 100, isInfoVisible: !s, statusMessages: a.statusMessages, onClose: () => a.handleClose(), onDelete: () => a.handleDelete(), onSave: () => a.handleSave(), onChange: (i) => a.handleChange(i) });
|
|
237
246
|
});
|
|
238
247
|
export {
|
|
239
|
-
|
|
248
|
+
P as default
|
|
240
249
|
};
|