@expofp/floorplan 3.4.0 → 3.4.2

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 (86) hide show
  1. package/dist/browser/{CookieConsent-BgzFI0o5.js → CookieConsent-DEAbvKlG.js} +8 -8
  2. package/dist/browser/{Debug-DwwZ0jVT.js → Debug-CpJwwOld.js} +9 -9
  3. package/dist/browser/{Demo-Bhv7muKd.js → Demo-oTUiW13k.js} +11 -11
  4. package/dist/browser/{Free-EaDzP7U5.js → Free-oWrO--p3.js} +12 -12
  5. package/dist/browser/{Gallery-BFio06PY.js → Gallery-VIYxnMXI.js} +10 -10
  6. package/dist/browser/{GpsLoader-BhYirpWa.js → GpsLoader-L3iMhaLD.js} +36 -36
  7. package/dist/browser/{KioskStore-DiTPaFb2.js → KioskStore-DlE-IugZ.js} +31 -31
  8. package/dist/browser/{MaplibreAdapter-BKj3sK8A.js → MaplibreAdapter-Da1dmw4h.js} +77 -77
  9. package/dist/browser/{Modal-DVY124d5.js → Modal-BekqxJUr.js} +10 -10
  10. package/dist/browser/{PermissionNotice-CrAxf_da.js → PermissionNotice-Dgg5x1Kp.js} +7 -7
  11. package/dist/browser/{SetKioskMode-Cj1IbMbn.js → SetKioskMode-omOc4kgW.js} +20 -20
  12. package/dist/browser/ShowKiosk-CDyZUm69.js +26 -0
  13. package/dist/browser/{TouchHand-BdZWU_I1.js → TouchHand-DEQtI3xd.js} +4 -4
  14. package/dist/browser/{ViewerMenuPanel-DbVIwrJO.js → ViewerMenuPanel-D5s1dRXA.js} +15 -15
  15. package/dist/browser/add-debug-secret-listener-Bk8S6QBl.js +45 -0
  16. package/dist/browser/{boolean-editor-CIT7g6C5.js → boolean-editor-Z_evwO3E.js} +10 -10
  17. package/dist/browser/{bootIntercom-CcgHFRAw.js → bootIntercom-D0UY8C6w.js} +2 -2
  18. package/dist/browser/{box-CydZk4HJ.js → box-BbcogcxD.js} +5 -5
  19. package/dist/browser/{browser-DlMYMMvJ.js → browser-CgI3xpVN.js} +2 -2
  20. package/dist/browser/bundle.json +58 -58
  21. package/dist/browser/{classnames-DmdaKMoa.js → classnames-BsOtQA2L.js} +2 -2
  22. package/dist/browser/{client-8ygU_jvu.js → client-CMaieNrx.js} +4 -4
  23. package/dist/browser/{components-BgwIl1Lu.js → components-CTJJKcqy.js} +856 -845
  24. package/dist/browser/{createWayfinding-D9tuHHx5.js → createWayfinding-BH2LavNR.js} +322 -322
  25. package/dist/browser/{debug-overlay-Dos3Ate2.js → debug-overlay-DOUebLzr.js} +15 -16
  26. package/dist/browser/{debug-ui-BjmKfkgV.js → debug-ui-B0L5AFjM.js} +18 -14
  27. package/dist/browser/{dist-_wJOZ0rm.js → dist-B1bbjHPL.js} +5 -5
  28. package/dist/browser/{dist-B3Y58WKJ.js → dist-C_JK_XSE.js} +6 -6
  29. package/dist/browser/{dist-Bm6VKnC2.js → dist-DePRATz7.js} +3 -3
  30. package/dist/browser/{efp-debug-init-yyCWZRTx.js → efp-debug-init-B0xcudHJ.js} +2 -2
  31. package/dist/browser/{enum-editor-D8X_uabc.js → enum-editor-BLV_rmjb.js} +11 -11
  32. package/dist/browser/{event-not-found-Bm_W5xxA.js → event-not-found-BCiSedlf.js} +1 -1
  33. package/dist/browser/{exports-DnHrfjiU.js → exports-EzILHm5l.js} +1 -1
  34. package/dist/browser/{favicon-Bnz633J6.js → favicon-BrZccURf.js} +1 -1
  35. package/dist/browser/{fetch-retry.umd-BunUcQza.js → fetch-retry.umd-ic7jvaXd.js} +2 -2
  36. package/dist/browser/{flex-DwDJlblp.js → flex-CpUGKJTz.js} +6 -6
  37. package/dist/browser/{flex.props-BAGkFvkN.js → flex.props-BbX_RHJM.js} +2 -2
  38. package/dist/browser/{floorplan.loader-B3PUqtqn.js → floorplan.loader-DIZ5epU0.js} +298 -298
  39. package/dist/browser/{floorplan.ready-BAnq_GdS.js → floorplan.ready-Dvfe9ooo.js} +299 -299
  40. package/dist/browser/{fuse-Bhsd7fBU.js → fuse-C3nkWq9h.js} +2 -2
  41. package/dist/browser/{i18n-C5BBGKZk.js → i18n-BvWWeYY6.js} +4 -4
  42. package/dist/browser/index.js +11 -12
  43. package/dist/browser/{jsx-runtime-Dk2--jeN.js → jsx-runtime-CpnJUEa4.js} +2 -2
  44. package/dist/browser/{lib-Brd2BCh_.js → lib-BPxBfHX7.js} +4 -4
  45. package/dist/browser/{main-pIcuVUIg.js → main-CYnVh6l8.js} +1 -1
  46. package/dist/browser/{mobx-BfCD0EQ-.js → mobx-BZgEwWpG.js} +5 -5
  47. package/dist/browser/{particles.min-ChGMv-bm.js → particles.min-AD83LfLz.js} +2 -2
  48. package/dist/browser/{prop-types-xdXFFTmm.js → prop-types-hzaOy_nc.js} +2 -2
  49. package/dist/browser/{react-BbZc5Oeq.js → react-5WQEZ4DW.js} +2 -2
  50. package/dist/browser/{react-dom-BBDOhlbP.js → react-dom-XYvR43j3.js} +3 -3
  51. package/dist/browser/{reset-all-settings-BQC7zljW.js → reset-all-settings-Dwf-vd5-.js} +13 -10
  52. package/dist/browser/{rolldown-runtime-DS4W77DU.js → rolldown-runtime-CMoq10W0.js} +1 -1
  53. package/dist/browser/{settings-CK-qRFM8.js → settings-Dm_PVdCk.js} +2 -2
  54. package/dist/browser/{settings-item-CUnGC7xO.js → settings-item-CwmE_qfm.js} +6 -6
  55. package/dist/browser/{storage-0QGL3b8S.js → storage-HvHclW-G.js} +5 -3
  56. package/dist/browser/{store-Bm4aFC2V.js → store-DytJUKc_.js} +1710 -1699
  57. package/dist/browser/{string-editor-BNry84Oh.js → string-editor-CKMg83Qb.js} +8 -8
  58. package/dist/browser/{theme-BIXywNMw.js → theme-DLcXAsUw.js} +8 -8
  59. package/dist/browser/{ui-AzubEvGd.js → ui-BabbLNs2.js} +9 -9
  60. package/dist/browser/{useRenderTarget-Bf7cQRFi.js → useRenderTarget-BRwTJ5Il.js} +4 -4
  61. package/dist/esm/components/AlertContainer.d.ts +3 -1
  62. package/dist/esm/components/AlertContainer.js +1 -1
  63. package/dist/esm/components/Booth/Booth.js +1 -1
  64. package/dist/esm/components/EntityItemContainer.d.ts +25 -2
  65. package/dist/esm/components/EntityItemContainer.js +1 -1
  66. package/dist/esm/components/EntityList.js +1 -1
  67. package/dist/esm/components/EntityListRow.d.ts +3 -2
  68. package/dist/esm/components/EntityListRow.js +1 -1
  69. package/dist/esm/components/Kiosk/KioskStore.d.ts +1 -1
  70. package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +1 -1
  71. package/dist/esm/components/Speakers.js +1 -1
  72. package/dist/esm/components/index.d.ts +2 -1
  73. package/dist/esm/store/MaplibreStore.js +1 -1
  74. package/dist/esm/ui/Alert/Alert.d.ts +1 -1
  75. package/dist/esm/ui/Alert/Alert.js +1 -1
  76. package/dist/esm/ui/EntityItem/EntityItem.d.ts +46 -0
  77. package/dist/esm/ui/EntityItem/EntityItem.js +1 -0
  78. package/dist/esm/ui/EntityItem/index.d.ts +3 -0
  79. package/dist/esm/ui/EntityItem/index.js +1 -0
  80. package/dist/esm/utils/isNumericLevel.d.ts +2 -0
  81. package/dist/esm/utils/isNumericLevel.js +1 -0
  82. package/package.json +4 -3
  83. package/dist/browser/ShowKiosk-CqmJT8yJ.js +0 -26
  84. package/dist/browser/add-debug-secret-listener-B8gxDWmn.js +0 -26
  85. package/dist/esm/components/EntityItem.d.ts +0 -44
  86. package/dist/esm/components/EntityItem.js +0 -1
@@ -1,18 +1,18 @@
1
1
  (function() {
2
2
  try {
3
3
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
- e.SENTRY_RELEASE = { id: "3.4.0" };
4
+ e.SENTRY_RELEASE = { id: "3.4.2" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "90fb92e4-0c35-4d73-af3d-09f610967014", e._sentryDebugIdIdentifier = "sentry-dbid-90fb92e4-0c35-4d73-af3d-09f610967014");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DS4W77DU.js";
10
- import { t } from "./react-BbZc5Oeq.js";
11
- import { t as n } from "./jsx-runtime-Dk2--jeN.js";
12
- import { E as r, c as i, l as a, o, r as s, v as c } from "./box-CydZk4HJ.js";
13
- import { t as l } from "./classnames-DmdaKMoa.js";
14
- import { t as u } from "./flex.props-BAGkFvkN.js";
15
- import { t as d } from "./settings-item-CUnGC7xO.js";
9
+ import { r as e } from "./rolldown-runtime-CMoq10W0.js";
10
+ import { t } from "./react-5WQEZ4DW.js";
11
+ import { t as n } from "./jsx-runtime-CpnJUEa4.js";
12
+ import { E as r, c as i, l as a, o, r as s, v as c } from "./box-BbcogcxD.js";
13
+ import { t as l } from "./classnames-BsOtQA2L.js";
14
+ import { t as u } from "./flex.props-BbX_RHJM.js";
15
+ import { t as d } from "./settings-item-CwmE_qfm.js";
16
16
  //#region ../../node_modules/.pnpm/@radix-ui+themes@3.3.0_@types+react-dom@19.2.3_@types+react@19.2.16__@types+react@19.2._237ab8922e2725fc6ff51784b4ebc77f/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js
17
17
  var f = {
18
18
  size: {
@@ -1,18 +1,18 @@
1
1
  (function() {
2
2
  try {
3
3
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
- e.SENTRY_RELEASE = { id: "3.4.0" };
4
+ e.SENTRY_RELEASE = { id: "3.4.2" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "cff38276-aa8d-41db-a31e-c60b68cf072c", e._sentryDebugIdIdentifier = "sentry-dbid-cff38276-aa8d-41db-a31e-c60b68cf072c");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DS4W77DU.js";
10
- import { t } from "./react-BbZc5Oeq.js";
11
- import { t as n } from "./jsx-runtime-Dk2--jeN.js";
12
- import { t as r } from "./react-dom-BBDOhlbP.js";
13
- import { C as i, D as a, S as o, T as s, _ as c, a as l, g as u, w as d } from "./box-CydZk4HJ.js";
14
- import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-B3Y58WKJ.js";
15
- import { t as y } from "./classnames-DmdaKMoa.js";
9
+ import { r as e } from "./rolldown-runtime-CMoq10W0.js";
10
+ import { t } from "./react-5WQEZ4DW.js";
11
+ import { t as n } from "./jsx-runtime-CpnJUEa4.js";
12
+ import { t as r } from "./react-dom-XYvR43j3.js";
13
+ import { C as i, D as a, S as o, T as s, _ as c, a as l, g as u, w as d } from "./box-BbcogcxD.js";
14
+ import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-C_JK_XSE.js";
15
+ import { t as y } from "./classnames-BsOtQA2L.js";
16
16
  //#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.16__@ty_0100624f14fe05e2fce87091cda222ea/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
17
17
  var b = /* @__PURE__ */ e(r(), 1), x = /* @__PURE__ */ e(t(), 1), S = n(), C = Object.freeze({
18
18
  position: "absolute",
@@ -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.4.0" };
4
+ e.SENTRY_RELEASE = { id: "3.4.2" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "11c667ee-f279-40ae-b116-af84691ecf19", e._sentryDebugIdIdentifier = "sentry-dbid-11c667ee-f279-40ae-b116-af84691ecf19");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "751711f5-8181-4be7-86b5-4dc6d2594afb", e._sentryDebugIdIdentifier = "sentry-dbid-751711f5-8181-4be7-86b5-4dc6d2594afb");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DS4W77DU.js";
10
- import { i as t, r as n } from "./reset-all-settings-BQC7zljW.js";
11
- import { t as r } from "./jsx-runtime-Dk2--jeN.js";
12
- import "./settings-CK-qRFM8.js";
13
- import { t as i } from "./browser-DlMYMMvJ.js";
14
- import { t as a } from "./add-debug-secret-listener-B8gxDWmn.js";
9
+ import { r as e } from "./rolldown-runtime-CMoq10W0.js";
10
+ import { a as t, r as n } from "./reset-all-settings-Dwf-vd5-.js";
11
+ import { t as r } from "./jsx-runtime-CpnJUEa4.js";
12
+ import "./settings-Dm_PVdCk.js";
13
+ import { t as i } from "./browser-CgI3xpVN.js";
14
+ import { t as a } from "./add-debug-secret-listener-Bk8S6QBl.js";
15
15
  //#region ../debug/src/lib/ui/render-debug-ui.tsx
16
16
  var o = /* @__PURE__ */ e(i(), 1), s = r(), c = !1;
17
17
  function l() {
@@ -26,7 +26,7 @@ function l() {
26
26
  }
27
27
  });
28
28
  let i = async (t) => {
29
- let { DebugUi: n } = await import("./debug-ui-BjmKfkgV.js"), { createRoot: i } = await import("./client-8ygU_jvu.js").then((t) => /* @__PURE__ */ e(t.default, 1)), a = document.createElement("div");
29
+ let { DebugUi: n } = await import("./debug-ui-B0L5AFjM.js"), { createRoot: i } = await import("./client-CMaieNrx.js").then((t) => /* @__PURE__ */ e(t.default, 1)), a = document.createElement("div");
30
30
  document.body.appendChild(a), i(a).render(/* @__PURE__ */ (0, s.jsx)(n, {
31
31
  useDebugButtonState: r.useState,
32
32
  open: t
@@ -1,14 +1,14 @@
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.4.0" };
4
+ e.SENTRY_RELEASE = { id: "3.4.2" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "efd08859-ff4a-4f73-977e-4ad657829cfc", e._sentryDebugIdIdentifier = "sentry-dbid-efd08859-ff4a-4f73-977e-4ad657829cfc");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DS4W77DU.js";
10
- import { t } from "./react-BbZc5Oeq.js";
11
- import { s as n } from "./store-Bm4aFC2V.js";
9
+ import { r as e } from "./rolldown-runtime-CMoq10W0.js";
10
+ import { t } from "./react-5WQEZ4DW.js";
11
+ import { s as n } from "./store-DytJUKc_.js";
12
12
  //#region src/utils/getRenderTargetFromRoot.ts
13
13
  var r = /* @__PURE__ */ e(t(), 1);
14
14
  function i(e) {
@@ -1,5 +1,7 @@
1
1
  import React from "react";
2
2
  import type { AlertProps } from "../ui/Alert";
3
- declare const AlertContainer: (props: AlertProps) => React.JSX.Element;
3
+ declare const AlertContainer: ({ closeLabel, ...props }: Omit<AlertProps, "closeLabel"> & {
4
+ closeLabel?: string;
5
+ }) => React.JSX.Element;
4
6
  export default AlertContainer;
5
7
  //# sourceMappingURL=AlertContainer.d.ts.map
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import o from"../ui/Alert";import{t as e}from"../utils/i18n";const l=r=>t(o,{closeLabel:e("Close alert"),...r});export default l;
1
+ import{jsx as o}from"react/jsx-runtime";import e from"../ui/Alert";import{t as l}from"../utils/i18n";const m=({closeLabel:r,...t})=>o(e,{...t,closeLabel:r??l("Close alert")});export default m;
@@ -1 +1 @@
1
- import{jsx as o,Fragment as b,jsxs as u}from"react/jsx-runtime";import{useRef as y,useEffect as _}from"react";import{useLocalStore as x,observer as p}from"mobx-react-lite";import l from"../../data";import c,{uiState as s}from"../../store";import{RegularBooth as N,SpecialBooth as S}from"../../store/BoothStore";import C from"../../tools/settings";import{t as E}from"../../utils/i18n";import T from"../Schedule";import I from"../SidebarActions";import{BoothOnHold as L}from"./BoothOnHold";import{BoothReserved as j}from"./BoothReserved";import{BoothWithoutExhibitor as k}from"./BoothWithoutExhibitor";import H from"../../utils/useHeatmapOverlay";import A from"../EntityItemContainer";import{LevelBadge as M}from"../";import"./Booth.scss";const U=p(()=>{const d=y(),e=x(()=>({get booth(){return s.selectedBooth},get regular(){return this.booth instanceof N?this.booth:null},get special(){return this.booth instanceof S?this.booth:null},get showReserve(){return!s.kiosk&&this.regular&&(this.regular.price==="0"&&!!this.regular.buyUrl||!!this.regular.reserveUrl)},get showBuy(){return!s.kiosk&&this.regular&&this.regular.buyUrl&&this.regular.price&&this.regular.price!=="0"},get title(){return this.booth.fullName},get reserveTitle(){return l.reserveButtonTerm||E("Reserve")},get descriptionCombined(){return this.booth.description||l.reserveInstructions||""}}));_(()=>{if(e.booth.schedule?.length){const t=new Date,r=[...e.booth.schedule].sort((i,n)=>new Date(i.startDate).getTime()-new Date(n.startDate).getTime());if(r.some(i=>(i.endDate?new Date(i.endDate):new Date(i.startDate))<t)){const i=r.find(n=>(n.endDate?new Date(n.endDate):new Date(n.startDate))>t);if(i&&d.current){const n=d.current.querySelector(`[data-event-id="${i.id}"]`);n&&setTimeout(()=>{const f=d.current.getBoundingClientRect(),R=n.getBoundingClientRect().top-f.top-20;d.current.scrollTop=R},100)}}}},[e.booth.schedule]);function v(t,r){const g=parseInt(r);c.clickExhibitor(c.exhibitorStore.exhibitors.find(i=>i.id===g))}function B(t){c.selectEventItem(t,!0)}function D(){e.booth.exhibitors.length===0&&(e.booth.bookmarkedDirectly=!e.booth.bookmarkedDirectly)}const F=o("div",{className:"booth__bar",children:e.title});let a=null;const h=e.booth.layer?.description,{heatmapBar:w}=H(e.booth),m=e.booth.exhibitors.sort((t,r)=>+!!r.featured-+!!t.featured).map(t=>o(A,{onClick:v,id:t.id.toString(),featured:t.featured,url:null,type:"exhibitor",image:t.logo,title:t.name,bookmarked:t.bookmarked,visited:t.visited,additionalInfo:t.booths.map(r=>({type:"location",locationName:r.name,level:h||r.layer?.name}))},t.id.toString()));if(l.isRebooking)a=o(b,{children:m});else if(e.regular){const t=e.regular;t.onHold?a=o(L,{booth:t,description:"",showBuy:!1,showReserve:!1,isRebooking:!1,level:h}):t.reserved?a=o(j,{}):t.exhibitors.length===0?a=o(k,{booth:t,description:e.descriptionCombined,showBuy:!s.previewMode&&e.showBuy,showReserve:!s.previewMode&&e.showReserve,isRebooking:!1,level:h}):a=o(b,{children:m})}else a=u("div",{className:"booth__content -spec",children:[o(M,{level:h}),o("div",{className:"booth__desc",dangerouslySetInnerHTML:{__html:e.special.description}}),o(b,{children:m})]});return u("div",{className:"booth",children:[u("div",{className:"booth__header",children:[u("div",{className:"booth__header-name",children:[o("div",{className:"booth__header-icon",children:o("i",{className:"icon-booth-solid"})}),o("span",{dir:"auto",children:e.title}),w]}),o("button",{type:"button",onClick:()=>c.searchStore.handleBackAction(),className:"booth__header-close",children:o("i",{className:"icon-close"})})]}),!l.isRebooking&&C.wayfinding&&!s.isGuidedToursActive&&o("div",{className:"exhibitor__directions",style:{paddingLeft:15,paddingRight:15},children:o(I,{showBookmark:!s.disableBookmarked&&!l.hideBookmarks&&!s.kiosk&&e.booth.exhibitors.length===0,showShare:!1,inBookmark:e.booth.exhibitors.length===0?e.booth.bookmarkedDirectly:!1,onClickBookmark:D,onClickDirections:()=>{c.routeStore.clickRoute(null,e.booth)}})}),a,l.isRebooking&&e.regular&&e.regular.exhibitors.length===0&&o(k,{showBuy:!1,description:e.descriptionCombined,showReserve:!1,booth:e.regular,isRebooking:l.isRebooking,level:h}),!!e.booth.schedule?.length&&o(T,{isSessions:!0,showBooths:!0,events:[...e.booth.schedule].sort((t,r)=>new Date(t.startDate).getTime()-new Date(r.startDate).getTime()),onEventClick:B})]})});export default p(()=>!s.menu&&s.selectedBooth?o(U,{}):null);
1
+ import{jsx as o,Fragment as b,jsxs as u}from"react/jsx-runtime";import{useRef as _,useEffect as y}from"react";import{useLocalStore as x,observer as p}from"mobx-react-lite";import l from"../../data";import c,{uiState as i}from"../../store";import{RegularBooth as N,SpecialBooth as S}from"../../store/BoothStore";import C from"../../tools/settings";import{t as E}from"../../utils/i18n";import T from"../Schedule";import I from"../SidebarActions";import{BoothOnHold as L}from"./BoothOnHold";import{BoothReserved as j}from"./BoothReserved";import{BoothWithoutExhibitor as k}from"./BoothWithoutExhibitor";import H from"../../utils/useHeatmapOverlay";import A from"../EntityItemContainer";import{LevelBadge as M}from"../";import"./Booth.scss";const U=p(()=>{const d=_(),e=x(()=>({get booth(){return i.selectedBooth},get regular(){return this.booth instanceof N?this.booth:null},get special(){return this.booth instanceof S?this.booth:null},get showReserve(){return!i.kiosk&&this.regular&&(this.regular.price==="0"&&!!this.regular.buyUrl||!!this.regular.reserveUrl)},get showBuy(){return!i.kiosk&&this.regular&&this.regular.buyUrl&&this.regular.price&&this.regular.price!=="0"},get title(){return this.booth.fullName},get reserveTitle(){return l.reserveButtonTerm||E("Reserve")},get descriptionCombined(){return this.booth.description||l.reserveInstructions||""}}));y(()=>{if(e.booth.schedule?.length){const t=new Date,r=[...e.booth.schedule].sort((n,s)=>new Date(n.startDate).getTime()-new Date(s.startDate).getTime());if(r.some(n=>(n.endDate?new Date(n.endDate):new Date(n.startDate))<t)){const n=r.find(s=>(s.endDate?new Date(s.endDate):new Date(s.startDate))>t);if(n&&d.current){const s=d.current.querySelector(`[data-event-id="${n.id}"]`);s&&setTimeout(()=>{const f=d.current.getBoundingClientRect(),R=s.getBoundingClientRect().top-f.top-20;d.current.scrollTop=R},100)}}}},[e.booth.schedule]);function v(t){const r=parseInt(t);c.clickExhibitor(c.exhibitorStore.exhibitors.find(g=>g.id===r))}function B(t){c.selectEventItem(t,!0)}function D(){e.booth.exhibitors.length===0&&(e.booth.bookmarkedDirectly=!e.booth.bookmarkedDirectly)}const F=o("div",{className:"booth__bar",children:e.title});let a=null;const h=e.booth.layer?.description,{heatmapBar:w}=H(e.booth),m=e.booth.exhibitors.sort((t,r)=>+!!r.featured-+!!t.featured).map(t=>o(A,{onClick:v,id:t.id.toString(),featured:t.featured,kind:"exhibitor",image:t.logo,title:t.name,bookmarked:t.bookmarked,visited:t.visited,additionalInfo:t.booths.map(r=>({type:"location",locationName:r.name,level:h||r.layer?.name}))},t.id.toString()));if(l.isRebooking)a=o(b,{children:m});else if(e.regular){const t=e.regular;t.onHold?a=o(L,{booth:t,description:"",showBuy:!1,showReserve:!1,isRebooking:!1,level:h}):t.reserved?a=o(j,{}):t.exhibitors.length===0?a=o(k,{booth:t,description:e.descriptionCombined,showBuy:!i.previewMode&&e.showBuy,showReserve:!i.previewMode&&e.showReserve,isRebooking:!1,level:h}):a=o(b,{children:m})}else a=u("div",{className:"booth__content -spec",children:[o(M,{level:h}),o("div",{className:"booth__desc",dangerouslySetInnerHTML:{__html:e.special.description}}),o(b,{children:m})]});return u("div",{className:"booth",children:[u("div",{className:"booth__header",children:[u("div",{className:"booth__header-name",children:[o("div",{className:"booth__header-icon",children:o("i",{className:"icon-booth-solid"})}),o("span",{dir:"auto",children:e.title}),w]}),o("button",{type:"button",onClick:()=>c.searchStore.handleBackAction(),className:"booth__header-close",children:o("i",{className:"icon-close"})})]}),!l.isRebooking&&C.wayfinding&&!i.isGuidedToursActive&&o("div",{className:"exhibitor__directions",style:{paddingLeft:15,paddingRight:15},children:o(I,{showBookmark:!i.disableBookmarked&&!l.hideBookmarks&&!i.kiosk&&e.booth.exhibitors.length===0,showShare:!1,inBookmark:e.booth.exhibitors.length===0?e.booth.bookmarkedDirectly:!1,onClickBookmark:D,onClickDirections:()=>{c.routeStore.clickRoute(null,e.booth)}})}),a,l.isRebooking&&e.regular&&e.regular.exhibitors.length===0&&o(k,{showBuy:!1,description:e.descriptionCombined,showReserve:!1,booth:e.regular,isRebooking:l.isRebooking,level:h}),!!e.booth.schedule?.length&&o(T,{isSessions:!0,showBooths:!0,events:[...e.booth.schedule].sort((t,r)=>new Date(t.startDate).getTime()-new Date(r.startDate).getTime()),onEventClick:B})]})});export default p(()=>!i.menu&&i.selectedBooth?o(U,{}):null);
@@ -1,5 +1,28 @@
1
1
  import React from "react";
2
- import type { EntityItemProps } from "./EntityItem";
3
- declare const EntityItemContainer: React.FunctionComponent<Omit<EntityItemProps, "highlight">>;
2
+ import type { EntityItemAdditionalInfo } from "../ui/EntityItem";
3
+ export type EntityItemKind = "booth" | "exhibitor" | "event" | "speaker" | "category";
4
+ export interface EntityItemContainerProps {
5
+ id: string;
6
+ kind: EntityItemKind;
7
+ title: string;
8
+ subtitle?: string;
9
+ image?: string;
10
+ icon?: string;
11
+ itemsCount?: number;
12
+ date?: string;
13
+ time?: string;
14
+ additionalInfo?: EntityItemAdditionalInfo[];
15
+ bookmarked?: boolean;
16
+ featured?: boolean;
17
+ visited?: boolean;
18
+ current?: boolean;
19
+ heatmapColor?: string;
20
+ accentBorderColor?: string;
21
+ hideUserState?: boolean;
22
+ compactDetails?: boolean;
23
+ secondaryText?: string;
24
+ onClick?: (id: string) => void;
25
+ }
26
+ declare const EntityItemContainer: React.FunctionComponent<EntityItemContainerProps>;
4
27
  export default EntityItemContainer;
5
28
  //# sourceMappingURL=EntityItemContainer.d.ts.map
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{observer as o}from"mobx-react-lite";import{uiState as t}from"../store";import m from"./EntityItem";const n=o(i=>{const r=t.list.type==="search"?t.list.text:void 0;return e(m,{...i,highlight:r})});export default n;
1
+ import{jsx as d}from"react/jsx-runtime";import{observer as u}from"mobx-react-lite";import{uiState as l}from"../store";import v from"../ui/EntityItem";import{t as o}from"../utils/i18n";import{isNumericLevel as h}from"../utils/isNumericLevel";const b={booth:{typeColor:"var(--color-booth)"},exhibitor:{typeColor:"var(--color-exhibitor)"},event:{typeColor:"var(--color-event)",hasDatetime:!0},speaker:{typeColor:"var(--color-speaker)",variant:"person"},category:{typeColor:"var(--color-category)",hasTitleBadge:!0,hasSubtitleLabel:!0}},y=e=>e.type==="location"?{...e,showLevelLabel:h(e.level)}:e,f=u(({kind:e,itemsCount:i,date:r,time:a,additionalInfo:s,...n})=>{const t=b[e],p=t.hasDatetime&&(r||a)?{date:r,time:a}:void 0,c=l.list.type==="search"?l.list.text:void 0,m={...n,additionalInfo:s?.map(y),typeColor:t.typeColor,iconClassName:`icon-${e}-solid`,variant:t.variant??"default",titleBadge:t.hasTitleBadge?i:void 0,datetime:p,subtitleLabel:t.hasSubtitleLabel?o("Category"):void 0,highlight:c,featuredLabel:o("Featured"),hallLabel:o("Hall"),levelLabel:o("Level")};return d(v,{...m})});export default f;
@@ -1 +1 @@
1
- import{jsx as c}from"react/jsx-runtime";import{observer as x}from"mobx-react-lite";import{Suspense as v,lazy as C,useEffect as T,useRef as L,useCallback as E,useContext as w}from"react";import e,{uiState as t}from"../store";import R from"../tools/settings";import P from"./EntityListRow";import{OverlayScrollContext as O}from"./Overlay";import"./EntityList.scss";import H from"../ui/Spinner";import{t as I}from"../utils/i18n";const g=()=>import("react-virtuoso").then(r=>({default:r.Virtuoso})).catch(()=>new Promise(r=>setTimeout(()=>r(g()),3e3))),V=C(g),_=["ipia2025"],z=({updatedScrollableRef:r,updateScroll:m})=>{const f=w(O),a=L(null),S=t.getListScrollItemId(t.list.type),b=_.includes(R.EXPO);T(()=>{const n=t.getListScrollTop(t.list.type),l=t.getListScrollItemId(t.list.type);(n>0||l)&&setTimeout(()=>{if(a.current){if(l){const o=t.listItems.findIndex(s=>s?.id?.toString()===l.toString());if(o!==-1){a.current.scrollToIndex({index:o,align:"center",behavior:"auto"});return}}n>0&&a.current.scrollTo({top:n,behavior:"auto"})}},100)},[t.list.type]);const u=t.showRouteInstantly,y=E((n,l)=>{const o=parseInt(l,10);switch(t.setListScrollItemId(t.list?.type,o),a.current?a.current.getState(s=>{const h=s?.scrollTop||0;t.setListScrollTop(t.list?.type,h)}):r.current&&t.setListScrollTop(t.list?.type,r.current.scrollTop||0),n){case"exhibitor":const s=e.exhibitorStore.exhibitors.find(i=>i.id===o);u?e.routeStore.clickRoute(null,e.routeStore.tempToBooth||s.booths[0]):e.clickExhibitor(s);break;case"booth":const h=e.boothStore.booths.find(i=>i.id===o);u?e.routeStore.clickRoute(null,h):e.clickBoothInList2(h);break;case"category":e.clickCategory(e.categoryStore.categories.find(i=>i.id===o));break;case"event":const d=e.eventStore.eventItems.find(i=>i.id===o);if(d){const i=e.boothStore.booths.find(p=>p.id===d.boothId);u&&i?e.routeStore.clickRoute(null,i):e.selectEventItem(d,!0)}break;case"speaker":{const i=e.speakerStore.speakers.find(p=>p.id===o);i&&e.selectSpeaker(i,!0);break}}},[u,r]),k=()=>c("div",{className:"list-empty",children:t.list.type==="search"?I("Oops, nothing found"):I("No items to show")});return f===null||t.setKioskModeEnabled?null:t.listItems.length?c("div",{style:{height:"100%",cursor:"pointer",resize:"both",minHeight:100},children:c(v,{fallback:c(H,{active:!0,isCenter:!0}),children:c(V,{ref:a,className:"list-virtual",style:{minHeight:t.listItems.length?"1px":0},data:t.listItems,itemContent:(n,l)=>{const o=l;if(!o)return null;const s=S?.toString()===o.id?.toString();return c(P,{item:o,index:n,highlighted:s,compactDetails:b,onClick:y},o.id)},itemsRendered:()=>m&&setTimeout(m),totalListHeightChanged:()=>m&&m(),customScrollParent:f,totalCount:t.listItems.length,overscan:20,increaseViewportBy:200,initialItemCount:Math.min(t.listScrollIndex+30,t.listItems.length)})})}):c(k,{})};export default x(z);
1
+ import{jsx as c}from"react/jsx-runtime";import{observer as x}from"mobx-react-lite";import{Suspense as v,lazy as C,useEffect as T,useRef as L,useCallback as E,useContext as w}from"react";import e,{uiState as t}from"../store";import R from"../tools/settings";import P from"./EntityListRow";import{OverlayScrollContext as O}from"./Overlay";import"./EntityList.scss";import H from"../ui/Spinner";import{t as I}from"../utils/i18n";const S=()=>import("react-virtuoso").then(r=>({default:r.Virtuoso})).catch(()=>new Promise(r=>setTimeout(()=>r(S()),3e3))),V=C(S),_=["ipia2025"],z=({updatedScrollableRef:r,updateScroll:m})=>{const f=w(O),a=L(null),b=t.getListScrollItemId(t.list.type),g=_.includes(R.EXPO);T(()=>{const n=t.getListScrollTop(t.list.type),l=t.getListScrollItemId(t.list.type);(n>0||l)&&setTimeout(()=>{if(a.current){if(l){const o=t.listItems.findIndex(s=>s?.id?.toString()===l.toString());if(o!==-1){a.current.scrollToIndex({index:o,align:"center",behavior:"auto"});return}}n>0&&a.current.scrollTo({top:n,behavior:"auto"})}},100)},[t.list.type]);const u=t.showRouteInstantly,y=E((n,l)=>{const o=parseInt(l,10);switch(t.setListScrollItemId(t.list?.type,o),a.current?a.current.getState(s=>{const h=s?.scrollTop||0;t.setListScrollTop(t.list?.type,h)}):r.current&&t.setListScrollTop(t.list?.type,r.current.scrollTop||0),n){case"exhibitor":const s=e.exhibitorStore.exhibitors.find(i=>i.id===o);u?e.routeStore.clickRoute(null,e.routeStore.tempToBooth||s.booths[0]):e.clickExhibitor(s);break;case"booth":const h=e.boothStore.booths.find(i=>i.id===o);u?e.routeStore.clickRoute(null,h):e.clickBoothInList2(h);break;case"category":e.clickCategory(e.categoryStore.categories.find(i=>i.id===o));break;case"event":const p=e.eventStore.eventItems.find(i=>i.id===o);if(p){const i=e.boothStore.booths.find(d=>d.id===p.boothId);u&&i?e.routeStore.clickRoute(null,i):e.selectEventItem(p,!0)}break;case"speaker":{const i=e.speakerStore.speakers.find(d=>d.id===o);i&&e.selectSpeaker(i,!0);break}}},[u,r]),k=()=>c("div",{className:"list-empty",children:t.list.type==="search"?I("Oops, nothing found"):I("No items to show")});return f===null||t.setKioskModeEnabled?null:t.listItems.length?c("div",{style:{height:"100%",cursor:"pointer",resize:"both",minHeight:100},children:c(v,{fallback:c(H,{active:!0,isCenter:!0}),children:c(V,{ref:a,className:"list-virtual",style:{minHeight:t.listItems.length?"1px":0},data:t.listItems,itemContent:(n,l)=>{const o=l;if(!o)return null;const s=b?.toString()===o.id?.toString();return c(P,{item:o,index:n,current:s,compactDetails:g,onClick:y},o.id)},itemsRendered:()=>m&&setTimeout(m),totalListHeightChanged:()=>m&&m(),customScrollParent:f,totalCount:t.listItems.length,overscan:20,increaseViewportBy:200,initialItemCount:Math.min(t.listScrollIndex+30,t.listItems.length)})})}):c(k,{})};export default x(z);
@@ -1,11 +1,12 @@
1
1
  import React from "react";
2
2
  import type { ListItem } from "../store/types";
3
+ import type { EntityItemKind } from "./EntityItemContainer";
3
4
  interface Props {
4
5
  item: ListItem;
5
6
  index: number;
6
- highlighted: boolean;
7
+ current: boolean;
7
8
  compactDetails?: boolean;
8
- onClick: (type: string, id: string) => void;
9
+ onClick: (kind: EntityItemKind, id: string) => void;
9
10
  }
10
11
  declare const _default: React.FunctionComponent<Props>;
11
12
  export default _default;
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{Exhibitor as s}from"../store/ExhibitorStore";import{BoothBase as h}from"../store/BoothStore";import{Category as m}from"../store/CategoryStore";import{SpeakerItem as b}from"../store/SpeakerStore";import{EventItem as y}from"../store/EventStore";import{HeatmapYah as f}from"../store/HeatmapStore";import g from"../utils/useHeatmapData";import I,{boothStore as v,uiState as a}from"../store";import n from"./EntityItemContainer";import S from"./YahRow";import i from"../data";import c from"dateformat";import{defaultRebookingOptions as C}from"./RebookingRadioGroup";import{observer as N}from"mobx-react-lite";import{shortenName as D}from"../utils/shortenName";const x=({item:o,index:k,highlighted:l,compactDetails:u,onClick:d})=>{let e={background:void 0,clicks:void 0};if(a.heatmap&&(o instanceof s||o instanceof h||o instanceof f)&&(e=g(o)),o instanceof s)return r(n,{onClick:d,id:o.id.toString(),featured:o.featured,url:null,type:o instanceof s?"exhibitor":"booth",image:o.logo,title:o.name,bookmarked:o.bookmarked,visited:o.visited,additionalInfo:o.booths.map(t=>({type:"location",locationName:t.name,level:t.layer&&(i.shortLevelName?t.layer.shortName:t.layer.description)||""})),highlighted:l,compactDetails:u,heatmapColor:e.background,heatmapClicks:e.clicks,rebookingColor:i.isRebooking?C[o.rebookingState]?.color.primary:void 0,kioskMode:a.kiosk,foundInDescription:a.foundInDescriptionStruct[o.id]});if("rect"in o)return r(n,{locationTerm:i.boothTerm,onClick:d,id:o.id.toString(),type:"booth",title:o.name,url:null,icon:o.poiIcon,additionalInfo:[{type:"location",locationName:o.name,level:i.shortLevelName?D(o.layer?.description):o.layer?.description}],bookmarked:o.bookmarked,highlighted:l,heatmapColor:e.background,heatmapClicks:e.clicks});if(o instanceof m)return r(n,{onClick:d,id:o.id.toString(),itemsCount:o.exhibitors.length,type:"category",title:o.name,url:null,highlighted:l});if(o instanceof b){const t=[];return o.company&&t.push({type:"speaker",text:o.jobTitle}),r(n,{id:o.id.toString(),type:"speaker",url:`?${o.slug}`,title:o.name,subtitle:o.company,image:o.photoFile,additionalInfo:t,bookmarked:o.bookmarked,onClick:(p,M)=>I.selectSpeaker(o,!0)},o.id)}if(o instanceof y){const t=o.boothId?v.booths.find(p=>p.id===o.boothId):null;return r(n,{id:o.id.toString(),onClick:d,type:"event",title:o.name,url:`?${o.slug}`,date:c(o.startDate,"dd mmm ddd"),time:`${c(o.startDate,"h:MM")} - ${c(o.endDate,"h:MM")}`,additionalInfo:t?[{type:"location",locationName:t.name,level:i.shortLevelName?t.layer?.shortName:t.layer?.description}]:[],bookmarked:o.bookmarked,visited:o.visited,highlighted:l,kioskMode:a.kiosk,foundInDescription:a.foundInDescriptionStruct[o.id]})}if(o instanceof f){const t=`list-row ${k===a.activeListIndex?"active":""}`;return r(S,{yah:o,className:t})}return null};export default N(x);
1
+ import{jsx as e}from"react/jsx-runtime";import{Exhibitor as f}from"../store/ExhibitorStore";import{BoothBase as m}from"../store/BoothStore";import{Category as h}from"../store/CategoryStore";import{SpeakerItem as b}from"../store/SpeakerStore";import{EventItem as g}from"../store/EventStore";import{HeatmapYah as p}from"../store/HeatmapStore";import y from"../utils/useHeatmapData";import v,{boothStore as S,uiState as a}from"../store";import n from"./EntityItemContainer";import I from"./YahRow";import c from"../data";import l from"dateformat";import{defaultRebookingOptions as x}from"./RebookingRadioGroup";import{observer as C}from"mobx-react-lite";const D=({item:o,index:k,current:i,compactDetails:u,onClick:d})=>{let s={background:void 0,clicks:void 0};if(a.heatmap&&(o instanceof f||o instanceof m||o instanceof p)&&(s=y(o)),o instanceof f){const t="exhibitor";return e(n,{onClick:r=>d(t,r),id:o.id.toString(),featured:o.featured,kind:t,image:o.logo,title:o.name,bookmarked:o.bookmarked,visited:o.visited,additionalInfo:o.booths.map(r=>({type:"location",locationName:r.name,level:r.layer&&(c.shortLevelName?r.layer.shortName:r.layer.description)||""})),current:i,compactDetails:u,heatmapColor:s.background,accentBorderColor:c.isRebooking?x[o.rebookingState]?.color.primary:void 0,hideUserState:a.kiosk,secondaryText:a.foundInDescriptionStruct[o.id]})}if("rect"in o)return e(n,{onClick:t=>d("booth",t),id:o.id.toString(),kind:"booth",title:o.name,icon:o.poiIcon,bookmarked:o.bookmarked,current:i,heatmapColor:s.background});if(o instanceof h)return e(n,{onClick:t=>d("category",t),id:o.id.toString(),itemsCount:o.exhibitors.length,kind:"category",title:o.name,current:i});if(o instanceof b){const t=[];return o.jobTitle&&t.push({type:"text",text:o.jobTitle}),e(n,{id:o.id.toString(),kind:"speaker",title:o.name,subtitle:o.company,image:o.photoFile,additionalInfo:t,bookmarked:o.bookmarked,onClick:()=>v.selectSpeaker(o,!0)},o.id)}if(o instanceof g){const t=o.boothId?S.booths.find(r=>r.id===o.boothId):null;return e(n,{id:o.id.toString(),onClick:r=>d("event",r),kind:"event",title:o.name,date:l(o.startDate,"dd mmm ddd"),time:`${l(o.startDate,"h:MM")} - ${l(o.endDate,"h:MM")}`,additionalInfo:t?[{type:"location",locationName:t.name,level:c.shortLevelName?t.layer?.shortName:t.layer?.description}]:[],bookmarked:o.bookmarked,visited:o.visited,current:i,hideUserState:a.kiosk,secondaryText:a.foundInDescriptionStruct[o.id]})}if(o instanceof p){const t=`list-row ${k===a.activeListIndex?"active":""}`;return e(I,{yah:o,className:t})}return null};export default C(D);
@@ -8,7 +8,7 @@ declare class KioskStore {
8
8
  savedKiosk: Kiosk;
9
9
  get hasUnsavedChanges(): boolean;
10
10
  statusMessages: StatusMessage[];
11
- addStatusMessage(message: AlertProps): void;
11
+ addStatusMessage(message: Omit<AlertProps, "closeLabel">): void;
12
12
  clearStatusMessages(): void;
13
13
  statusMessageTimer: number;
14
14
  startCleanupMessages(): void;
@@ -19,7 +19,7 @@ export interface Kiosk extends KioskMapState {
19
19
  iconSizePercent: number;
20
20
  uiScale: number;
21
21
  }
22
- export interface StatusMessage extends AlertProps {
22
+ export interface StatusMessage extends Omit<AlertProps, "closeLabel"> {
23
23
  id: number;
24
24
  created?: number;
25
25
  }
@@ -1 +1 @@
1
- import{jsx as r,jsxs as S}from"react/jsx-runtime";import{useRef as y,useMemo as b}from"react";import{useObserver as T}from"mobx-react-lite";import{observer as p}from"mobx-react-lite";import t,{uiState as m}from"../store";import{ShortcutsToolbar as g}from"./Shortcuts";import{t as u}from"../utils/i18n";import v from"fuse.js";import x from"./EntityItemContainer";import"./Speakers.scss";const j=p(({showFilters:i=!0})=>{const d=y(),l=t.speakerStore.speakers,{filters:{selectedCompanies:{value:a},selectedJobTitles:{value:n}}}=t.speakerFilterStore.state,c=b(()=>{let e=l;a.length>0&&(e=e.filter(s=>a.includes(s.company))),n.length>0&&(e=e.filter(s=>n.includes(s.jobTitle)));const o=t.searchStore.searchText;if(o){const s={keys:["name","company","jobTitle"],threshold:.3,ignoreLocation:!0,includeScore:!0};e=new v(e,s).search(o).map(k=>k.item)}return e},[l,t.searchStore.searchText,a,n,t.speakerFilterStore.state]);return T(()=>S("div",{className:"efp-speakers-content",children:[i&&r(g,{interfaceId:"speakers"}),c.length>0?r("div",{className:"efp-speakers-list",ref:d,children:c.map(e=>{const o=t.speakerStore.getEventsBySpeaker(e.id),s=[];return e.company&&s.push({type:"speaker",text:e.jobTitle}),r(x,{id:e.id.toString(),type:"speaker",url:`?${e.slug}`,title:e.name,subtitle:e.company,image:e.photoFile,itemsCount:o.length,additionalInfo:s,bookmarked:e.bookmarked,onClick:(f,h)=>t.selectSpeaker(e,!0)},e.id)})}):r("div",{className:"list-empty",children:t.speakerFilterStore.activeFiltersCount>0||t.searchStore.searchText?u("No speakers found. Try adjusting your filters."):u("No speakers found")})]}))}),C=p(i=>m.list.type!=="speakers"||m.details?null:r(j,{...i}));export default C;
1
+ import{jsx as r,jsxs as h}from"react/jsx-runtime";import{useRef as k,useMemo as S}from"react";import{useObserver as b}from"mobx-react-lite";import{observer as p}from"mobx-react-lite";import t,{uiState as m}from"../store";import{ShortcutsToolbar as T}from"./Shortcuts";import{t as d}from"../utils/i18n";import x from"fuse.js";import y from"./EntityItemContainer";import"./Speakers.scss";const v=p(({showFilters:i=!0})=>{const f=k(),l=t.speakerStore.speakers,{filters:{selectedCompanies:{value:a},selectedJobTitles:{value:n}}}=t.speakerFilterStore.state,c=S(()=>{let e=l;a.length>0&&(e=e.filter(s=>a.includes(s.company))),n.length>0&&(e=e.filter(s=>n.includes(s.jobTitle)));const o=t.searchStore.searchText;if(o){const s={keys:["name","company","jobTitle"],threshold:.3,ignoreLocation:!0,includeScore:!0};e=new x(e,s).search(o).map(u=>u.item)}return e},[l,t.searchStore.searchText,a,n,t.speakerFilterStore.state]);return b(()=>h("div",{className:"efp-speakers-content",children:[i&&r(T,{interfaceId:"speakers"}),c.length>0?r("div",{className:"efp-speakers-list",ref:f,children:c.map(e=>{const o=t.speakerStore.getEventsBySpeaker(e.id),s=[];return e.jobTitle&&s.push({type:"text",text:e.jobTitle}),r(y,{id:e.id.toString(),kind:"speaker",title:e.name,subtitle:e.company,image:e.photoFile,itemsCount:o.length,additionalInfo:s,bookmarked:e.bookmarked,onClick:()=>t.selectSpeaker(e,!0)},e.id)})}):r("div",{className:"list-empty",children:t.speakerFilterStore.activeFiltersCount>0||t.searchStore.searchText?d("No speakers found. Try adjusting your filters."):d("No speakers found")})]}))}),g=p(i=>m.list.type!=="speakers"||m.details?null:r(v,{...i}));export default g;
@@ -22,6 +22,7 @@ export { default as CookieConsent } from "./CookieConsent";
22
22
  export { default as Controls } from "./Controls";
23
23
  export { default as Demo } from "./Demo";
24
24
  export { default as EntityItemContainer } from "./EntityItemContainer";
25
+ export type { EntityItemKind } from "./EntityItemContainer";
25
26
  export { default as EntityList } from "./EntityList";
26
27
  export { default as EntityListRow } from "./EntityListRow";
27
28
  export { default as ErrorBoundary } from "./ErrorBoundary";
@@ -84,7 +85,7 @@ export type { ButtonProps, ButtonVariant, ButtonSize } from "../ui/Button";
84
85
  export type { BadgeProps, BadgeVariant } from "../ui/Badge";
85
86
  export type { CheckboxProps } from "../ui/Checkbox";
86
87
  export type { CookieConsentProps } from "./CookieConsent";
87
- export type { EntityItemProps, EntityItemType, EntityItemAdditionalInfo } from "./EntityItem";
88
+ export type { EntityItemProps, EntityItemAdditionalInfo } from "../ui/EntityItem";
88
89
  export type { HeatmapLegendProps } from "../ui/HeatmapLegend";
89
90
  export type { LevelBadgeProps } from "../ui/LevelBadge";
90
91
  export type { MapControlsProps, MapControlLayersItem } from "./MapControls";
@@ -1 +1 @@
1
- import{__esDecorate as i,__runInitializers as l}from"tslib";import{action as d,computed as r,observable as o}from"mobx";import{fpGeo as y}from"../data/fpGeo";import n from"../data";const I=import.meta.env?.VITE_EXPOFP_USE_MAPLIBRE_MAP==="true",z=import.meta.env?.VITE_EXPOFP_DISABLE_3D_TOGGLE!=="false";function A(){return typeof window>"u"||window.navigator.onLine}let B=(()=>{let a=[],p,m=[],c=[],h,f=[],b=[],u,M=[],_=[],w,v,g,O,S,E,V,k;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;p=[o],h=[o],u=[o],w=[d],v=[d],g=[d],O=[r({keepAlive:!0})],S=[r({keepAlive:!0})],E=[r({keepAlive:!0})],V=[r({keepAlive:!0})],k=[r({keepAlive:!0})],i(this,null,w,{kind:"method",name:"setOnline",static:!1,private:!1,access:{has:e=>"setOnline"in e,get:e=>e.setOnline},metadata:t},null,a),i(this,null,v,{kind:"method",name:"activateMaplibre",static:!1,private:!1,access:{has:e=>"activateMaplibre"in e,get:e=>e.activateMaplibre},metadata:t},null,a),i(this,null,g,{kind:"method",name:"deactivateMaplibre",static:!1,private:!1,access:{has:e=>"deactivateMaplibre"in e,get:e=>e.deactivateMaplibre},metadata:t},null,a),i(this,null,O,{kind:"getter",name:"hideModeSwitchButton",static:!1,private:!1,access:{has:e=>"hideModeSwitchButton"in e,get:e=>e.hideModeSwitchButton},metadata:t},null,a),i(this,null,S,{kind:"getter",name:"maplibreEnabled",static:!1,private:!1,access:{has:e=>"maplibreEnabled"in e,get:e=>e.maplibreEnabled},metadata:t},null,a),i(this,null,E,{kind:"getter",name:"useMaplibreMap",static:!1,private:!1,access:{has:e=>"useMaplibreMap"in e,get:e=>e.useMaplibreMap},metadata:t},null,a),i(this,null,V,{kind:"getter",name:"showMaplibre",static:!1,private:!1,access:{has:e=>"showMaplibre"in e,get:e=>e.showMaplibre},metadata:t},null,a),i(this,null,k,{kind:"getter",name:"isMap3d",static:!1,private:!1,access:{has:e=>"isMap3d"in e,get:e=>e.isMap3d},metadata:t},null,a),i(null,null,p,{kind:"field",name:"mapViewMode",static:!1,private:!1,access:{has:e=>"mapViewMode"in e,get:e=>e.mapViewMode,set:(e,s)=>{e.mapViewMode=s}},metadata:t},m,c),i(null,null,h,{kind:"field",name:"maplibreSelected",static:!1,private:!1,access:{has:e=>"maplibreSelected"in e,get:e=>e.maplibreSelected,set:(e,s)=>{e.maplibreSelected=s}},metadata:t},f,b),i(null,null,u,{kind:"field",name:"isOnline",static:!1,private:!1,access:{has:e=>"isOnline"in e,get:e=>e.isOnline,set:(e,s)=>{e.isOnline=s}},metadata:t},M,_),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=l(this,a);mapViewMode=l(this,m,"floorplan");maplibreSelected=(l(this,c),l(this,f,!1));isOnline=(l(this,b),l(this,M,A()));handleOnline=(l(this,_),()=>this.setOnline(!0));handleOffline=()=>this.setOnline(!1);constructor(t){this.rootStore=t,this.mapViewMode=this.getInitialViewMode(),this.maplibreSelected=this.mapViewMode!=="floorplan",typeof window<"u"&&(window.addEventListener("online",this.handleOnline),window.addEventListener("offline",this.handleOffline))}dispose(){typeof window>"u"||(window.removeEventListener("online",this.handleOnline),window.removeEventListener("offline",this.handleOffline))}setOnline(t){this.isOnline=t}activateMaplibre(){this.maplibreEnabled&&(this.mapViewMode=n.allow3dView&&this.mapViewMode!=="map3d"?"map3d":"map2d",this.maplibreSelected=!0)}deactivateMaplibre(){this.mapViewMode="floorplan",this.maplibreSelected=!1}get hideModeSwitchButton(){return!this.maplibreEnabled||!n.allow3dView||z||n.hideModeSwitchButton}get maplibreEnabled(){const t=this.rootStore.fp?.maplibre??window.__efpMaplibre,e=!!t?.offline&&(!!t.style||!!t.styleUrl);return this.useMaplibreMap&&!!y?.properties?.config&&!this.rootStore.uiState.kiosk&&(this.isOnline||e)}get useMaplibreMap(){const t=n.flags?.enableExperimentalMaplibre;return typeof t=="boolean"?t:I}get showMaplibre(){return this.maplibreEnabled&&(this.mapViewMode==="map2d"||this.mapViewMode==="map3d")}get isMap3d(){return this.maplibreEnabled&&this.mapViewMode==="map3d"}getInitialViewMode(){return this.maplibreEnabled?n.allow3dView&&!n.hide3dMapDefault?"map3d":"map2d":"floorplan"}}})();export default B;
1
+ import{__esDecorate as i,__runInitializers as l}from"tslib";import{action as o,computed as r,observable as d}from"mobx";import{fpGeo as I}from"../data/fpGeo";import n from"../data";import{registerEnumSetting as z}from"@expofp/debug";const A=import.meta.env?.VITE_EXPOFP_USE_MAPLIBRE_MAP==="true",B=import.meta.env?.VITE_EXPOFP_DISABLE_3D_TOGGLE!=="false";function L(){return typeof window>"u"||window.navigator.onLine}let x=(()=>{let a=[],p,m=[],c=[],f,h=[],u=[],b,M=[],_=[],w,g,v,O,S,E,V,k;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;p=[d],f=[d],b=[d],w=[o],g=[o],v=[o],O=[r({keepAlive:!0})],S=[r({keepAlive:!0})],E=[r({keepAlive:!0})],V=[r({keepAlive:!0})],k=[r({keepAlive:!0})],i(this,null,w,{kind:"method",name:"setOnline",static:!1,private:!1,access:{has:e=>"setOnline"in e,get:e=>e.setOnline},metadata:t},null,a),i(this,null,g,{kind:"method",name:"activateMaplibre",static:!1,private:!1,access:{has:e=>"activateMaplibre"in e,get:e=>e.activateMaplibre},metadata:t},null,a),i(this,null,v,{kind:"method",name:"deactivateMaplibre",static:!1,private:!1,access:{has:e=>"deactivateMaplibre"in e,get:e=>e.deactivateMaplibre},metadata:t},null,a),i(this,null,O,{kind:"getter",name:"hideModeSwitchButton",static:!1,private:!1,access:{has:e=>"hideModeSwitchButton"in e,get:e=>e.hideModeSwitchButton},metadata:t},null,a),i(this,null,S,{kind:"getter",name:"maplibreEnabled",static:!1,private:!1,access:{has:e=>"maplibreEnabled"in e,get:e=>e.maplibreEnabled},metadata:t},null,a),i(this,null,E,{kind:"getter",name:"useMaplibreMap",static:!1,private:!1,access:{has:e=>"useMaplibreMap"in e,get:e=>e.useMaplibreMap},metadata:t},null,a),i(this,null,V,{kind:"getter",name:"showMaplibre",static:!1,private:!1,access:{has:e=>"showMaplibre"in e,get:e=>e.showMaplibre},metadata:t},null,a),i(this,null,k,{kind:"getter",name:"isMap3d",static:!1,private:!1,access:{has:e=>"isMap3d"in e,get:e=>e.isMap3d},metadata:t},null,a),i(null,null,p,{kind:"field",name:"mapViewMode",static:!1,private:!1,access:{has:e=>"mapViewMode"in e,get:e=>e.mapViewMode,set:(e,s)=>{e.mapViewMode=s}},metadata:t},m,c),i(null,null,f,{kind:"field",name:"maplibreSelected",static:!1,private:!1,access:{has:e=>"maplibreSelected"in e,get:e=>e.maplibreSelected,set:(e,s)=>{e.maplibreSelected=s}},metadata:t},h,u),i(null,null,b,{kind:"field",name:"isOnline",static:!1,private:!1,access:{has:e=>"isOnline"in e,get:e=>e.isOnline,set:(e,s)=>{e.isOnline=s}},metadata:t},M,_),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=l(this,a);mapViewMode=l(this,m,"floorplan");maplibreSelected=(l(this,c),l(this,h,!1));isOnline=(l(this,u),l(this,M,L()));handleOnline=(l(this,_),()=>this.setOnline(!0));handleOffline=()=>this.setOnline(!1);constructor(t){this.rootStore=t,this.mapViewMode=this.getInitialViewMode(),this.maplibreSelected=this.mapViewMode!=="floorplan",typeof window<"u"&&(window.addEventListener("online",this.handleOnline),window.addEventListener("offline",this.handleOffline))}dispose(){typeof window>"u"||(window.removeEventListener("online",this.handleOnline),window.removeEventListener("offline",this.handleOffline))}setOnline(t){this.isOnline=t}activateMaplibre(){this.maplibreEnabled&&(this.mapViewMode=n.allow3dView&&this.mapViewMode!=="map3d"?"map3d":"map2d",this.maplibreSelected=!0)}deactivateMaplibre(){this.mapViewMode="floorplan",this.maplibreSelected=!1}get hideModeSwitchButton(){return!this.maplibreEnabled||!n.allow3dView||B||n.hideModeSwitchButton}get maplibreEnabled(){const t=this.rootStore.fp?.maplibre??window.__efpMaplibre,e=!!t?.offline&&(!!t.style||!!t.styleUrl);return this.useMaplibreMap&&!!I?.properties?.config&&!this.rootStore.uiState.kiosk&&(this.isOnline||e)}get useMaplibreMap(){if(y.get()==="on")return!0;if(y.get()==="off")return!1;const t=n.flags?.enableExperimentalMaplibre;return typeof t=="boolean"?t:A}get showMaplibre(){return this.maplibreEnabled&&(this.mapViewMode==="map2d"||this.mapViewMode==="map3d")}get isMap3d(){return this.maplibreEnabled&&this.mapViewMode==="map3d"}getInitialViewMode(){return this.maplibreEnabled?n.allow3dView&&!n.hide3dMapDefault?"map3d":"map2d":"floorplan"}}})();export default x;const y=z({key:"efp:maplibre",values:["default","on","off"],default:"default"});
@@ -13,7 +13,7 @@ export interface AlertProps {
13
13
  showIcon?: boolean;
14
14
  closable?: boolean;
15
15
  title?: string;
16
- closeLabel?: string;
16
+ closeLabel: string;
17
17
  onClose?: () => void;
18
18
  }
19
19
  declare const Alert: ({ children, position, variant, inline, showIcon, size, closable, title, closeLabel, onClose, }: AlertProps) => React.JSX.Element;
@@ -1 +1 @@
1
- import{jsx as r,jsxs as t}from"react/jsx-runtime";import i from"classnames";import"./Alert.scss";const u=({children:c,position:s,variant:e="info",inline:n=!1,showIcon:o=!0,size:d="md",closable:f=!1,title:l,closeLabel:a="Close",onClose:p})=>{const m=()=>{switch(e){case"error":return"icon-close-solid";case"success":return"icon-checkmark-solid";case"warning":return"icon-warning-solid";default:return"icon-info-solid"}};return t("div",{className:i("efp-alert",`efp-alert--${e} efp-alert--${d}`,{"efp-alert--inline":n,[`efp-alert--${s}`]:s}),role:e==="error"||e==="warning"?"alert":"status","aria-live":e==="error"||e==="warning"?"assertive":"polite",children:[o&&r("div",{className:"efp-alert__icon",children:r("i",{className:i(m()),"aria-hidden":"true"})}),t("div",{className:"efp-alert__content",children:[l&&r("div",{className:"efp-alert__title",children:l}),c]}),f&&r("button",{type:"button",className:"efp-alert__close",onClick:p,"aria-label":a,title:a})]})};export default u;
1
+ import{jsx as r,jsxs as t}from"react/jsx-runtime";import i from"classnames";import"./Alert.scss";const u=({children:c,position:s,variant:e="info",inline:n=!1,showIcon:o=!0,size:d="md",closable:f=!1,title:l,closeLabel:a,onClose:p})=>{const m=()=>{switch(e){case"error":return"icon-close-solid";case"success":return"icon-checkmark-solid";case"warning":return"icon-warning-solid";default:return"icon-info-solid"}};return t("div",{className:i("efp-alert",`efp-alert--${e} efp-alert--${d}`,{"efp-alert--inline":n,[`efp-alert--${s}`]:s}),role:e==="error"||e==="warning"?"alert":"status","aria-live":e==="error"||e==="warning"?"assertive":"polite",children:[o&&r("div",{className:"efp-alert__icon",children:r("i",{className:i(m()),"aria-hidden":"true"})}),t("div",{className:"efp-alert__content",children:[l&&r("div",{className:"efp-alert__title",children:l}),c]}),f&&r("button",{type:"button",className:"efp-alert__close",onClick:p,"aria-label":a,title:a})]})};export default u;
@@ -0,0 +1,46 @@
1
+ import React from "react";
2
+ import "./EntityItem.scss";
3
+ export type EntityItemAdditionalInfo = {
4
+ type: "location";
5
+ locationName?: string;
6
+ hall?: string;
7
+ level?: string;
8
+ showLevelLabel?: boolean;
9
+ } | {
10
+ type: "text";
11
+ text: string;
12
+ };
13
+ export interface EntityItemProps {
14
+ id: string;
15
+ title: string;
16
+ subtitle?: string;
17
+ image?: string;
18
+ icon?: string;
19
+ typeColor?: string;
20
+ iconClassName?: string;
21
+ variant?: "default" | "person";
22
+ titleBadge?: string | number;
23
+ datetime?: {
24
+ date?: string;
25
+ time?: string;
26
+ };
27
+ subtitleLabel?: string;
28
+ additionalInfo?: EntityItemAdditionalInfo[];
29
+ bookmarked?: boolean;
30
+ featured?: boolean;
31
+ visited?: boolean;
32
+ current?: boolean;
33
+ heatmapColor?: string;
34
+ accentBorderColor?: string;
35
+ hideUserState?: boolean;
36
+ compactDetails?: boolean;
37
+ secondaryText?: string;
38
+ highlight?: string;
39
+ featuredLabel: string;
40
+ hallLabel: string;
41
+ levelLabel: string;
42
+ onClick?: (id: string) => void;
43
+ }
44
+ declare const EntityItem: ({ id, title, subtitle, image, icon, typeColor, iconClassName, variant, titleBadge, datetime, subtitleLabel, additionalInfo, bookmarked, featured, visited, current, heatmapColor, accentBorderColor, hideUserState, compactDetails, secondaryText, highlight, featuredLabel, hallLabel, levelLabel, onClick, }: EntityItemProps) => React.JSX.Element;
45
+ export default EntityItem;
46
+ //# sourceMappingURL=EntityItem.d.ts.map
@@ -0,0 +1 @@
1
+ import{jsx as e,Fragment as w,jsxs as t}from"react/jsx-runtime";import l from"classnames";import p from"../HighlightText";import"./EntityItem.scss";const q=({id:_,title:s,subtitle:n,image:c,icon:y,typeColor:f,iconClassName:v,variant:D="default",titleBadge:o,datetime:a,subtitleLabel:d,additionalInfo:N=[],bookmarked:A=!1,featured:u=!1,visited:x,current:g=!1,heatmapColor:m,accentBorderColor:r,hideUserState:E=!1,compactDetails:F,secondaryText:k,highlight:h,featuredLabel:H,hallLabel:I,levelLabel:K,onClick:b})=>{const j=!!(a?.date||a?.time),R=j||!!d||!!n;return e("div",{role:"button",className:l("efp-entity-item",{"is-featured":u,"is-visited":x,"is-current":g,"has-heatmap":!!m,"has-accent":!!r,"is-person":D==="person"}),"aria-label":s,tabIndex:0,"aria-current":g?"true":void 0,onClick:()=>b?.(_),onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),b?.(_))},style:{...f?{"--item-type-color":f}:{},...m&&{"--heatmap-color":m},...r&&{"--accent-border-color":r}},children:t("div",{className:"efp-entity-item__body",children:[t("div",{className:"efp-entity-item__left",children:[e("div",{className:"efp-entity-item__icon",children:y?e("img",{src:y,alt:s}):v?e("i",{className:v,"aria-hidden":"true"}):null}),!E&&t(w,{children:[x&&e("div",{className:"efp-entity-item__visited",children:e("i",{className:"icon-checkmark"})}),A&&e("i",{className:l("efp-entity-item__bookmarked","icon-bookmark-solid")})]})]}),t("div",{className:"efp-entity-item__right",children:[t("div",{className:l("efp-entity-item__content",{"with-image":c}),children:[t("div",{className:"efp-entity-item__header",children:[t("div",{className:"efp-entity-item__title",children:[e(p,{text:s,highlight:h}),k&&e("div",{className:"efp-entity-item__description",children:e(p,{text:k,highlight:h})}),o!==void 0&&e("span",{children:o})]}),u&&e("div",{className:"efp-entity-item__featured",children:H})]}),R&&t("div",{className:"efp-entity-item__subtitle",children:[j&&t("div",{className:"efp-entity-item__datetime",children:[a?.date&&e("strong",{children:a.date}),a?.time&&e("span",{children:a.time})]}),d&&e("span",{children:d}),n&&e("div",{children:n})]}),!!N.length&&e("ul",{className:l("efp-entity-item__details",{"compact-details":F}),children:N.map((i,S)=>t("li",{className:"efp-entity-item__details-item",children:[i.type==="location"&&t(w,{children:[i.locationName&&e("div",{className:"efp-entity-item__details-item-booth",children:e(p,{text:i.locationName,highlight:h})}),i.hall&&t("div",{children:[I,"\xA0",e("span",{children:i.hall})]}),i.level&&t("div",{children:[i.showLevelLabel&&t("span",{children:[K,"\xA0"]}),e("span",{children:i.level})]})]}),i.type==="text"&&e("span",{children:i.text})]},S))})]}),c&&e("div",{className:"efp-entity-item__image",children:e("img",{src:c,alt:s})})]})]})})};export default q;
@@ -0,0 +1,3 @@
1
+ export type { EntityItemAdditionalInfo, EntityItemProps } from "./EntityItem";
2
+ export { default } from "./EntityItem";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ export{default}from"./EntityItem";
@@ -0,0 +1,2 @@
1
+ export declare const isNumericLevel: (level: string | undefined | null) => boolean;
2
+ //# sourceMappingURL=isNumericLevel.d.ts.map
@@ -0,0 +1 @@
1
+ export const isNumericLevel=t=>!!t&&/^\d+$/.test(t);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/floorplan",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/expofp/efp-app.git",
@@ -73,8 +73,8 @@
73
73
  "tslib": "^2.3.0",
74
74
  "uuid": "^9.0.1",
75
75
  "zod": "4.3.5",
76
- "@expofp/debug": "3.4.0",
77
- "@expofp/resolve": "3.4.0"
76
+ "@expofp/debug": "3.4.2",
77
+ "@expofp/resolve": "3.4.2"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@babel/plugin-proposal-decorators": "^7.29.7",
@@ -83,6 +83,7 @@
83
83
  "@storybook/addon-vitest": "10.4.2",
84
84
  "@storybook/react": "10.4.2",
85
85
  "@storybook/react-vite": "10.4.2",
86
+ "@types/color": "^3.0.7",
86
87
  "@types/d3": "^7.1.0",
87
88
  "@types/lz-string": "1.3.32",
88
89
  "@vitejs/plugin-react": "^6.0.2",
@@ -1,26 +0,0 @@
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.4.0" };
5
- var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "27dd0d29-64f3-4103-bd29-e974abc24146", e._sentryDebugIdIdentifier = "sentry-dbid-27dd0d29-64f3-4103-bd29-e974abc24146");
7
- } catch {}
8
- })();
9
- import "./rolldown-runtime-DS4W77DU.js";
10
- import { t as e } from "./react-BbZc5Oeq.js";
11
- import { t } from "./jsx-runtime-Dk2--jeN.js";
12
- import "./i18n-C5BBGKZk.js";
13
- import { T as n, in as r, o as i, w as a } from "./store-Bm4aFC2V.js";
14
- import { n as o } from "./mobx-BfCD0EQ-.js";
15
- import { t as s } from "./KioskStore-DiTPaFb2.js";
16
- import { t as c } from "./TouchHand-BdZWU_I1.js";
17
- e();
18
- var l = t(), u = r(() => (o(() => {
19
- if (localStorage.getItem("kiosk") === "0") return;
20
- let e = s.restoreData();
21
- if (e) return a(e, !0), n(e), i.setResetCameraFn(() => s.resetCamera()), () => {
22
- i.uiState.setKioskData(null), i.uiState.resetMapSettings(), s.resetCamera();
23
- };
24
- }), i.uiState.kiosk && i.uiState.inIdle ? /* @__PURE__ */ (0, l.jsx)(c, {}) : null));
25
- //#endregion
26
- export { u as default };
@@ -1,26 +0,0 @@
1
- //#region ../debug/src/lib/utils/add-debug-secret-listener.ts
2
- (function() {
3
- try {
4
- var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.4.0" };
6
- var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "8a9a2949-e794-4c7d-933b-6fb4fd55145b", e._sentryDebugIdIdentifier = "sentry-dbid-8a9a2949-e794-4c7d-933b-6fb4fd55145b");
8
- } catch {}
9
- })();
10
- var e = "dbg123", t = [], n = !1, r = null;
11
- function i(i) {
12
- if (t.push(i), !n) {
13
- n = !0;
14
- let i = "";
15
- function a(n) {
16
- n.ctrlKey || n.metaKey || n.altKey || n.key.length === 1 && (i += n.key.toLowerCase(), i = i.slice(-6), i === e && (i = "", t.forEach((e) => e())));
17
- }
18
- r = a, document.addEventListener("keydown", a);
19
- }
20
- return () => {
21
- let e = t.indexOf(i);
22
- e !== -1 && t.splice(e, 1), t.length === 0 && r && (document.removeEventListener("keydown", r), r = null, n = !1);
23
- };
24
- }
25
- //#endregion
26
- export { i as t };
@@ -1,44 +0,0 @@
1
- import React from "react";
2
- import "./EntityItem.scss";
3
- export type EntityItemAdditionalInfo = {
4
- type: "location";
5
- locationName: string;
6
- hall?: string;
7
- level?: string;
8
- } | {
9
- type: "event";
10
- text: string;
11
- } | {
12
- type: "speaker";
13
- text: string;
14
- };
15
- export type EntityItemType = "booth" | "exhibitor" | "event" | "speaker" | "category" | "cafe" | "restaurant" | "lounge" | "stage" | "other";
16
- export interface EntityItemProps {
17
- id: string;
18
- type: EntityItemType;
19
- url: string;
20
- icon?: string;
21
- title: string;
22
- subtitle?: string;
23
- date?: string;
24
- time?: string;
25
- itemsCount?: number;
26
- image?: string;
27
- additionalInfo?: EntityItemAdditionalInfo[];
28
- bookmarked?: boolean;
29
- featured?: boolean;
30
- locationTerm?: string;
31
- visited?: boolean;
32
- onClick?: (type: EntityItemType, id: string) => void;
33
- highlighted?: boolean;
34
- heatmapColor?: string;
35
- heatmapClicks?: number;
36
- rebookingColor?: string;
37
- kioskMode?: boolean;
38
- compactDetails?: boolean;
39
- foundInDescription?: string;
40
- highlight?: string;
41
- }
42
- declare const EntityItem: React.FC<EntityItemProps>;
43
- export default EntityItem;
44
- //# sourceMappingURL=EntityItem.d.ts.map
@@ -1 +0,0 @@
1
- import{jsx as e,Fragment as T,jsxs as a}from"react/jsx-runtime";import r from"classnames";import v from"../ui/HighlightText";import"./EntityItem.scss";import{t as c}from"../utils/i18n";const H=["booth","exhibitor","event","speaker","category"],L=l=>/^\d+$/.test(l),S=({id:l,type:i,url:A,title:s,icon:f,subtitle:n,date:d,time:m,itemsCount:y,image:h,additionalInfo:N=[],bookmarked:j=!1,featured:g=!1,locationTerm:I="Booth",visited:x,onClick:o,highlighted:u=!1,heatmapColor:_,heatmapClicks:O,rebookingColor:k,kioskMode:E=!1,compactDetails:$,foundInDescription:b,highlight:p})=>{const w=H.includes(i)?i:"other";return e("div",{role:"button",className:r("efp-entity-item",{"is-featured":g,"is-visited":x,"is-highlighted":u,"has-heatmap":!!_,"is-speaker":i==="speaker"}),"aria-label":s,tabIndex:0,"aria-pressed":u||void 0,onClick:()=>o&&o(i,l),onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),o?.(i,l))},style:{"--item-type-color":`var(--color-${w})`,..._&&{"--heatmap-color":_},...k?{borderLeft:`5px solid ${k}`}:{}},children:a("div",{className:"efp-entity-item__body",children:[a("div",{className:"efp-entity-item__left",children:[e("div",{className:"efp-entity-item__icon",children:f?e("img",{src:f,alt:s}):e("i",{className:`icon-${i}-solid`,"aria-hidden":"true"})}),!E&&a(T,{children:[x&&e("div",{className:"efp-entity-item__visited",children:e("i",{className:"icon-checkmark"})}),j&&e("i",{className:r("efp-entity-item__bookmarked","icon-bookmark-solid")})]})]}),a("div",{className:"efp-entity-item__right",children:[a("div",{className:r("efp-entity-item__content",{"with-image":h}),children:[a("div",{className:"efp-entity-item__header",children:[a("div",{className:"efp-entity-item__title",children:[e(v,{text:s,highlight:p}),b&&e("div",{className:"efp-entity-item__description",children:e(v,{text:b,highlight:p})}),i==="category"&&e("span",{children:y!==void 0&&y})]}),g&&e("div",{className:"efp-entity-item__featured",children:c("Featured")})]}),(i==="event"||i==="category"||n)&&a("div",{className:"efp-entity-item__subtitle",children:[i==="event"&&(d||m)&&a("div",{className:"efp-entity-item__datetime",children:[d&&e("strong",{children:d}),m&&e("span",{children:m})]}),i==="category"&&e("span",{children:c("Category")}),n&&e("div",{children:n})]}),!!N.length&&i!=="booth"&&e("ul",{className:r("efp-entity-item__details",{"compact-details":$}),children:N.map((t,F)=>a("li",{className:"efp-entity-item__details-item",children:[t.type==="location"&&a(T,{children:[i!=="category"&&i!=="booth"&&e("div",{className:"efp-entity-item__details-item-booth",children:e(v,{text:t.locationName,highlight:p})}),t.hall&&a("div",{children:[c("Hall"),"\xA0",e("span",{children:t.hall})]}),t.level&&a("div",{children:[L(t.level)&&a("span",{children:[c("Level"),"\xA0"]}),e("span",{children:t.level})]})]}),(t.type==="event"||t.type==="speaker")&&e("span",{children:t.text})]},F))})]}),h&&e("div",{className:"efp-entity-item__image",children:e("img",{src:h,alt:s})})]})]})})};export default S;