@expofp/floorplan 3.7.4 → 3.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-aO_HokSj.js → Button-CskZ-1SQ.js} +6 -6
- package/dist/browser/{CookieConsent-BU0G4gg0.js → CookieConsent-CwdbXtRd.js} +7 -7
- package/dist/browser/{Debug-KQpdRJNF.js → Debug-HvNAI4I2.js} +7 -7
- package/dist/browser/{Demo-MgosITXW.js → Demo-BunvPdi4.js} +9 -9
- package/dist/browser/{Free-Cjw8czsd.js → Free-CU2ylG4D.js} +9 -9
- package/dist/browser/{Gallery-B44SQVmW.js → Gallery-Bk5ypZhw.js} +9 -9
- package/dist/browser/{GpsLoader-CsquDv0q.js → GpsLoader-CmI8V13E.js} +20 -20
- package/dist/browser/{KioskStore-CmfnbNW2.js → KioskStore-BHYMkA7U.js} +3 -3
- package/dist/browser/{MaplibreAdapter-D1SHFdBf.js → MaplibreAdapter-CqTZjy9x.js} +70 -70
- package/dist/browser/{Modal-ByxKticO.js → Modal-CiRNqtwq.js} +9 -9
- package/dist/browser/{PermissionNotice-uV0eU__u.js → PermissionNotice-COLVVpan.js} +6 -6
- package/dist/browser/{SetKioskMode-Bo-NIDqb.js → SetKioskMode-pMI6YZEC.js} +8 -8
- package/dist/browser/{ShowKiosk-YEhx2mBF.js → ShowKiosk-BpJjfmrQ.js} +11 -11
- package/dist/browser/{TouchHand-DP0lpX80.js → TouchHand-DI-Aj4wy.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-D7jBA4RW.js → ViewerMenuPanel-CKCSghSL.js} +8 -8
- package/dist/browser/{add-debug-secret-listener-BEnYBbzM.js → add-debug-secret-listener-2dlwQmt_.js} +1 -1
- package/dist/browser/{boolean-editor-DQhkQ0fL.js → boolean-editor-EQezUrv2.js} +9 -9
- package/dist/browser/{bootIntercom-CJo2kE-M.js → bootIntercom-BJhS53yv.js} +2 -2
- package/dist/browser/{browser-DYIvO46m.js → browser-HS8wyHXB.js} +2 -2
- package/dist/browser/bundle.json +57 -57
- package/dist/browser/{classnames-C5yzF4HX.js → classnames-C3l9dcGG.js} +2 -2
- package/dist/browser/{client-DfLygbSM.js → client-NCz188Ft.js} +4 -4
- package/dist/browser/{components-BIXJFvok.js → components-oKoVpjWk.js} +1658 -1658
- package/dist/browser/{createWayfinding-C_0oMFs1.js → createWayfinding-CeS9iM1W.js} +187 -187
- package/dist/browser/{debug-overlay-46IP0vsS.js → debug-overlay-Cqc3ctkW.js} +10 -10
- package/dist/browser/{debug-ui-feLw_onf.js → debug-ui-C4osX8i_.js} +6 -6
- package/dist/browser/{dist-BHUDHZP4.js → dist-8gIQXhyw.js} +3 -3
- package/dist/browser/{dist-ExsqDvEL.js → dist-DGSF5sPk.js} +5 -5
- package/dist/browser/{dist-im0AIvbY.js → dist-mbonvrAc.js} +6 -6
- package/dist/browser/{efp-debug-init-DGPhG_bU.js → efp-debug-init-DUWrYXNd.js} +2 -2
- package/dist/browser/{enum-editor-C4ySP3nc.js → enum-editor-CRSq9S7c.js} +11 -11
- package/dist/browser/{event-not-found-DG6AnCnV.js → event-not-found-BLRdJMTD.js} +1 -1
- package/dist/browser/{exports-DmpoD0fr.js → exports-COPK-0l9.js} +36 -36
- package/dist/browser/{favicon-Br5ml5iu.js → favicon-BQbHsxX-.js} +1 -1
- package/dist/browser/{fetch-retry.umd-bkAOBUt_.js → fetch-retry.umd-BLtDS0Sx.js} +2 -2
- package/dist/browser/{flex-Dwpw7MGM.js → flex-CXxIn81t.js} +5 -5
- package/dist/browser/{floorplan.loader-CPmefcXe.js → floorplan.loader-C-m4NheT.js} +723 -704
- package/dist/browser/{floorplan.ready-oUOSRm6R.js → floorplan.ready-Duc4SxLH.js} +34 -34
- package/dist/browser/{fuse-DP7UCs2S.js → fuse-4QTHS7Ur.js} +2 -2
- package/dist/browser/{i18n-Cj30oNjj.js → i18n-VVkod1aZ.js} +3 -3
- package/dist/browser/index.js +11 -11
- package/dist/browser/{is-debug-B8x-fro_.js → is-debug-UXRw9lKQ.js} +4 -4
- package/dist/browser/{jsx-runtime-D7QyoJp1.js → jsx-runtime-BjSqokhG.js} +2 -2
- package/dist/browser/{lib-B8nz5HHo.js → lib-wtNuKXT7.js} +4 -4
- package/dist/browser/{main-BwVw9SUe.js → main-C-83kvrc.js} +1 -1
- package/dist/browser/{mobx-D8yc9fAI.js → mobx-D3CFlbtA.js} +4 -4
- package/dist/browser/{particles.min-CUAgfec9.js → particles.min-Bxln4d_5.js} +2 -2
- package/dist/browser/{prop-types-CvfWKQCy.js → prop-types-BBCNUtnm.js} +2 -2
- package/dist/browser/{react-C2tVGrqu.js → react-HA3DGvr6.js} +2 -2
- package/dist/browser/{react-dom-B_sXID-1.js → react-dom-BQ8F633x.js} +3 -3
- package/dist/browser/{reset-all-settings-Be_n1oxb.js → reset-all-settings-DoRgIwaj.js} +7 -7
- package/dist/browser/{rolldown-runtime-DVIs1q9q.js → rolldown-runtime-CH0sZcpN.js} +1 -1
- package/dist/browser/{settings-B8veQbld.js → settings-CXi58p62.js} +2 -2
- package/dist/browser/{settings-item-CdMRi2N0.js → settings-item-_4f-2Ez7.js} +6 -6
- package/dist/browser/{store-CtVf7eNc.js → store-BrAfYXrZ.js} +1848 -1828
- package/dist/browser/{string-editor-gjrsepUM.js → string-editor-B_WUMLTp.js} +7 -7
- package/dist/browser/{theme-B0UtMBz_.js → theme-CQRRknl6.js} +8 -8
- package/dist/browser/{ui-BBu8YAw8.js → ui-BEwxpZU9.js} +8 -8
- package/dist/browser/{useRenderTarget-CiijuasV.js → useRenderTarget-DT7C-pWd.js} +4 -4
- package/dist/esm/services/routing.js +1 -1
- package/dist/esm/utils/i18n.d.ts +1 -1
- package/dist/esm/utils/sanitizeText.d.ts +2 -2
- package/dist/esm/utils/sanitizeText.js +1 -1
- package/dist/esm/utils/trackingParams.d.ts +3 -0
- package/dist/esm/utils/trackingParams.js +1 -0
- package/package.json +14 -13
|
@@ -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.7.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.7.6" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c13b5d2b-c064-4095-8a35-7ce6c1158176", e._sentryDebugIdIdentifier = "sentry-dbid-c13b5d2b-c064-4095-8a35-7ce6c1158176");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { D as r, i, l as a, n as o, s, u as c, y as l } from "./flex-
|
|
13
|
-
import { t as u } from "./classnames-
|
|
14
|
-
import { t as d } from "./settings-item-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-CH0sZcpN.js";
|
|
10
|
+
import { t } from "./react-HA3DGvr6.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-BjSqokhG.js";
|
|
12
|
+
import { D as r, i, l as a, n as o, s, u as c, y as l } from "./flex-CXxIn81t.js";
|
|
13
|
+
import { t as u } from "./classnames-C3l9dcGG.js";
|
|
14
|
+
import { t as d } from "./settings-item-_4f-2Ez7.js";
|
|
15
15
|
//#region ../../node_modules/.pnpm/@radix-ui+themes@3.3.0_@types+react-dom@19.2.3_@types+react@19.2.17__@types+react@19.2._925f851475345a9e5e368d312bb98178/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js
|
|
16
16
|
var f = {
|
|
17
17
|
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.7.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.7.6" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "14cfe74b-e711-4201-812b-ad94b4330a84", e._sentryDebugIdIdentifier = "sentry-dbid-14cfe74b-e711-4201-812b-ad94b4330a84");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { t as r } from "./react-dom-
|
|
13
|
-
import { C as i, E as a, O as o, T as s, _ as c, o as l, v as u, w as d } from "./flex-
|
|
14
|
-
import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-
|
|
15
|
-
import { t as y } from "./classnames-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-CH0sZcpN.js";
|
|
10
|
+
import { t } from "./react-HA3DGvr6.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-BjSqokhG.js";
|
|
12
|
+
import { t as r } from "./react-dom-BQ8F633x.js";
|
|
13
|
+
import { C as i, E as a, O as o, T as s, _ as c, o as l, v as u, w as d } from "./flex-CXxIn81t.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-mbonvrAc.js";
|
|
15
|
+
import { t as y } from "./classnames-C3l9dcGG.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.17__@ty_070bcfa32421a5876e7dcb93369fcbee/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.7.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.7.6" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "5091f250-052d-4365-8535-fbf8bf11a38b", e._sentryDebugIdIdentifier = "sentry-dbid-5091f250-052d-4365-8535-fbf8bf11a38b");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { a as t, r as n } from "./reset-all-settings-
|
|
11
|
-
import { t as r } from "./jsx-runtime-
|
|
12
|
-
import "./settings-
|
|
13
|
-
import { t as i } from "./browser-
|
|
14
|
-
import { t as a } from "./add-debug-secret-listener-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-CH0sZcpN.js";
|
|
10
|
+
import { a as t, r as n } from "./reset-all-settings-DoRgIwaj.js";
|
|
11
|
+
import { t as r } from "./jsx-runtime-BjSqokhG.js";
|
|
12
|
+
import "./settings-CXi58p62.js";
|
|
13
|
+
import { t as i } from "./browser-HS8wyHXB.js";
|
|
14
|
+
import { t as a } from "./add-debug-secret-listener-2dlwQmt_.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-
|
|
29
|
+
let { DebugUi: n } = await import("./debug-ui-C4osX8i_.js"), { createRoot: i } = await import("./client-NCz188Ft.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.7.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.7.6" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6b81f440-81dc-47f4-a309-d96d34e3099c", e._sentryDebugIdIdentifier = "sentry-dbid-6b81f440-81dc-47f4-a309-d96d34e3099c");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { s as n } from "./store-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-CH0sZcpN.js";
|
|
10
|
+
import { t } from "./react-HA3DGvr6.js";
|
|
11
|
+
import { s as n } from "./store-BrAfYXrZ.js";
|
|
12
12
|
//#region src/utils/getRenderTargetFromRoot.ts
|
|
13
13
|
var r = /* @__PURE__ */ e(t(), 1);
|
|
14
14
|
function i(e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createBrowserHistory as oe}from"history";import{autorun as O,reaction as k}from"mobx";import{handleCustomCommand as se}from"../utils/customCommands";import{BUILD_ROUTE_KEY as re,KIOSK_ENABLE_KEY as A,MAP_SETTINGS_KEY as ae,PREVIEW_MODE_QUERY as E,PREVIEW_MODE_STORAGE_KEY as F,SEPARATOR as R,PATHWAY_KEY as N,PLANNER_KEY as P,PLANNER_SOURCE_KEY as $,PLANNER_FROM_KEY as K,LANG_KEY as W,UI_SCALE_PARAM_KEY as Y,UI_SCALE_RESET_PARAM_KEY as V,VIEWER_MODE_QUERY as I,VIEWER_MODE_STORAGE_KEY as H,LANGUAGE_TYPE as x}from"../constants";import v from"../data";import s,{uiState as i}from"../store";import{BoothBase as G}from"../store/BoothStore";import{CurrentPosition as ie,extractRoute as ne,findBooth as le}from"../store/RouteStore";import{setConsentSettings as D}from"../tools/gtag";import U from"../tools/logger";import{isLocalStorageAvailable as L}from"../utils/localStorage";import{areLayersEnabled as ce}from"../utils/areLayersEnabled";import ue from"../core/Rect";import{getMostFrequent as he}from"../utils/getMostFrequent";import{runInAction as z}from"mobx";import{recoverKioskFromUrlPrams as fe}from"../components/Kiosk/recoverKioskFromUrlPrams";import{hasLocale as de,setLocale as me}from"../utils/i18n";let m=!1,C=!1,j=null,q=null,Q=null,J;const h=oe(),B=window.location.pathname,S=[];export function getLocationHistory(){return S}function b(t){return B+t}function pe(t){m||h.push(b(t))}export function historyReplace(t){m||h.push(b(t))}function f(t){return t.replace(/=&/g,"&").replace(/=$/,"")}function X(){let t="";const n=i.selectedExhibitor,a=i.selectedBooth,e=i.selectedEventItem,o=i.selectedRoute,r=i.selectedSpeaker,l=i.setKioskModeEnabled;if(i.list.type==="route-planner"&&!n&&!a&&!e){const d=s.routePlannerStore;if(d.source==="bookmarks")t=`${P}&${$}=bookmarks`;else{const w=d.items.map(g=>g.entity.slug).filter(Boolean).join(R);t=`${P}=${w}`}const p=d.startPoint?.slug;p&&(t+=`&${K}=${p}`)}else if(o&&!i.isMultiPointRoute){const d=o.from instanceof G?`:${o.from.slug}`:"",p=o.to instanceof G?`:${o.to.slug}`:"",w=s.routeStore.onlyAccessible?":true":":false",g=o.waypoints?.map(u=>`:${u.slug}`).join("");t=`route${p}${d}${w}${g||""}`}else if(n)t=n.slug;else if(a)t=a.slug;else if(e)t=e.slug;else if(r)t=r.slug;else if(l)t="";else switch(i.list.type){case"bookmarks":t="bookmarks";break;case"visited":t="visited";break;case"category":t=i.selectedCategory.slug;break;case"search":t=i.list.text||"";break;case x:t=x;break;case"filter":t=`${i.list.query.key}=${i.list.query.value}`;break;case"sessions":t="sessions";break;case"exhibitors":t="exhibitors";break;case"speakers":t="speakers";break;case"tours":t="tours";break;case"multi-point-tour":t=`tour=${i.list.tourId}`;break;default:throw new Error("Unkown list.type")}if(C)return;const c=t?"?"+encodeURIComponent(t):"";h.location.search!==c&&(n!==j||a!==q||e!==Q?pe(c):historyReplace(c),j=n,q=a,Q=e)}function Z(){const t=i.selectedExhibitor,n=i.selectedEventItem,a=i.selectedSpeaker;let e="";t?e=t.name:n?e=n.name:a?e=a.name:i.list.type==="search"&&i.list.text?e="`"+(i.list.text||"")+"`":i.list.type==="multi-point-tour"&&i.tourTitle&&(e=i.tourTitle),e.length&&(e+=" \u2013 "),e+=v.title,v.subtitle&&(e+=" \u2013 "+v.subtitle),e+=" \u2013 Expo Floor Plan by ExpoFP",document.title=e}function _(){const t=h.location.search.length>1?decodeURIComponent(h.location.search.substring(1)):"";return se(t)}function y(){const t=h.location.search.length>1?decodeURIComponent(h.location.search.substring(1)):"";C=!0;const n=s.boothStore.booths.find(e=>e.slug?.toLowerCase()===t?.toLowerCase()||e.externalId?.toLowerCase()===t?.toLowerCase()||e.externalId?.toLowerCase()?.replace(/\s+/g,"")===t?.toLowerCase()),a=new URLSearchParams(decodeURIComponent(window.location.search));if(fe(a),ge(a),!_())if(a.has(A)){const e=a.get(A);e==="1"?i.kiosk=!0:e==="0"&&(i.kiosk=!1,i.resetUIScale())}else if(t==="tours")s.selectTours();else if(t.startsWith("tour=")){const e=t.split("=")[1],o=s.toursStore.getTourById(e);o?s.toursStore.launchTour(o,o.name,o.description):(console.warn(`Route with id "${e}" not found`),s.selectTours())}else if(a.has(P)){const e=a.get($),o=a.get(K),r=o?le(o):null;if(e==="bookmarks")s.routePlannerStore.launchFromBookmarks(r??void 0);else{const l=(a.get(P)||"").split(R).filter(Boolean);s.routePlannerStore.launchFromSlugs(l,r??void 0)}}else if(t.startsWith("route")){const e=t.split(R);s.routeStore.setOnlyAccessible(e[3]==="true");const o=ne(e[2],e[1],e.slice(4));s.routeStore.selectRoute(o);const l=e.slice(4).length>0;s.uiState.setIsMultiPointRoute(l);const d=new URLSearchParams(window.location.search).get("title");d&&s.uiState.setRouteTitle(d)}else if(t==="bookmarks")s.selectBookmarks();else if(t==="visited")s.selectVisited();else if(t===x)s.selectLanguage();else if(a.has(W)){const e=a.get(W)?.toLowerCase();de(e)&&me(e)}else if(t==="sessions")s.selectSessions();else if(t==="exhibitors")s.selectExhibitors();else if(t==="speakers")s.selectSpeakers();else if(t==="-pdf")s.uiState.printingPdf=!0;else if(t.startsWith("hide"))s.uiState.setVisibility(new URLSearchParams(t).get("hide").split(",").filter(Boolean).reduce((e,o)=>({...e,[o]:!1}),{}));else if(n)setTimeout(()=>s.selectBooth(n),250);else if(t===re)s.uiState.startBuildRoute();else if(a.get(N)){const e=a.get(N),o=a.get("booths")?.split(",")||[],r=a.get("exhibitors")?.split(",")||[],l=a.get("tour");if(l){const u=s.toursStore.getTourById(l);u&&z(()=>{s.uiState.setTourTitle(u.name),s.uiState.setTourDescription(u.description),s.uiState.setIsMultiPointTour(!0),s.uiState.setMultiPointTourList(u.id)})}const c=s.boothStore.booths,d=s.exhibitorStore.exhibitors,p=c.filter(u=>o.includes(u.externalId)),w=d.filter(u=>r.includes(u.externalId)).flatMap(u=>u.booths),g=[...p,...w];if(ce()){const u=g.map(te=>te.layer.name),M=he(u);M&&s.fp.activateFloor({name:M})}(o.length>0||r.length>0)&&s.fp.highlightEntities([...o,...r]),s.layerStore.showPathWay(e),g.length>0&&z(()=>{s.uiState.moveToRect=ue.fromMultiple(g.map(u=>u.rect).filter(Boolean)),s.uiState.rollReset=!0})}else{const e=s.eventStore.eventItems.find(o=>o.slug?.toLowerCase()===t?.toLowerCase()||o.externalId?.toLowerCase()===t?.toLowerCase());if(e)s.selectEventItem(e,!0);else{const o=s.exhibitorStore.exhibitors.find(r=>r.slug?.toLowerCase()===t?.toLowerCase()||r.externalId?.toLowerCase()===t?.toLowerCase());if(t.startsWith("exhibitors")){const r=t.split("=")[1].split(",");setTimeout(()=>s.fp.selectExhibitor(r),250)}else if(o)setTimeout(()=>s.clickExhibitor(o),250);else if(t.includes("=")&&(t.startsWith("categories=")||/^poiTypes?=/.test(t)))U.log("Skipping filter parameter in dispatchFromUrl:",t);else{const l=s.categoryStore.categories.find(c=>c.slug===t);if(l)s.selectCategory(l);else{const c=s.speakerStore.findBySlug(t);c?s.selectSpeaker(c,!0):t.includes("heatmap=true")||s.searchStore.selectSearch(t)}}}}C=!1,X(),Z()}function T(){const t=h.location.search;if(t.includes("heatmap")){const e=new URL(window.location.href);if(e.searchParams.get("heatmap")==="true")if(e.searchParams.get("type")==="yah"){let r=f(e.search);m=!0,historyReplace(r),s.uiState.heatmapYah=!0,s.uiState.monochrome=!0,s.uiState.hideLogoInBooth=!0,s.uiState.hideHeaderLogo=!0,s.uiState.disableBookmarked=!0}else{e.searchParams.delete("heatmap");let r=f(e.search);m=!0,historyReplace(r),s.uiState.heatmap=!0}}if(t.startsWith("?preview="))historyReplace("?");else if(t.startsWith("?b="))historyReplace("?bookmarks");else if(t.startsWith("?ba=")){const e=new URL(window.location.href),o=parseInt(e.searchParams.get("ba")),r=s.exhibitorStore.exhibitorById.get(o);historyReplace(r?"?"+r.slug:"?bookmarks")}if(t.includes("blue-dot")){const e=new URL(window.location.href),o=e.searchParams.get("blue-dot").split(",");if(e.searchParams.delete("blue-dot"),o.length>1){const l=s.layerStore.findLayer(o[2])?.name,c=new ie(Number(o[0])||void 0,Number(o[1])||void 0,l,void 0,Number(o[3])||void 0,Number(o[4])||void 0);s.layerStore.layersLoaded?s.routeStore.selectCurrentPosition(c,!0,1):k(()=>s.layerStore.layersLoaded,()=>{s.routeStore.selectCurrentPosition(c,!0,1)})}let r=f(e.search);historyReplace(r)}if(t.includes("copy_exh")){const e=new URL(window.location.href),o=e.searchParams.get("copy_exh");e.searchParams.delete("copy_exh"),historyReplace("?")}if(t.includes("noOverlay")){const e=new URL(window.location.href),o=e.searchParams.get("noOverlay");e.searchParams.delete("noOverlay");let r=f(e.search);o==="true"?s.uiState.hideOverlay=!0:o==="false"&&(s.uiState.hideOverlay=!1),historyReplace(r)}if(t.includes("allowConsent")){const e=new URL(window.location.href),o=e.searchParams.get("allowConsent");e.searchParams.delete("allowConsent");const r=f(e.search);o==="true"?D(!0):o==="false"&&D(!1),historyReplace(r)}if(t.includes("hideHeaderLogo")){const e=new URL(window.location.href),o=e.searchParams.get("hideHeaderLogo");e.searchParams.delete("hideHeaderLogo");const r=f(e.search);o==="true"&&(i.hideHeaderLogo=!0),historyReplace(r)}if(t.includes("hideLogoInBooth")){const e=new URL(window.location.href),o=e.searchParams.get("hideLogoInBooth");e.searchParams.delete("hideLogoInBooth");const r=f(e.search);o==="true"&&(i.hideLogoInBooth=!0),historyReplace(r)}if(t.includes("disableFeatured")){const e=new URL(window.location.href),o=e.searchParams.get("disableFeatured");e.searchParams.delete("disableFeatured");const r=f(e.search);o==="true"&&s.exhibitorStore.exhibitors.forEach(l=>l.featured=!1),historyReplace(r)}if(t.includes("disableBookmarked")){const e=new URL(window.location.href),o=e.searchParams.get("disableBookmarked");e.searchParams.delete("disableBookmarked");const r=f(e.search);o==="true"&&(i.disableBookmarked=!0),historyReplace(r)}if(t.includes("disableGps")){const e=new URL(window.location.href),o=e.searchParams.get("disableGps");e.searchParams.delete("disableGps");const r=f(e.search);o==="true"&&s.routeStore.setGpsTrackingEnabled(!1),historyReplace(r)}if(t.includes("monochrome")){const e=new URL(window.location.href),o=e.searchParams.get("monochrome");e.searchParams.delete("monochrome");const r=f(e.search);o==="true"&&(i.monochrome=!0),historyReplace(r)}if((t.startsWith("?fbclid")||t.startsWith("?_ga"))&&historyReplace("?"),t.includes(I)){const e=new URL(window.location.href),o=e.searchParams.get(I);o==="1"||o==="true"?L&&localStorage.setItem(H,"1"):(o==="0"||o==="false")&&L&&localStorage.removeItem(H),e.searchParams.delete(I),historyReplace(f(e.search))}if(t.includes(E)){const e=new URL(window.location.href),o=e.searchParams.get(E);o==="true"?L&&localStorage.setItem(F,"1"):o==="false"&&L&&localStorage.removeItem(F),e.searchParams.delete(E),historyReplace(f(e.search))}if(i.previewExhibitor&&historyReplace("?"+i.previewExhibitor.slug),h.location.search.includes("&")||h.location.search.includes("%26")){let e=h.location.search;e=e.startsWith("?")?e.slice(1):e;const o=e.includes("&")?"&":"%26",l=e.split(o).map(c=>{const d=s.exhibitorStore.exhibitors.find(p=>p.slug===c||p.externalId===c);return d?d.name:c}).join("&");historyReplace("?"+l)}const n=new URLSearchParams(window.location.search);if(n.has(V)){s.uiState.resetUIScale();const e=new URL(window.location.href);e.searchParams.delete(V);let o=f(e.search);m=!0,historyReplace(o),m=!1}const a=n.get(Y);if(a){const e=a.replace(",","."),o=parseFloat(e);!isNaN(o)&&o>=.8&&o<=1.4?s.uiState.setUIScale(o,!0):U.warn(`Invalid ui-scale parameter: ${a}. Must be a number between 0.8 and 1.4.`);const r=new URL(window.location.href);r.searchParams.delete(Y);let l=f(r.search);m=!0,historyReplace(l),m=!1}}export function initRouting(t=!1){m=t,!m&&b(h.location.search)===B&&S.push(b(h.location.search)),J=h.listen((n,a)=>{m||(S.push(b(n.search)),U.log("history",a,n),a==="POP"&&y())}),T(),_(),k(()=>s.layerStore.layersLoaded,()=>{s.urlFilterManager&&!s.urlFilterManager.isInitialized&&s.urlFilterManager.initialize(),y(),O(Z),O(X),i.viewerMode&&(i.menu=!0)})}export function applyParameters(t=""){historyReplace("?"+decodeURIComponent(t.toString())),s.layerStore.layersLoaded?(T(),y()):(_(),k(()=>s.layerStore.layersLoaded,()=>{T(),y()}))}export function destroyHistory(){J()}export function goBack(){if(console.log("goBack"),S.length>1){S.pop();const n=S[S.length-1].replace(B,"");return m=!0,h.replace(n),m=!1,y(),!0}else return h.go(-1),!1}function ge(t){try{let n={};const a=i.defaultMapSettings;if(new Set(t.keys()).size)n=ee(Object.fromEntries(t.entries()),a);else{const e=sessionStorage.getItem(ae);e&&(n=ee(JSON.parse(e),a))}if(i.setMapSettings(n),n.z){const e=s.layerStore.layers.find(o=>o.name===n.z);e&&s.layerStore.updateVisibility(e,!0)}}catch(n){console.error("Failed to process or save map settings.",n)}}function ee(t,n){const a={};for(const e in t){if(!Object.prototype.hasOwnProperty.call(n,e)||!Object.prototype.hasOwnProperty.call(t,e))continue;const o=t[e];typeof n[e]=="number"&&typeof o=="string"?a[e]=parseFloat(o):a[e]=o}return a}
|
|
1
|
+
import{createBrowserHistory as oe}from"history";import{autorun as O,reaction as k,runInAction as A}from"mobx";import{recoverKioskFromUrlPrams as se}from"../components/Kiosk/recoverKioskFromUrlPrams";import{BUILD_ROUTE_KEY as re,KIOSK_ENABLE_KEY as F,LANG_KEY as N,LANGUAGE_TYPE as E,MAP_SETTINGS_KEY as ae,PATHWAY_KEY as $,PLANNER_FROM_KEY as Y,PLANNER_KEY as P,PLANNER_SOURCE_KEY as K,PREVIEW_MODE_QUERY as I,PREVIEW_MODE_STORAGE_KEY as W,SEPARATOR as R,UI_SCALE_PARAM_KEY as V,UI_SCALE_RESET_PARAM_KEY as H,VIEWER_MODE_QUERY as x,VIEWER_MODE_STORAGE_KEY as G}from"../constants";import ie from"../core/Rect";import v from"../data";import o,{uiState as n}from"../store";import{BoothBase as D}from"../store/BoothStore";import{CurrentPosition as ne,extractRoute as le,findBooth as ce}from"../store/RouteStore";import{setConsentSettings as z}from"../tools/gtag";import U from"../tools/logger";import{areLayersEnabled as ue}from"../utils/areLayersEnabled";import{handleCustomCommand as he}from"../utils/customCommands";import{getMostFrequent as fe}from"../utils/getMostFrequent";import{hasLocale as de,setLocale as me}from"../utils/i18n";import{isLocalStorageAvailable as L}from"../utils/localStorage";import{stripTrackingParams as pe}from"../utils/trackingParams";let m=!1,C=!1,j=null,q=null,Q=null,J;const h=oe(),B=window.location.pathname,w=[];export function getLocationHistory(){return w}function b(e){return B+e}function ge(e){m||h.push(b(e))}export function historyReplace(e){m||h.push(b(e))}function d(e){return e.replace(/=&/g,"&").replace(/=$/,"")}function X(){let e="";const l=n.selectedExhibitor,i=n.selectedBooth,s=n.selectedEventItem,t=n.selectedRoute,r=n.selectedSpeaker,a=n.setKioskModeEnabled;if(n.list.type==="route-planner"&&!l&&!i&&!s){const u=o.routePlannerStore;if(u.source==="bookmarks")e=`${P}&${K}=bookmarks`;else{const g=u.items.map(S=>S.entity.slug).filter(Boolean).join(R);e=`${P}=${g}`}const p=u.startPoint?.slug;p&&(e+=`&${Y}=${p}`)}else if(t&&!n.isMultiPointRoute){const u=t.from instanceof D?`:${t.from.slug}`:"",p=t.to instanceof D?`:${t.to.slug}`:"",g=o.routeStore.onlyAccessible?":true":":false",S=t.waypoints?.map(f=>`:${f.slug}`).join("");e=`route${p}${u}${g}${S||""}`}else if(l)e=l.slug;else if(i)e=i.slug;else if(s)e=s.slug;else if(r)e=r.slug;else if(a)e="";else switch(n.list.type){case"bookmarks":e="bookmarks";break;case"visited":e="visited";break;case"category":e=n.selectedCategory?.slug??"";break;case"search":e=n.list.text||"";break;case E:e=E;break;case"filter":e=`${n.list.query.key}=${n.list.query.value}`;break;case"sessions":e="sessions";break;case"exhibitors":e="exhibitors";break;case"speakers":e="speakers";break;case"tours":e="tours";break;case"multi-point-tour":e=`tour=${n.list.tourId}`;break;default:throw new Error("Unkown list.type")}if(C)return;const c=e?"?"+encodeURIComponent(e):"";h.location.search!==c&&(l!==j||i!==q||s!==Q?ge(c):historyReplace(c),j=l,q=i,Q=s)}function Z(){const e=n.selectedExhibitor,l=n.selectedEventItem,i=n.selectedSpeaker;let s="";e?s=e.name:l?s=l.name:i?s=i.name:n.list.type==="search"&&n.list.text?s="`"+(n.list.text||"")+"`":n.list.type==="multi-point-tour"&&n.tourTitle&&(s=n.tourTitle),s.length&&(s+=" \u2013 "),s+=v.title,v.subtitle&&(s+=" \u2013 "+v.subtitle),s+=" \u2013 Expo Floor Plan by ExpoFP",document.title=s}function T(){const e=h.location.search.length>1?decodeURIComponent(h.location.search.substring(1)):"";return he(e)}function y(){const e=h.location.search.length>1?decodeURIComponent(h.location.search.substring(1)):"";C=!0;const l=o.boothStore.booths.find(s=>s.slug?.toLowerCase()===e?.toLowerCase()||s.externalId?.toLowerCase()===e?.toLowerCase()||s.externalId?.toLowerCase()?.replace(/\s+/g,"")===e?.toLowerCase()),i=new URLSearchParams(decodeURIComponent(window.location.search));if(se(i),Se(i),!T())if(i.has(F)){const s=i.get(F);s==="1"?n.kiosk=!0:s==="0"&&(n.kiosk=!1,n.resetUIScale())}else if(e==="tours")o.selectTours();else if(e.startsWith("tour=")){const s=e.split("=")[1],t=o.toursStore.getTourById(s);t?o.toursStore.launchTour(t,t.name,t.description):(console.warn(`Route with id "${s}" not found`),o.selectTours())}else if(i.has(P)){const s=i.get(K),t=i.get(Y),r=t?ce(t):null;if(s==="bookmarks")o.routePlannerStore.launchFromBookmarks(r??void 0);else{const a=(i.get(P)||"").split(R).filter(Boolean);o.routePlannerStore.launchFromSlugs(a,r??void 0)}}else if(e.startsWith("route")){const s=e.split(R);o.routeStore.setOnlyAccessible(s[3]==="true");const t=le(s[2],s[1],s.slice(4));o.routeStore.selectRoute(t);const a=s.slice(4).length>0;o.uiState.setIsMultiPointRoute(a);const u=new URLSearchParams(window.location.search).get("title");u&&o.uiState.setRouteTitle(u)}else if(e==="bookmarks")o.selectBookmarks();else if(e==="visited")o.selectVisited();else if(e===E)o.selectLanguage();else if(i.has(N)){const s=i.get(N)?.toLowerCase();de(s)&&me(s)}else if(e==="sessions")o.selectSessions();else if(e==="exhibitors")o.selectExhibitors();else if(e==="speakers")o.selectSpeakers();else if(e==="-pdf")o.uiState.printingPdf=!0;else if(e.startsWith("hide"))o.uiState.setVisibility((new URLSearchParams(e).get("hide")??"").split(",").filter(Boolean).reduce((s,t)=>({...s,[t]:!1}),{}));else if(l)setTimeout(()=>o.selectBooth(l),250);else if(e===re)o.uiState.startBuildRoute();else if(i.get($)){const s=i.get($),t=i.get("booths")?.split(",")||[],r=i.get("exhibitors")?.split(",")||[],a=i.get("tour");if(a){const f=o.toursStore.getTourById(a);f&&A(()=>{o.uiState.setTourTitle(f.name),o.uiState.setTourDescription(f.description??""),o.uiState.setIsMultiPointTour(!0),o.uiState.setMultiPointTourList(f.id)})}const c=o.boothStore.booths,u=o.exhibitorStore.exhibitors,p=c.filter(f=>t.includes(f.externalId)),g=u.filter(f=>r.includes(f.externalId)).flatMap(f=>f.booths),S=[...p,...g];if(ue()){const f=S.map(te=>te.layer.name),M=fe(f);M&&o.fp.activateFloor({name:M})}(t.length>0||r.length>0)&&o.fp.highlightEntities([...t,...r]),o.layerStore.showPathWay(s),S.length>0&&A(()=>{o.uiState.moveToRect=ie.fromMultiple(S.map(f=>f.rect).filter(Boolean)),o.uiState.rollReset=!0})}else{const s=o.eventStore.eventItems.find(t=>t.slug?.toLowerCase()===e?.toLowerCase()||t.externalId?.toLowerCase()===e?.toLowerCase());if(s)o.selectEventItem(s,!0);else{const t=o.exhibitorStore.exhibitors.find(r=>r.slug?.toLowerCase()===e?.toLowerCase()||r.externalId?.toLowerCase()===e?.toLowerCase());if(e.startsWith("exhibitors")){const r=e.split("=")[1].split(",");setTimeout(()=>o.fp.selectExhibitor(r),250)}else if(t)setTimeout(()=>o.clickExhibitor(t),250);else if(e.includes("=")&&(e.startsWith("categories=")||/^poiTypes?=/.test(e)))U.log("Skipping filter parameter in dispatchFromUrl:",e);else{const a=o.categoryStore.categories.find(c=>c.slug===e);if(a)o.selectCategory(a);else{const c=o.speakerStore.findBySlug(e);c?o.selectSpeaker(c,!0):e.includes("heatmap=true")||o.searchStore.selectSearch(e)}}}}C=!1,X(),Z()}function _(){const e=h.location.search;if(e.includes("heatmap")){const t=new URL(window.location.href);if(t.searchParams.get("heatmap")==="true"){const a=t.searchParams.get("type")==="yah";a||t.searchParams.delete("heatmap"),m=!0,historyReplace(d(t.search)),a?(o.uiState.heatmapYah=!0,o.uiState.monochrome=!0,o.uiState.hideLogoInBooth=!0,o.uiState.hideHeaderLogo=!0,o.uiState.disableBookmarked=!0):o.uiState.heatmap=!0}}if(e.startsWith("?preview="))historyReplace("?");else if(e.startsWith("?b="))historyReplace("?bookmarks");else if(e.startsWith("?ba=")){const t=new URL(window.location.href),r=parseInt(t.searchParams.get("ba")),a=o.exhibitorStore.exhibitorById.get(r);historyReplace(a?"?"+a.slug:"?bookmarks")}if(e.includes("blue-dot")){const t=new URL(window.location.href),r=t.searchParams.get("blue-dot");t.searchParams.delete("blue-dot");const a=r?.split(",")??[],c=Number(a[0]),u=Number(a[1]);if(a.length>1&&Number.isFinite(c)&&Number.isFinite(u)){const g=o.layerStore.findLayer(a[2])?.name,S=new ne(c,u,g,void 0,Number(a[3])||void 0,Number(a[4])||void 0);o.layerStore.layersLoaded?o.routeStore.selectCurrentPosition(S,!0,1):k(()=>o.layerStore.layersLoaded,()=>{o.routeStore.selectCurrentPosition(S,!0,1)})}const p=d(t.search);historyReplace(p)}if(e.includes("copy_exh")&&historyReplace("?"),e.includes("noOverlay")){const t=new URL(window.location.href),r=t.searchParams.get("noOverlay");t.searchParams.delete("noOverlay");const a=d(t.search);r==="true"?o.uiState.hideOverlay=!0:r==="false"&&(o.uiState.hideOverlay=!1),historyReplace(a)}if(e.includes("allowConsent")){const t=new URL(window.location.href),r=t.searchParams.get("allowConsent");t.searchParams.delete("allowConsent");const a=d(t.search);r==="true"?z(!0):r==="false"&&z(!1),historyReplace(a)}if(e.includes("hideHeaderLogo")){const t=new URL(window.location.href),r=t.searchParams.get("hideHeaderLogo");t.searchParams.delete("hideHeaderLogo");const a=d(t.search);r==="true"&&(n.hideHeaderLogo=!0),historyReplace(a)}if(e.includes("hideLogoInBooth")){const t=new URL(window.location.href),r=t.searchParams.get("hideLogoInBooth");t.searchParams.delete("hideLogoInBooth");const a=d(t.search);r==="true"&&(n.hideLogoInBooth=!0),historyReplace(a)}if(e.includes("disableFeatured")){const t=new URL(window.location.href),r=t.searchParams.get("disableFeatured");t.searchParams.delete("disableFeatured");const a=d(t.search);r==="true"&&o.exhibitorStore.exhibitors.forEach(c=>c.featured=!1),historyReplace(a)}if(e.includes("disableBookmarked")){const t=new URL(window.location.href),r=t.searchParams.get("disableBookmarked");t.searchParams.delete("disableBookmarked");const a=d(t.search);r==="true"&&(n.disableBookmarked=!0),historyReplace(a)}if(e.includes("disableGps")){const t=new URL(window.location.href),r=t.searchParams.get("disableGps");t.searchParams.delete("disableGps");const a=d(t.search);r==="true"&&o.routeStore.setGpsTrackingEnabled(!1),historyReplace(a)}if(e.includes("monochrome")){const t=new URL(window.location.href),r=t.searchParams.get("monochrome");t.searchParams.delete("monochrome");const a=d(t.search);r==="true"&&(n.monochrome=!0),historyReplace(a)}const l=pe(h.location.search);if(l!==null&&historyReplace("?"+l),e.includes(x)){const t=new URL(window.location.href),r=t.searchParams.get(x);r==="1"||r==="true"?L&&localStorage.setItem(G,"1"):(r==="0"||r==="false")&&L&&localStorage.removeItem(G),t.searchParams.delete(x),historyReplace(d(t.search))}if(e.includes(I)){const t=new URL(window.location.href),r=t.searchParams.get(I);r==="true"?L&&localStorage.setItem(W,"1"):r==="false"&&L&&localStorage.removeItem(W),t.searchParams.delete(I),historyReplace(d(t.search))}if(n.previewExhibitor&&historyReplace("?"+n.previewExhibitor.slug),h.location.search.includes("&")||h.location.search.includes("%26")){let t=h.location.search;t=t.startsWith("?")?t.slice(1):t;const r=t.includes("&")?"&":"%26",c=t.split(r).map(u=>{const p=o.exhibitorStore.exhibitors.find(g=>g.slug===u||g.externalId===u);return p?p.name:u}).join("&");historyReplace("?"+c)}const i=new URLSearchParams(window.location.search);if(i.has(H)){o.uiState.resetUIScale();const t=new URL(window.location.href);t.searchParams.delete(H);const r=d(t.search);m=!0,historyReplace(r),m=!1}const s=i.get(V);if(s){const t=s.replace(",","."),r=parseFloat(t);!isNaN(r)&&r>=.8&&r<=1.4?o.uiState.setUIScale(r,!0):U.warn(`Invalid ui-scale parameter: ${s}. Must be a number between 0.8 and 1.4.`);const a=new URL(window.location.href);a.searchParams.delete(V);const c=d(a.search);m=!0,historyReplace(c),m=!1}}export function initRouting(e=!1){m=e,!m&&b(h.location.search)===B&&w.push(b(h.location.search)),J=h.listen((l,i)=>{m||(w.push(b(l.search)),U.log("history",i,l),i==="POP"&&y())}),_(),T(),k(()=>o.layerStore.layersLoaded,()=>{o.urlFilterManager&&!o.urlFilterManager.isInitialized&&o.urlFilterManager.initialize(),y(),O(Z),O(X),n.viewerMode&&(n.menu=!0)})}export function applyParameters(e=""){historyReplace("?"+decodeURIComponent(e.toString())),o.layerStore.layersLoaded?(_(),y()):(T(),k(()=>o.layerStore.layersLoaded,()=>{_(),y()}))}export function destroyHistory(){J()}export function goBack(){if(console.log("goBack"),w.length>1){w.pop();const l=w[w.length-1].replace(B,"");return m=!0,h.replace(l),m=!1,y(),!0}else return h.go(-1),!1}function Se(e){try{let l={};const i=n.defaultMapSettings;if(new Set(e.keys()).size)l=ee(Object.fromEntries(e.entries()),i);else{const s=sessionStorage.getItem(ae);s&&(l=ee(JSON.parse(s),i))}if(n.setMapSettings(l),l.z){const s=o.layerStore.layers.find(t=>t.name===l.z);s&&o.layerStore.updateVisibility(s,!0)}}catch(l){console.error("Failed to process or save map settings.",l)}}function ee(e,l){const i={};for(const s in e){if(!Object.prototype.hasOwnProperty.call(l,s)||!Object.prototype.hasOwnProperty.call(e,s))continue;const t=e[s];typeof l[s]=="number"?i[s]=parseFloat(t):i[s]=t}return i}
|
package/dist/esm/utils/i18n.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TFunction } from "i18next";
|
|
2
2
|
export declare const getLocale: () => string;
|
|
3
3
|
export declare const getLocales: () => readonly Language[];
|
|
4
|
-
export declare const hasLocale: (id: string) =>
|
|
4
|
+
export declare const hasLocale: (id: string | undefined) => id is string;
|
|
5
5
|
export declare const t: (template: string, options?: any) => string;
|
|
6
6
|
export declare const initI18n: () => Promise<TFunction>;
|
|
7
7
|
export declare const setLocale: (id: string) => Promise<void>;
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* @param {string} str - The input string to sanitize.
|
|
5
5
|
* @returns {string} - The sanitized string containing only alphanumeric characters.
|
|
6
6
|
*/
|
|
7
|
-
export declare const sanitizeStr: (str:
|
|
8
|
-
export declare function sanitizeSearch(input: string, patterns?:
|
|
7
|
+
export declare const sanitizeStr: (str: string) => string;
|
|
8
|
+
export declare function sanitizeSearch(input: string, patterns?: string[]): string;
|
|
9
9
|
//# sourceMappingURL=sanitizeText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getSlug as
|
|
1
|
+
import{getSlug as i}from"../components/Kiosk/SetKiosk";import{TRACKING_PARAM_PATTERNS as a}from"./trackingParams";export const sanitizeStr=e=>e.trim().replace(/[^a-z0-9]/gi,"");export function sanitizeSearch(e,r=[]){if(!e)return"";const t=[...a,"ref=","lp_id=","lp_token=",`${i()}=`].concat(r),o=new RegExp(`(^|\\?|&)(${t.join("|")})[^&]*`,"g");return e.replace(o,"").replace(/(^|[?&])([^=&#]+)=(?=&|$)/g,(p,n,c)=>`${n}${c}`)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const TRACKING_PARAM_PATTERNS=["_gl","_ga","_ga_[\\w-]+","gclid","gclsrc","gbraid","wbraid","gad_source","fbclid","utm_[\\w-]+"];const r=new RegExp(`^(${TRACKING_PARAM_PATTERNS.join("|")})$`,"i");export function stripTrackingParams(t){const n=t.startsWith("?")?t.slice(1):t;if(!n)return null;const i=n.split("&"),s=i.filter(l=>!r.test(l.split("=")[0]));return s.length===i.length?null:s.join("&")}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/floorplan",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/expofp/efp-app.git",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"!dist/stats.json"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@expofp/renderer": "3.2.
|
|
39
|
-
"@sentry/core": "^10.
|
|
40
|
-
"@sentry/react": "^10.
|
|
38
|
+
"@expofp/renderer": "3.2.4",
|
|
39
|
+
"@sentry/core": "^10.58.0",
|
|
40
|
+
"@sentry/react": "^10.58.0",
|
|
41
41
|
"bowser": "^2.7.0",
|
|
42
42
|
"classnames": "^2.2.6",
|
|
43
43
|
"color": "^3.1.2",
|
|
@@ -73,31 +73,32 @@
|
|
|
73
73
|
"tslib": "^2.3.0",
|
|
74
74
|
"uuid": "^9.0.1",
|
|
75
75
|
"zod": "4.3.5",
|
|
76
|
-
"@expofp/
|
|
77
|
-
"@expofp/
|
|
76
|
+
"@expofp/debug": "3.7.6",
|
|
77
|
+
"@expofp/resolve": "3.7.6"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@babel/plugin-proposal-decorators": "^7.29.7",
|
|
81
81
|
"@babel/plugin-transform-class-properties": "^7.29.7",
|
|
82
82
|
"@sentry/vite-plugin": "^5.3.0",
|
|
83
|
-
"@storybook/addon-vitest": "10.4.
|
|
84
|
-
"@storybook/react": "10.4.
|
|
85
|
-
"@storybook/react-vite": "10.4.
|
|
83
|
+
"@storybook/addon-vitest": "10.4.6",
|
|
84
|
+
"@storybook/react": "10.4.6",
|
|
85
|
+
"@storybook/react-vite": "10.4.6",
|
|
86
86
|
"@types/color": "^3.0.7",
|
|
87
87
|
"@types/d3": "^7.1.0",
|
|
88
|
+
"@types/history": "^4.7.11",
|
|
88
89
|
"@types/lz-string": "1.3.32",
|
|
89
90
|
"@types/react": "^19.2.17",
|
|
90
91
|
"@types/react-dom": "^19.2.3",
|
|
91
92
|
"@vitejs/plugin-react": "^6.0.2",
|
|
92
|
-
"@vitest/browser": "^4.1.
|
|
93
|
-
"@vitest/browser-playwright": "^4.1.
|
|
93
|
+
"@vitest/browser": "^4.1.9",
|
|
94
|
+
"@vitest/browser-playwright": "^4.1.9",
|
|
94
95
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
95
|
-
"playwright": "^1.
|
|
96
|
+
"playwright": "^1.61.0",
|
|
96
97
|
"react": "^19.2.7",
|
|
97
98
|
"react-dom": "^19.2.7",
|
|
98
99
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
99
100
|
"sass-embedded": "^1.100.0",
|
|
100
|
-
"storybook": "10.4.
|
|
101
|
+
"storybook": "10.4.6"
|
|
101
102
|
},
|
|
102
103
|
"peerDependencies": {
|
|
103
104
|
"react": "^19.2.7",
|