@expofp/floorplan 3.16.2 → 3.18.0

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 (83) hide show
  1. package/dist/browser/{Button-DwsZR67A.js → Button-CR9X3hHB.js} +5 -5
  2. package/dist/browser/{CookieConsent-D_H_9z7A.js → CookieConsent-BWKzA_Db.js} +7 -7
  3. package/dist/browser/{Debug-iGytuV9s.js → Debug-CElPDJlB.js} +7 -7
  4. package/dist/browser/{Demo-D7DxBUzp.js → Demo-DpzdTNuZ.js} +9 -9
  5. package/dist/browser/{Free-ClXF-ylp.js → Free-Dzj0kezR.js} +9 -9
  6. package/dist/browser/{Gallery-C4QUbfC1.js → Gallery-BFh_yQY4.js} +9 -9
  7. package/dist/browser/{GpsLoader-UBlDzhKL.js → GpsLoader-PkypWxTl.js} +10 -10
  8. package/dist/browser/KioskStore-Cwuze3X_.js +288 -0
  9. package/dist/browser/{MaplibreAdapter-BVJ885aJ.js → MaplibreAdapter-CXm_wkcT.js} +2066 -2013
  10. package/dist/browser/{ModalContainer-DY2zOxMP.js → ModalContainer-qMMdrK2w.js} +10 -10
  11. package/dist/browser/{PermissionNotice-B0h3WhJ7.js → PermissionNotice-zHHL-Tb1.js} +6 -6
  12. package/dist/browser/{SetKioskMode-iWHPaTah.js → SetKioskMode-NJzx1LsZ.js} +8 -8
  13. package/dist/browser/{ShowKiosk-DknShSpP.js → ShowKiosk-JTxQ22h-.js} +12 -12
  14. package/dist/browser/{TouchHand-RKfeJsWo.js → TouchHand-B1_sEZ0y.js} +4 -4
  15. package/dist/browser/{ViewerMenuPanel-D8GlwCzS.js → ViewerMenuPanel-CStYkINl.js} +10 -10
  16. package/dist/browser/{add-debug-secret-listener-BXAxEbFi.js → add-debug-secret-listener-CLwgmFlw.js} +1 -1
  17. package/dist/browser/{adopt-global-settings-Br-3dQt9.js → adopt-global-settings-DNtTKtHp.js} +9 -9
  18. package/dist/browser/{boolean-editor-WHpxVGD2.js → boolean-editor-DU3YVPQz.js} +9 -9
  19. package/dist/browser/{bootIntercom-Dc84Um93.js → bootIntercom-C3p3aQE4.js} +2 -2
  20. package/dist/browser/{booth-by-xy-pwZD-Q9s.js → booth-by-xy-DSMmkHYp.js} +6 -6
  21. package/dist/browser/bundle.json +68 -65
  22. package/dist/browser/{classnames-ADmvTvsM.js → classnames-DsyabRET.js} +2 -2
  23. package/dist/browser/{client-DAKS0U8K.js → client-BtftV096.js} +4 -4
  24. package/dist/browser/{components-DH3gByAx.js → components-BWMM8EM8.js} +39 -39
  25. package/dist/browser/{debug-overlay-Be890ZO7.js → debug-overlay-D3Y5V71i.js} +10 -10
  26. package/dist/browser/{debug-ui-XYberMvC.js → debug-ui-DLVYgylj.js} +6 -6
  27. package/dist/browser/{dist-BSw8w9i7.js → dist-BXb1cx9e.js} +5 -5
  28. package/dist/browser/{dist-o6qsiE4U.js → dist-CfgFWfr7.js} +3 -3
  29. package/dist/browser/{dist-Bk3kAaWz.js → dist-DDo1tPsx.js} +6 -6
  30. package/dist/browser/{efp-debug-init-3TBJNj3N.js → efp-debug-init-C07vji2o.js} +3 -3
  31. package/dist/browser/{enum-editor-BsBjegIJ.js → enum-editor-CQB7Ql3U.js} +4 -4
  32. package/dist/browser/{es5-BD1Rwujz.js → es5-ijKSUeQ7.js} +2 -2
  33. package/dist/browser/{event-not-found-DAOwyi7_.js → event-not-found-BwyzoaLT.js} +1 -1
  34. package/dist/browser/{exports-DGRPWR71.js → exports-Ci3Y-h6M.js} +1 -1
  35. package/dist/browser/{favicon-CI2oWQiP.js → favicon-BGu3h_Jd.js} +1 -1
  36. package/dist/browser/{fetch-retry.umd-BqOpMJNK.js → fetch-retry.umd-DPsRRR-2.js} +2 -2
  37. package/dist/browser/{flex-B9MWsK8X.js → flex-pSz169Ur.js} +5 -5
  38. package/dist/browser/{floorplan.loader-D_9WY3Kh.js → floorplan.loader-C6QTWa65.js} +10 -10
  39. package/dist/browser/{floorplan.ready-PiYl6IWL.js → floorplan.ready-CAzapBXm.js} +15 -15
  40. package/dist/browser/{fuse-BPkdlShc.js → fuse-DtxL2N-V.js} +2 -2
  41. package/dist/browser/{i18n-FEmGn2JV.js → i18n-DVyODyCY.js} +13 -8
  42. package/dist/browser/index.js +14 -14
  43. package/dist/browser/{index.module-BguE-_Wj.js → index.module-Cvt_te8N.js} +4 -4
  44. package/dist/browser/integrateKiosk-d8rib-aX.js +33 -0
  45. package/dist/browser/{is-webview-9M2Yj5ei.js → is-webview-DdTBb7TJ.js} +1 -1
  46. package/dist/browser/{jsx-runtime-DYsjQsrw.js → jsx-runtime-DaJp0rHj.js} +2 -2
  47. package/dist/browser/kiosk-record-CKAUCVLy.js +18 -0
  48. package/dist/browser/{lib-ptH9cMvV.js → lib-DJccgJUD.js} +3 -3
  49. package/dist/browser/{loadImage-D1lj2pub.js → loadImage-x0VcWQVd.js} +4 -4
  50. package/dist/browser/{logDeviceInfo-1Jnenmv9.js → logDeviceInfo-D0W2-Idq.js} +9 -9
  51. package/dist/browser/{main-Ct8T2R4I.js → main-BPkzidEN.js} +1 -1
  52. package/dist/browser/{mobx-BrPGZtR2.js → mobx-BhywMatw.js} +4 -4
  53. package/dist/browser/{optional-boolean-editor-C0yStP2c.js → optional-boolean-editor-Mcny_JoC.js} +3 -3
  54. package/dist/browser/{optional-enum-editor-DCkotMQM.js → optional-enum-editor-DNJb-HlW.js} +4 -4
  55. package/dist/browser/{optional-string-editor-BXC0PQUH.js → optional-string-editor-mXHbu-td.js} +4 -4
  56. package/dist/browser/{particles.min-BIHTPiu9.js → particles.min-h8plthOJ.js} +2 -2
  57. package/dist/browser/{react-C753AZV-.js → react-BtNYeFCj.js} +2 -2
  58. package/dist/browser/{react-dom-89G1BmuL.js → react-dom-Cpzv99hV.js} +3 -3
  59. package/dist/browser/{rolldown-runtime-Bkcab2xj.js → rolldown-runtime-DISrh_Iz.js} +1 -1
  60. package/dist/browser/{select-CpxGNna0.js → select-CUP0HHGg.js} +10 -10
  61. package/dist/browser/{settings-item-B-Es_kkd.js → settings-item-EIedbjEy.js} +6 -6
  62. package/dist/browser/{settings-B0AiS7Uf.js → settings-vwUDDFWG.js} +2 -2
  63. package/dist/browser/{store-CZirnYJR.js → store-CuOAVnMk.js} +24 -15
  64. package/dist/browser/{string-editor-BKu088c1.js → string-editor-B5j-wOvD.js} +4 -4
  65. package/dist/browser/{text-field-BIlKf6rZ.js → text-field-C7hImOEM.js} +5 -5
  66. package/dist/browser/{theme-CPAlpTnK.js → theme--eOt90dH.js} +8 -8
  67. package/dist/browser/{ui-CiRWDlLP.js → ui-BbAFe1Un.js} +8 -8
  68. package/dist/browser/{useRenderTarget-D28tWpyh.js → useRenderTarget-tyvk_Tnj.js} +4 -4
  69. package/dist/esm/components/Kiosk/KioskStore.d.ts +9 -0
  70. package/dist/esm/components/Kiosk/KioskStore.js +1 -1
  71. package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +18 -14
  72. package/dist/esm/components/Kiosk/integrateKiosk.d.ts +1 -1
  73. package/dist/esm/components/Kiosk/integrateKiosk.js +1 -1
  74. package/dist/esm/components/Kiosk/kiosk-record.d.ts +19 -0
  75. package/dist/esm/components/Kiosk/kiosk-record.js +1 -0
  76. package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -1
  77. package/dist/esm/components/Maplibre/useKioskIdleEvents.d.ts +18 -0
  78. package/dist/esm/components/Maplibre/useKioskIdleEvents.js +1 -0
  79. package/dist/esm/store/MaplibreStore.d.ts +47 -0
  80. package/dist/esm/store/MaplibreStore.js +1 -1
  81. package/package.json +8 -8
  82. package/dist/browser/KioskStore-CYbUyTYw.js +0 -241
  83. package/dist/browser/integrateKiosk-39QjxjrN.js +0 -28
@@ -2,15 +2,15 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
2
2
  (function() {
3
3
  try {
4
4
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.16.2" };
5
+ e.SENTRY_RELEASE = { id: "3.18.0" };
6
6
  var t = new e.Error().stack;
7
7
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "3e893bf2-2454-46c4-a34a-5a56a7cc6e69", e._sentryDebugIdIdentifier = "sentry-dbid-3e893bf2-2454-46c4-a34a-5a56a7cc6e69");
8
8
  } catch {}
9
9
  })();
10
- import { r as e } from "./rolldown-runtime-Bkcab2xj.js";
11
- import { t } from "./react-C753AZV-.js";
12
- import { t as n } from "./jsx-runtime-DYsjQsrw.js";
13
- import { t as r } from "./classnames-ADmvTvsM.js";
10
+ import { r as e } from "./rolldown-runtime-DISrh_Iz.js";
11
+ import { t } from "./react-BtNYeFCj.js";
12
+ import { t as n } from "./jsx-runtime-DaJp0rHj.js";
13
+ import { t as r } from "./classnames-DsyabRET.js";
14
14
  //#region src/ui/Button/Button.tsx
15
15
  var i = /* @__PURE__ */ e(r(), 1);
16
16
  t();
@@ -1,17 +1,17 @@
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.16.2" };
4
+ e.SENTRY_RELEASE = { id: "3.18.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "79c84256-9ce3-4e90-b8a7-605646518afa", e._sentryDebugIdIdentifier = "sentry-dbid-79c84256-9ce3-4e90-b8a7-605646518afa");
7
7
  } catch {}
8
8
  })();
9
- import { n as e } from "./rolldown-runtime-Bkcab2xj.js";
10
- import { s as t } from "./i18n-FEmGn2JV.js";
11
- import { t as n } from "./react-C753AZV-.js";
12
- import { t as r } from "./jsx-runtime-DYsjQsrw.js";
13
- import { t as i } from "./index.module-BguE-_Wj.js";
14
- import { t as a } from "./PermissionNotice-B0h3WhJ7.js";
9
+ import { n as e } from "./rolldown-runtime-DISrh_Iz.js";
10
+ import { s as t } from "./i18n-DVyODyCY.js";
11
+ import { t as n } from "./react-BtNYeFCj.js";
12
+ import { t as r } from "./jsx-runtime-DaJp0rHj.js";
13
+ import { t as i } from "./index.module-Cvt_te8N.js";
14
+ import { t as a } from "./PermissionNotice-zHHL-Tb1.js";
15
15
  //#region src/components/CookieConsent.tsx
16
16
  var o = /* @__PURE__ */ e({ default: () => c });
17
17
  n();
@@ -2,17 +2,17 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
2
2
  (function() {
3
3
  try {
4
4
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.16.2" };
5
+ e.SENTRY_RELEASE = { id: "3.18.0" };
6
6
  var t = new e.Error().stack;
7
7
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ccd649fd-2f8a-44a8-ae8b-b63aa36d0a32", e._sentryDebugIdIdentifier = "sentry-dbid-ccd649fd-2f8a-44a8-ae8b-b63aa36d0a32");
8
8
  } catch {}
9
9
  })();
10
- import "./rolldown-runtime-Bkcab2xj.js";
11
- import { s as e } from "./i18n-FEmGn2JV.js";
12
- import { t } from "./react-C753AZV-.js";
13
- import { t as n } from "./jsx-runtime-DYsjQsrw.js";
14
- import { r } from "./index.module-BguE-_Wj.js";
15
- import { c as i, s as a } from "./store-CZirnYJR.js";
10
+ import "./rolldown-runtime-DISrh_Iz.js";
11
+ import { s as e } from "./i18n-DVyODyCY.js";
12
+ import { t } from "./react-BtNYeFCj.js";
13
+ import { t as n } from "./jsx-runtime-DaJp0rHj.js";
14
+ import { r } from "./index.module-Cvt_te8N.js";
15
+ import { c as i, s as a } from "./store-CuOAVnMk.js";
16
16
  t();
17
17
  var o = [], s = n();
18
18
  function c() {
@@ -2,19 +2,19 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
2
2
  (function() {
3
3
  try {
4
4
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.16.2" };
5
+ e.SENTRY_RELEASE = { id: "3.18.0" };
6
6
  var t = new e.Error().stack;
7
7
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9507a38d-b2dc-4f6c-83bf-5d676a745378", e._sentryDebugIdIdentifier = "sentry-dbid-9507a38d-b2dc-4f6c-83bf-5d676a745378");
8
8
  } catch {}
9
9
  })();
10
- import { n as e, r as t } from "./rolldown-runtime-Bkcab2xj.js";
11
- import { s as n } from "./i18n-FEmGn2JV.js";
12
- import { t as r } from "./react-C753AZV-.js";
13
- import { t as i } from "./jsx-runtime-DYsjQsrw.js";
14
- import { t as a } from "./classnames-ADmvTvsM.js";
15
- import { n as o, r as s } from "./index.module-BguE-_Wj.js";
16
- import { c } from "./store-CZirnYJR.js";
17
- import { n as l } from "./mobx-BrPGZtR2.js";
10
+ import { n as e, r as t } from "./rolldown-runtime-DISrh_Iz.js";
11
+ import { s as n } from "./i18n-DVyODyCY.js";
12
+ import { t as r } from "./react-BtNYeFCj.js";
13
+ import { t as i } from "./jsx-runtime-DaJp0rHj.js";
14
+ import { t as a } from "./classnames-DsyabRET.js";
15
+ import { n as o, r as s } from "./index.module-Cvt_te8N.js";
16
+ import { c } from "./store-CuOAVnMk.js";
17
+ import { n as l } from "./mobx-BhywMatw.js";
18
18
  //#region src/components/Demo.tsx
19
19
  var u = /* @__PURE__ */ e({ default: () => m }), d = /* @__PURE__ */ t(a(), 1);
20
20
  r();
@@ -2,19 +2,19 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
2
2
  (function() {
3
3
  try {
4
4
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.16.2" };
5
+ e.SENTRY_RELEASE = { id: "3.18.0" };
6
6
  var t = new e.Error().stack;
7
7
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "f7cddd06-14c0-4e66-8ea8-d83302104dc7", e._sentryDebugIdIdentifier = "sentry-dbid-f7cddd06-14c0-4e66-8ea8-d83302104dc7");
8
8
  } catch {}
9
9
  })();
10
- import { r as e } from "./rolldown-runtime-Bkcab2xj.js";
11
- import { s as t } from "./i18n-FEmGn2JV.js";
12
- import { t as n } from "./react-C753AZV-.js";
13
- import { t as r } from "./jsx-runtime-DYsjQsrw.js";
14
- import { t as i } from "./classnames-ADmvTvsM.js";
15
- import { n as a, r as o } from "./index.module-BguE-_Wj.js";
16
- import { c as s, f as c, p as l } from "./store-CZirnYJR.js";
17
- import { n as u } from "./mobx-BrPGZtR2.js";
10
+ import { r as e } from "./rolldown-runtime-DISrh_Iz.js";
11
+ import { s as t } from "./i18n-DVyODyCY.js";
12
+ import { t as n } from "./react-BtNYeFCj.js";
13
+ import { t as r } from "./jsx-runtime-DaJp0rHj.js";
14
+ import { t as i } from "./classnames-DsyabRET.js";
15
+ import { n as a, r as o } from "./index.module-Cvt_te8N.js";
16
+ import { c as s, f as c, p as l } from "./store-CuOAVnMk.js";
17
+ import { n as u } from "./mobx-BhywMatw.js";
18
18
  //#region src/components/Free.tsx
19
19
  var d = /* @__PURE__ */ e(i(), 1);
20
20
  n();
@@ -2,19 +2,19 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
2
2
  (function() {
3
3
  try {
4
4
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.16.2" };
5
+ e.SENTRY_RELEASE = { id: "3.18.0" };
6
6
  var t = new e.Error().stack;
7
7
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c195bf23-27e5-40b6-8b82-38b9342bda0d", e._sentryDebugIdIdentifier = "sentry-dbid-c195bf23-27e5-40b6-8b82-38b9342bda0d");
8
8
  } catch {}
9
9
  })();
10
- import { n as e, r as t } from "./rolldown-runtime-Bkcab2xj.js";
11
- import { s as n } from "./i18n-FEmGn2JV.js";
12
- import { t as r } from "./react-C753AZV-.js";
13
- import { t as i } from "./jsx-runtime-DYsjQsrw.js";
14
- import { t as a } from "./react-dom-89G1BmuL.js";
15
- import { t as o } from "./classnames-ADmvTvsM.js";
16
- import { t as s } from "./index.module-BguE-_Wj.js";
17
- import { t as c } from "./useRenderTarget-D28tWpyh.js";
10
+ import { n as e, r as t } from "./rolldown-runtime-DISrh_Iz.js";
11
+ import { s as n } from "./i18n-DVyODyCY.js";
12
+ import { t as r } from "./react-BtNYeFCj.js";
13
+ import { t as i } from "./jsx-runtime-DaJp0rHj.js";
14
+ import { t as a } from "./react-dom-Cpzv99hV.js";
15
+ import { t as o } from "./classnames-DsyabRET.js";
16
+ import { t as s } from "./index.module-Cvt_te8N.js";
17
+ import { t as c } from "./useRenderTarget-tyvk_Tnj.js";
18
18
  //#region src/components/Gallery/GalleryBadges/GalleryBadges.tsx
19
19
  var l = /* @__PURE__ */ t(o(), 1), u = /* @__PURE__ */ t(r(), 1), d = i(), f = ({ count: e, onFullscreen: t }) => /* @__PURE__ */ (0, d.jsxs)(d.Fragment, { children: [/* @__PURE__ */ (0, d.jsxs)("div", {
20
20
  className: "gallery__badge gallery__badge-count",
@@ -1,20 +1,20 @@
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.16.2" };
4
+ e.SENTRY_RELEASE = { id: "3.18.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "fb06a891-7af5-4150-9dba-73b8baabd75d", e._sentryDebugIdIdentifier = "sentry-dbid-fb06a891-7af5-4150-9dba-73b8baabd75d");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-Bkcab2xj.js";
10
- import { K as t, s as n } from "./i18n-FEmGn2JV.js";
11
- import { t as r } from "./react-C753AZV-.js";
12
- import { t as i } from "./jsx-runtime-DYsjQsrw.js";
13
- import { r as a } from "./loadImage-D1lj2pub.js";
14
- import { t as o } from "./index.module-BguE-_Wj.js";
15
- import { t as s } from "./PermissionNotice-B0h3WhJ7.js";
16
- import { s as c, sn as l, xt as u, y as d } from "./store-CZirnYJR.js";
17
- import { r as f } from "./mobx-BrPGZtR2.js";
9
+ import { r as e } from "./rolldown-runtime-DISrh_Iz.js";
10
+ import { K as t, s as n } from "./i18n-DVyODyCY.js";
11
+ import { t as r } from "./react-BtNYeFCj.js";
12
+ import { t as i } from "./jsx-runtime-DaJp0rHj.js";
13
+ import { r as a } from "./loadImage-x0VcWQVd.js";
14
+ import { t as o } from "./index.module-Cvt_te8N.js";
15
+ import { t as s } from "./PermissionNotice-zHHL-Tb1.js";
16
+ import { s as c, sn as l, xt as u, y as d } from "./store-CuOAVnMk.js";
17
+ import { r as f } from "./mobx-BhywMatw.js";
18
18
  //#region src/components/gps/GpsPermissionRequest.tsx
19
19
  var p = /* @__PURE__ */ e(r(), 1), m = i(), h = o(function({ isOpen: e, onAllow: t, onCancel: r }) {
20
20
  return e ? /* @__PURE__ */ (0, m.jsx)(s, {
@@ -0,0 +1,288 @@
1
+ (function() {
2
+ try {
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.18.0" };
5
+ var t = new e.Error().stack;
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "728379bf-9241-4054-9ebf-60e9482ddaf1", e._sentryDebugIdIdentifier = "sentry-dbid-728379bf-9241-4054-9ebf-60e9482ddaf1");
7
+ } catch {}
8
+ })();
9
+ import { C as e, _ as t, d as n, m as r, s as i, x as a } from "./i18n-DVyODyCY.js";
10
+ import { $ as o, Mt as s, Q as c, Xt as l, Z as u, rt as d, s as f } from "./store-CuOAVnMk.js";
11
+ import { n as p, t as m } from "./kiosk-record-CKAUCVLy.js";
12
+ //#region src/components/Map/pointInConvexQuad.ts
13
+ function h(e, t) {
14
+ let n = 0;
15
+ for (let r = 0; r < 4; r++) {
16
+ let i = t[r], a = t[(r + 1) % 4], o = (a.x - i.x) * (e.y - i.y) - (a.y - i.y) * (e.x - i.x);
17
+ if (!Number.isFinite(o)) return !1;
18
+ if (o === 0) continue;
19
+ let s = o > 0 ? 1 : -1;
20
+ if (n === 0) n = s;
21
+ else if (n !== s) return !1;
22
+ }
23
+ return n !== 0;
24
+ }
25
+ //#endregion
26
+ //#region src/components/Map/visibleArea.ts
27
+ function g(e) {
28
+ let t = s(e.viewport.canvasToSvg({
29
+ x: 0,
30
+ y: 0
31
+ })), n = s(e.viewport.canvasToSvg({
32
+ x: e.canvas.clientWidth,
33
+ y: 0
34
+ })), r = s(e.viewport.canvasToSvg({
35
+ x: 0,
36
+ y: e.canvas.clientHeight
37
+ })), i = s(e.viewport.canvasToSvg({
38
+ x: e.canvas.clientWidth,
39
+ y: e.canvas.clientHeight
40
+ })), a = Math.min(t.x, n.x, r.x, i.x), o = Math.max(t.x, n.x, r.x, i.x), c = Math.min(t.y, n.y, r.y, i.y), l = Math.max(t.y, n.y, r.y, i.y);
41
+ return {
42
+ x: a,
43
+ y: c,
44
+ width: o - a,
45
+ height: l - c,
46
+ left: a,
47
+ right: o,
48
+ top: l,
49
+ bottom: c,
50
+ center: {
51
+ x: (a + o) / 2,
52
+ y: (c + l) / 2
53
+ },
54
+ corners: [
55
+ t,
56
+ n,
57
+ i,
58
+ r
59
+ ]
60
+ };
61
+ }
62
+ function _(e, t) {
63
+ return h(t, g(e).corners);
64
+ }
65
+ //#endregion
66
+ //#region src/components/Kiosk/KioskStore.ts
67
+ var v, y, b, x, S, C;
68
+ function w(e, t, n, r) {
69
+ n && Object.defineProperty(e, t, {
70
+ enumerable: n.enumerable,
71
+ configurable: n.configurable,
72
+ writable: n.writable,
73
+ value: n.initializer ? n.initializer.call(r) : void 0
74
+ });
75
+ }
76
+ function T(e, t, n, r, i) {
77
+ var a = {};
78
+ return Object.keys(r).forEach(function(e) {
79
+ a[e] = r[e];
80
+ }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = n.slice().reverse().reduce(function(n, r) {
81
+ return r(e, t, n) || n;
82
+ }, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
83
+ }
84
+ var E = 2e4, D = new (v = r({ keepAlive: !0 }), y = r({ keepAlive: !0 }), b = r({ keepAlive: !0 }), x = class {
85
+ constructor() {
86
+ w(this, "savedKiosk", S, this), w(this, "statusMessages", C, this), this.statusMessageTimer = 0, this.isResettingCamera = !1, this.initialPtScale = void 0;
87
+ }
88
+ get kiosk() {
89
+ return f.uiState.kioskData;
90
+ }
91
+ setKiosk(e) {
92
+ f.uiState.setKioskData(e);
93
+ }
94
+ get renderer() {
95
+ return f.rendererService.renderer;
96
+ }
97
+ getCameraState() {
98
+ if (f.maplibreStore.showMaplibre) {
99
+ var e;
100
+ let t = (e = f.maplibreStore.cameraPort) == null ? void 0 : e.getCameraState();
101
+ return t ? {
102
+ mapCenterLng: t.lng,
103
+ mapCenterLat: t.lat,
104
+ mapZoom: t.zoom,
105
+ mapBearingDegrees: t.bearing,
106
+ mapPitchDegrees: t.pitch
107
+ } : {};
108
+ }
109
+ let t = f.rendererService.getCameraState();
110
+ return t ? {
111
+ mapInitialPtScale: this.initialPtScale,
112
+ mapPtScale: t.ptScale,
113
+ mapCenterX: t.center.x,
114
+ mapCenterY: t.center.y,
115
+ mapRollDegrees: t.roll,
116
+ mapPitch: t.pitch
117
+ } : {};
118
+ }
119
+ get hasUnsavedChanges() {
120
+ let e = this.savedKiosk, t = a(this.kiosk);
121
+ if (!t || !e) return !!t != !!e;
122
+ let n = Object.keys(e), r = Object.keys(t);
123
+ if (n.length !== r.length) return !0;
124
+ for (let r of n) if (!(r in t) || e[r] !== t[r]) return !0;
125
+ return !1;
126
+ }
127
+ addStatusMessage(e) {
128
+ this.statusMessages = [{
129
+ ...e,
130
+ id: Date.now()
131
+ }], this.startCleanupMessages();
132
+ }
133
+ clearStatusMessages() {
134
+ this.statusMessages = [];
135
+ }
136
+ startCleanupMessages() {
137
+ clearTimeout(this.statusMessageTimer), this.statusMessageTimer = window.setTimeout(() => this.clearStatusMessages(), 1e3);
138
+ }
139
+ async resetCamera() {
140
+ if (!this.isResettingCamera) {
141
+ this.isResettingCamera = !0;
142
+ try {
143
+ if (f.maplibreStore.showMaplibre && await this.resetMaplibreCamera()) return;
144
+ await this.resetRendererCamera();
145
+ } finally {
146
+ this.isResettingCamera = !1;
147
+ }
148
+ }
149
+ }
150
+ async resetMaplibreCamera() {
151
+ let e = await this.waitForMaplibreCameraPort();
152
+ if (!e) return !1;
153
+ let t = this.kiosk;
154
+ (t == null ? void 0 : t.z) != null && f.fp.activateFloor({ name: String(t.z) });
155
+ let n = p(t == null ? void 0 : t.mapCenterLng), r = p(t == null ? void 0 : t.mapCenterLat), i = p(t == null ? void 0 : t.mapZoom);
156
+ return n === void 0 || r === void 0 || i === void 0 ? (e.resetPitch(), f.uiState.fitBounds(), !0) : (e.applyCameraState({
157
+ lng: n,
158
+ lat: r,
159
+ zoom: i,
160
+ bearing: p(t == null ? void 0 : t.mapBearingDegrees),
161
+ pitch: p(t == null ? void 0 : t.mapPitchDegrees)
162
+ }), !0);
163
+ }
164
+ async waitForMaplibreCameraPort() {
165
+ let { maplibreStore: t } = f;
166
+ if (t.cameraPort) return t.cameraPort;
167
+ try {
168
+ await e(() => !!t.cameraPort || !t.showMaplibre, { timeout: E });
169
+ } catch {
170
+ return null;
171
+ }
172
+ return t.cameraPort;
173
+ }
174
+ async resetRendererCamera() {
175
+ let e = this.renderer;
176
+ if (!e) return;
177
+ let t = this.kiosk;
178
+ await e.controls.resetCamera({
179
+ pan: !0,
180
+ zoom: !0,
181
+ roll: !0,
182
+ pitch: !0
183
+ }, !0), (t == null ? void 0 : t.z) != null && f.fp.activateFloor({ name: String(t.z) });
184
+ let n = m(t);
185
+ n !== void 0 && await e.controls.zoomBy(n, !0);
186
+ let r = p(t == null ? void 0 : t.mapCenterX), i = p(t == null ? void 0 : t.mapCenterY);
187
+ r !== void 0 && i !== void 0 && await e.controls.panTo(r, i, !0);
188
+ let a = p(t == null ? void 0 : t.mapRollDegrees);
189
+ a !== void 0 && await e.controls.rollTo(a, !0);
190
+ }
191
+ restoreData() {
192
+ let e = u();
193
+ e && (this.setKiosk(e), this.savedKiosk = e, f.uiState.kiosk = !0);
194
+ }
195
+ handleSetupReady() {
196
+ this.restoreData(), f.uiState.kiosk = !0, f.uiState.hideFreeOrDemo = !0, f.uiState.setForceDim(!0), f.searchStore.setSearchText(""), f.searchStore.setFocused(!1), this.resetCamera();
197
+ }
198
+ handleClose() {
199
+ this.setKiosk(null), f.uiState.setForceDim(!1), f.uiState.enableSetKioskMode(!1), f.searchStore.closeSearch();
200
+ }
201
+ handleDelete() {
202
+ c(), this.setKiosk(null), f.uiState.resetMapSettings(), f.uiState.resetUIScale(), this.addStatusMessage({
203
+ variant: "success",
204
+ title: i("Deleted")
205
+ });
206
+ }
207
+ handleSave() {
208
+ let e = this.renderer;
209
+ if (!e) return;
210
+ let t = a(this.kiosk), n = this.getCameraState(), r = {
211
+ ...t,
212
+ ...n
213
+ };
214
+ if (!_(e, r)) {
215
+ this.addStatusMessage({
216
+ variant: "error",
217
+ title: i("Kiosk not visible")
218
+ });
219
+ return;
220
+ }
221
+ this.setKiosk(r), o(r), d(r, "https://app.expofp.com/"), f.uiState.setUIScale(r.uiScale, !0), this.addStatusMessage({
222
+ variant: "success",
223
+ title: i("Saved")
224
+ }), this.savedKiosk = r;
225
+ }
226
+ delayChange(e) {
227
+ requestAnimationFrame(() => e == null ? void 0 : e());
228
+ }
229
+ handleChange(e) {
230
+ let t = a(this.kiosk);
231
+ t && (Number.isFinite(e.angle) && this.setKiosk({
232
+ ...t,
233
+ heading: e.angle
234
+ }), Number.isFinite(e.scale) && (this.setKiosk({
235
+ ...t,
236
+ uiScale: e.scale
237
+ }), this.delayChange(() => f.uiState.setUIScale(e.scale, !1))), Number.isFinite(e.percent) && this.setKiosk({
238
+ ...t,
239
+ iconSizePercent: e.percent
240
+ }));
241
+ }
242
+ setInitialPtScale(e) {
243
+ if (this.initialPtScale) return;
244
+ this.initialPtScale = e;
245
+ let t = a(this.kiosk);
246
+ t && this.setKiosk({
247
+ ...t,
248
+ mapInitialPtScale: e
249
+ });
250
+ }
251
+ handleClick(e) {
252
+ var t, n;
253
+ let r = a(this.kiosk), i = f.fp.getFloors(), o = l() ? (t = (n = i.find((e) => e.active)) == null ? void 0 : n.name) == null ? null : t : null, s = f.uiState.uiScale;
254
+ this.setKiosk({
255
+ ...r,
256
+ x: e.x,
257
+ y: e.y,
258
+ z: o,
259
+ uiScale: (r == null ? void 0 : r.uiScale) || s,
260
+ heading: (r == null ? void 0 : r.heading) || 0,
261
+ iconSizePercent: (r == null ? void 0 : r.iconSizePercent) || 100,
262
+ ...this.getCameraState()
263
+ });
264
+ }
265
+ handleNavigationChange() {
266
+ let e = a(this.kiosk);
267
+ e && this.setKiosk({
268
+ ...e,
269
+ ...this.getCameraState()
270
+ });
271
+ }
272
+ }, T(x.prototype, "kiosk", [v], Object.getOwnPropertyDescriptor(x.prototype, "kiosk"), x.prototype), T(x.prototype, "setKiosk", [n], Object.getOwnPropertyDescriptor(x.prototype, "setKiosk"), x.prototype), T(x.prototype, "renderer", [y], Object.getOwnPropertyDescriptor(x.prototype, "renderer"), x.prototype), S = T(x.prototype, "savedKiosk", [t], {
273
+ configurable: !0,
274
+ enumerable: !0,
275
+ writable: !0,
276
+ initializer: function() {
277
+ return null;
278
+ }
279
+ }), T(x.prototype, "hasUnsavedChanges", [b], Object.getOwnPropertyDescriptor(x.prototype, "hasUnsavedChanges"), x.prototype), C = T(x.prototype, "statusMessages", [t], {
280
+ configurable: !0,
281
+ enumerable: !0,
282
+ writable: !0,
283
+ initializer: function() {
284
+ return [];
285
+ }
286
+ }), T(x.prototype, "addStatusMessage", [n], Object.getOwnPropertyDescriptor(x.prototype, "addStatusMessage"), x.prototype), T(x.prototype, "clearStatusMessages", [n], Object.getOwnPropertyDescriptor(x.prototype, "clearStatusMessages"), x.prototype), T(x.prototype, "startCleanupMessages", [n], Object.getOwnPropertyDescriptor(x.prototype, "startCleanupMessages"), x.prototype), T(x.prototype, "resetCamera", [n], Object.getOwnPropertyDescriptor(x.prototype, "resetCamera"), x.prototype), T(x.prototype, "restoreData", [n], Object.getOwnPropertyDescriptor(x.prototype, "restoreData"), x.prototype), T(x.prototype, "handleSetupReady", [n], Object.getOwnPropertyDescriptor(x.prototype, "handleSetupReady"), x.prototype), T(x.prototype, "handleClose", [n], Object.getOwnPropertyDescriptor(x.prototype, "handleClose"), x.prototype), T(x.prototype, "handleDelete", [n], Object.getOwnPropertyDescriptor(x.prototype, "handleDelete"), x.prototype), T(x.prototype, "handleSave", [n], Object.getOwnPropertyDescriptor(x.prototype, "handleSave"), x.prototype), T(x.prototype, "handleChange", [n], Object.getOwnPropertyDescriptor(x.prototype, "handleChange"), x.prototype), T(x.prototype, "setInitialPtScale", [n], Object.getOwnPropertyDescriptor(x.prototype, "setInitialPtScale"), x.prototype), T(x.prototype, "handleClick", [n], Object.getOwnPropertyDescriptor(x.prototype, "handleClick"), x.prototype), T(x.prototype, "handleNavigationChange", [n], Object.getOwnPropertyDescriptor(x.prototype, "handleNavigationChange"), x.prototype), x)();
287
+ //#endregion
288
+ export { D as t };