@expofp/floorplan 3.0.0-alpha.14 → 3.0.0-alpha.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.
Files changed (44) hide show
  1. package/dist/browser/Debug-Bn7mmuWl.js +40 -0
  2. package/dist/browser/Demo-pwpeopeB.js +47 -0
  3. package/dist/browser/{Free-Dm2FRajw.js → Free-CeZSHheC.js} +29 -20
  4. package/dist/browser/Gallery-BTasOfWx.js +288 -0
  5. package/dist/browser/GpsLoader-BS8b-Aif.js +140 -0
  6. package/dist/browser/{KioskStore-Bvvm0aNQ.js → KioskStore-_Zcv0Bc0.js} +57 -48
  7. package/dist/browser/Mapbox-Cl59-8BN.js +118 -0
  8. package/dist/browser/{SetKioskMode-BecTBVRp.js → SetKioskMode-CjjAW8SI.js} +66 -57
  9. package/dist/browser/{ShowKiosk-C-6DHz7T.js → ShowKiosk-DUcthTIK.js} +28 -19
  10. package/dist/browser/{ThreeComponent-Brnrh22I.js → ThreeComponent-CdelmApV.js} +181 -172
  11. package/dist/browser/boolean-editor-HetrPeeC.js +157 -0
  12. package/dist/browser/bundle.json +29 -29
  13. package/dist/browser/{client-D3Op9Jdd.js → client-BMgLu7eB.js} +590 -581
  14. package/dist/browser/{data-0pZ-ZMEi.js → data-eO9H1gMa.js} +276 -267
  15. package/dist/browser/{debug-overlay-6c_tWF4O.js → debug-overlay-DqIeCuHo.js} +98 -89
  16. package/dist/browser/debug-ui-6t_iunMd.js +67 -0
  17. package/dist/browser/{favicon-DalyEhbd.js → favicon-CoF9H4Pb.js} +11 -2
  18. package/dist/browser/fetch-retry.umd-GcX1W9qV.js +123 -0
  19. package/dist/browser/{flex-OW_m-DBA.js → flex-BC_JSvaB.js} +80 -71
  20. package/dist/browser/{floorplan.ready-D-VQ-QvS.js → floorplan.ready-CZn5dvsU.js} +1011 -987
  21. package/dist/browser/index-C1Rwmp91.js +54 -0
  22. package/dist/browser/{index-BuJlIIdP.js → index-CEVUHq8g.js} +96 -87
  23. package/dist/browser/{index-BUq8_R36.js → index-Dba8EyWF.js} +41 -32
  24. package/dist/browser/{index-Zz9lJz5_.js → index-DnV82MKb.js} +296 -287
  25. package/dist/browser/index-Dp-WygGH.js +57 -0
  26. package/dist/browser/index-sNwIhVDZ.js +92 -0
  27. package/dist/browser/{index-AJbTBu7z.js → index-uGr-_9rk.js} +258 -249
  28. package/dist/browser/index.js +11 -2
  29. package/dist/browser/jsx-runtime-BHfPvO9I.js +40 -0
  30. package/dist/browser/{main-CD9JioNt.js → main-DYasSc7U.js} +24 -15
  31. package/dist/browser/{particles.min-BZTb0pvb.js → particles.min-B6O6_M_h.js} +43 -34
  32. package/package.json +4 -3
  33. package/dist/browser/Debug-Pul6-ZdY.js +0 -31
  34. package/dist/browser/Demo-DN_Ej-P_.js +0 -38
  35. package/dist/browser/Gallery-TLr-wfCG.js +0 -279
  36. package/dist/browser/GpsLoader-CeS0cp98.js +0 -131
  37. package/dist/browser/Mapbox-DizBJSb0.js +0 -109
  38. package/dist/browser/boolean-editor-Duwgypgb.js +0 -148
  39. package/dist/browser/debug-ui-TGRI1j4k.js +0 -58
  40. package/dist/browser/fetch-retry.umd-BZ52tMyv.js +0 -114
  41. package/dist/browser/index-B2YV6GNs.js +0 -48
  42. package/dist/browser/index-D0SjrKD-.js +0 -45
  43. package/dist/browser/index-Vc2rrV4B.js +0 -83
  44. package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
@@ -1,58 +0,0 @@
1
- import { j as t } from "./jsx-runtime-jIxVPx5o.js";
2
- import { r as o } from "./index-Zz9lJz5_.js";
3
- import { a as d } from "./index-B2YV6GNs.js";
4
- const c = ({
5
- onClick: e
6
- }) => /* @__PURE__ */ t.jsx("button", { type: "button", style: {
7
- position: "fixed",
8
- right: 0,
9
- top: "50%",
10
- transform: "translateY(-50%)",
11
- padding: 0,
12
- border: "none",
13
- background: "transparent",
14
- cursor: "pointer",
15
- zIndex: 9999,
16
- boxSizing: "border-box"
17
- }, onClick: e, children: /* @__PURE__ */ t.jsx("div", { style: {
18
- width: 20,
19
- height: 64,
20
- paddingLeft: 4,
21
- display: "flex",
22
- alignItems: "center",
23
- justifyContent: "center",
24
- background: "var(--side-tab-bg, rgba(0,0,0,0.5))",
25
- color: "white",
26
- borderRadius: "14px 0 0 14px",
27
- fontSize: Math.round(64 * 0.25),
28
- lineHeight: 1,
29
- userSelect: "none",
30
- cursor: "pointer",
31
- filter: "grayscale(0.5)",
32
- boxSizing: "border-box"
33
- }, children: /* @__PURE__ */ t.jsx(b, { size: 64 * 0.7 }) }) });
34
- function b({
35
- size: e = 18,
36
- strokeWidth: n = 3,
37
- ...r
38
- }) {
39
- return /* @__PURE__ */ t.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", ...r, children: /* @__PURE__ */ t.jsx("path", { fill: "none", d: "M14.5 5.5L8.5 12l6 6.5", stroke: "currentColor", strokeWidth: n, strokeLinecap: "round", strokeLinejoin: "round" }) });
40
- }
41
- const f = o.lazy(async () => ({
42
- default: (await import("./debug-overlay-6c_tWF4O.js")).DebugOverlay
43
- })), p = ".expofp-floorplan-default", g = (e) => {
44
- var a;
45
- const [n, r] = o.useState(e.open), [s, l] = e.useDebugButtonState(), i = (a = e.hostSelector) != null ? a : p;
46
- return o.useEffect(() => d(() => {
47
- l(!0), r(!0);
48
- }), []), o.useEffect(() => {
49
- const u = document.querySelector(i);
50
- u && (u.style.visibility = n ? "hidden" : "visible");
51
- }, [n, i]), n ? /* @__PURE__ */ t.jsx(o.Suspense, { fallback: null, children: /* @__PURE__ */ t.jsx(f, { onClose: () => {
52
- r(!1);
53
- } }) }) : s ? /* @__PURE__ */ t.jsx(c, { onClick: () => r(!0) }) : null;
54
- };
55
- g.displayName = "DebugUi";
56
- export {
57
- g as DebugUi
58
- };
@@ -1,114 +0,0 @@
1
- import { f as x } from "./index-Zz9lJz5_.js";
2
- function R(s, g) {
3
- for (var c = 0; c < g.length; c++) {
4
- const o = g[c];
5
- if (typeof o != "string" && !Array.isArray(o)) {
6
- for (const n in o)
7
- if (n !== "default" && !(n in s)) {
8
- const i = Object.getOwnPropertyDescriptor(o, n);
9
- i && Object.defineProperty(s, n, i.get ? i : {
10
- enumerable: !0,
11
- get: () => o[n]
12
- });
13
- }
14
- }
15
- }
16
- return Object.freeze(Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }));
17
- }
18
- var p = { exports: {} }, A = p.exports, d;
19
- function P() {
20
- return d || (d = 1, (function(s, g) {
21
- (function(c, o) {
22
- s.exports = o();
23
- })(A, (function() {
24
- var c = function(i, e) {
25
- if (e = e || {}, typeof i != "function")
26
- throw new n("fetch must be a function");
27
- if (typeof e != "object")
28
- throw new n("defaults must be an object");
29
- if (e.retries !== void 0 && !o(e.retries))
30
- throw new n("retries must be a positive integer");
31
- if (e.retryDelay !== void 0 && !o(e.retryDelay) && typeof e.retryDelay != "function")
32
- throw new n("retryDelay must be a positive integer or a function returning a positive integer");
33
- if (e.retryOn !== void 0 && !Array.isArray(e.retryOn) && typeof e.retryOn != "function")
34
- throw new n("retryOn property expects an array or function");
35
- var _ = {
36
- retries: 3,
37
- retryDelay: 1e3,
38
- retryOn: []
39
- };
40
- return e = Object.assign(_, e), function(m, r) {
41
- var v = e.retries, l = e.retryDelay, u = e.retryOn;
42
- if (r && r.retries !== void 0)
43
- if (o(r.retries))
44
- v = r.retries;
45
- else
46
- throw new n("retries must be a positive integer");
47
- if (r && r.retryDelay !== void 0)
48
- if (o(r.retryDelay) || typeof r.retryDelay == "function")
49
- l = r.retryDelay;
50
- else
51
- throw new n("retryDelay must be a positive integer or a function returning a positive integer");
52
- if (r && r.retryOn)
53
- if (Array.isArray(r.retryOn) || typeof r.retryOn == "function")
54
- u = r.retryOn;
55
- else
56
- throw new n("retryOn property expects an array or function");
57
- return new Promise(function(w, a) {
58
- var b = function(f) {
59
- var O = typeof Request < "u" && m instanceof Request ? m.clone() : m;
60
- i(O, r).then(function(t) {
61
- if (Array.isArray(u) && u.indexOf(t.status) === -1)
62
- w(t);
63
- else if (typeof u == "function")
64
- try {
65
- return Promise.resolve(u(f, null, t)).then(function(y) {
66
- y ? h(f, null, t) : w(t);
67
- }).catch(a);
68
- } catch (y) {
69
- a(y);
70
- }
71
- else
72
- f < v ? h(f, null, t) : w(t);
73
- }).catch(function(t) {
74
- if (typeof u == "function")
75
- try {
76
- Promise.resolve(u(f, t, null)).then(function(y) {
77
- y ? h(f, t, null) : a(t);
78
- }).catch(function(y) {
79
- a(y);
80
- });
81
- } catch (y) {
82
- a(y);
83
- }
84
- else f < v ? h(f, t, null) : a(t);
85
- });
86
- };
87
- function h(f, O, t) {
88
- var y = typeof l == "function" ? l(f, O, t) : l;
89
- setTimeout(function() {
90
- b(++f);
91
- }, y);
92
- }
93
- b(0);
94
- });
95
- };
96
- };
97
- function o(i) {
98
- return Number.isInteger(i) && i >= 0;
99
- }
100
- function n(i) {
101
- this.name = "ArgumentError", this.message = i;
102
- }
103
- return c;
104
- }));
105
- })(p)), p.exports;
106
- }
107
- var D = P();
108
- const q = /* @__PURE__ */ x(D), $ = /* @__PURE__ */ R({
109
- __proto__: null,
110
- default: q
111
- }, [D]);
112
- export {
113
- $ as f
114
- };
@@ -1,48 +0,0 @@
1
- import { j as f } from "./jsx-runtime-jIxVPx5o.js";
2
- import { r as m } from "./index-Vc2rrV4B.js";
3
- import "./index-Zz9lJz5_.js";
4
- const a = "dbg123", r = [];
5
- let u = !1, i = null;
6
- function g(o) {
7
- if (r.push(o), !u) {
8
- let t = function(n) {
9
- n.ctrlKey || n.metaKey || n.altKey || n.key.length === 1 && (e += n.key.toLowerCase(), e = e.slice(-a.length), e === a && (e = "", r.forEach((s) => s())));
10
- };
11
- u = !0;
12
- let e = "";
13
- i = t, document.addEventListener("keydown", t);
14
- }
15
- return () => {
16
- const t = r.indexOf(o);
17
- t !== -1 && r.splice(t, 1), r.length === 0 && i && (document.removeEventListener("keydown", i), i = null, u = !1);
18
- };
19
- }
20
- let c = !1;
21
- function b() {
22
- if (c)
23
- return;
24
- c = !0;
25
- const o = m("Show Debug Button Overlay"), t = async (e) => {
26
- const {
27
- DebugUi: n
28
- } = await import("./debug-ui-TGRI1j4k.js"), {
29
- createRoot: s
30
- } = await import("./client-D3Op9Jdd.js").then((d) => d.c), l = document.createElement("div");
31
- document.body.appendChild(l), s(l).render(/* @__PURE__ */ f.jsx(n, { useDebugButtonState: o.useState, open: e }));
32
- };
33
- if (o.get())
34
- t(!1);
35
- else {
36
- const e = g(() => {
37
- e(), o.set(!0), t(!0);
38
- });
39
- }
40
- }
41
- const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
- __proto__: null,
43
- renderDebugUi: b
44
- }, Symbol.toStringTag, { value: "Module" }));
45
- export {
46
- g as a,
47
- E as i
48
- };
@@ -1,45 +0,0 @@
1
- import { f } from "./index-Zz9lJz5_.js";
2
- import { r as p } from "./index-BUq8_R36.js";
3
- var n = { exports: {} };
4
- var i;
5
- function m() {
6
- return i || (i = 1, (function(o) {
7
- (function() {
8
- var u = {}.hasOwnProperty;
9
- function s() {
10
- for (var r = "", t = 0; t < arguments.length; t++) {
11
- var e = arguments[t];
12
- e && (r = a(r, c(e)));
13
- }
14
- return r;
15
- }
16
- function c(r) {
17
- if (typeof r == "string" || typeof r == "number")
18
- return r;
19
- if (typeof r != "object")
20
- return "";
21
- if (Array.isArray(r))
22
- return s.apply(null, r);
23
- if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
24
- return r.toString();
25
- var t = "";
26
- for (var e in r)
27
- u.call(r, e) && r[e] && (t = a(t, e));
28
- return t;
29
- }
30
- function a(r, t) {
31
- return t ? r ? r + " " + t : r + t : r;
32
- }
33
- o.exports ? (s.default = s, o.exports = s) : window.classNames = s;
34
- })();
35
- })(n)), n.exports;
36
- }
37
- var l = m();
38
- const d = /* @__PURE__ */ f(l);
39
- var x = p();
40
- const S = /* @__PURE__ */ f(x);
41
- export {
42
- S as R,
43
- x as r,
44
- d as y
45
- };
@@ -1,83 +0,0 @@
1
- import { r as E, o as x } from "./index-Zz9lJz5_.js";
2
- import { j as O } from "./jsx-runtime-jIxVPx5o.js";
3
- let w = !1;
4
- function _() {
5
- w || (w = !0, !(typeof window > "u" && typeof document > "u") && import("./index-B2YV6GNs.js").then((t) => t.i).then(({
6
- renderDebugUi: t
7
- }) => {
8
- t();
9
- }).catch(() => {
10
- }));
11
- }
12
- const j = [], h = [], u = "efp-local-storage";
13
- function v(t, n, r, L) {
14
- const e = `efp-debug-setting-"${t}"`, s = () => I(localStorage.getItem(e), n), d = (o) => {
15
- localStorage.setItem(e, JSON.stringify(o)), y(e);
16
- }, f = () => {
17
- localStorage.removeItem(e), y(e);
18
- };
19
- h.push(f);
20
- function g() {
21
- const [o, i] = E.useState(s());
22
- return E.useEffect(() => {
23
- const p = () => i(s()), S = (a) => {
24
- a.key === e && p();
25
- }, m = (a) => {
26
- const {
27
- detail: c
28
- } = a;
29
- (c == null ? void 0 : c.key) === e && p();
30
- };
31
- return window.addEventListener("storage", S), window.addEventListener(u, m), () => {
32
- window.removeEventListener("storage", S), window.removeEventListener(u, m);
33
- };
34
- }, []), [o, d];
35
- }
36
- const l = () => {
37
- const [o, i] = g();
38
- return /* @__PURE__ */ O.jsx(r, { label: t, value: o, context: L, onChange: i });
39
- };
40
- return l.displayName = `DebugSetting(${t})`, j.push(l), {
41
- get: s,
42
- set: d,
43
- reset: f,
44
- useState: g
45
- };
46
- }
47
- function I(t, n) {
48
- if (t === null) return n;
49
- try {
50
- return JSON.parse(t);
51
- } catch {
52
- return n;
53
- }
54
- }
55
- function y(t) {
56
- window.dispatchEvent(new CustomEvent(u, {
57
- detail: {
58
- key: t
59
- }
60
- }));
61
- }
62
- function b(t) {
63
- const n = x.lazy(() => import("./boolean-editor-Duwgypgb.js").then((r) => ({
64
- default: r.BooleanEditor
65
- })));
66
- return v(t, !1, n);
67
- }
68
- function z() {
69
- h.forEach((t) => t());
70
- }
71
- const A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
72
- __proto__: null,
73
- initDebug: _,
74
- registerBooleanSetting: b,
75
- registerSetting: v,
76
- resetAllSettings: z
77
- }, Symbol.toStringTag, { value: "Module" }));
78
- export {
79
- z as a,
80
- j as e,
81
- A as i,
82
- b as r
83
- };
@@ -1,31 +0,0 @@
1
- var s = { exports: {} }, e = {};
2
- var o;
3
- function d() {
4
- if (o) return e;
5
- o = 1;
6
- var R = /* @__PURE__ */ Symbol.for("react.transitional.element"), a = /* @__PURE__ */ Symbol.for("react.fragment");
7
- function i(v, r, t) {
8
- var u = null;
9
- if (t !== void 0 && (u = "" + t), r.key !== void 0 && (u = "" + r.key), "key" in r) {
10
- t = {};
11
- for (var n in r)
12
- n !== "key" && (t[n] = r[n]);
13
- } else t = r;
14
- return r = t.ref, {
15
- $$typeof: R,
16
- type: v,
17
- key: u,
18
- ref: r !== void 0 ? r : null,
19
- props: t
20
- };
21
- }
22
- return e.Fragment = a, e.jsx = i, e.jsxs = i, e;
23
- }
24
- var x;
25
- function l() {
26
- return x || (x = 1, s.exports = d()), s.exports;
27
- }
28
- var p = l();
29
- export {
30
- p as j
31
- };