sevago-library 1.3.11 → 1.3.12

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/index.esm.js CHANGED
@@ -78271,9 +78271,12 @@ const SystemMonitorSidebarPart = ({
78271
78271
  isLongSubDomain = false
78272
78272
  }) => {
78273
78273
  const [open2, setOpen] = useState(false);
78274
- const app = useMemo(() => {
78275
- return Object.values(APP_OBJ).find((e) => window.location.href.startsWith(e.path[env])) || APP_OBJ.MASTER_DATA;
78276
- }, [window.location.href]);
78274
+ const app = Object.values(APP_OBJ).find(
78275
+ (appInfo) => Object.values(appInfo.path).some((path) => {
78276
+ const normalizedPath = path == null ? void 0 : path.trim();
78277
+ return normalizedPath && window.location.href.startsWith(normalizedPath);
78278
+ })
78279
+ ) ?? APP_OBJ.MASTER_DATA;
78277
78280
  return /* @__PURE__ */ jsxs(StackRowAlignCenter, { children: [
78278
78281
  /* @__PURE__ */ jsx(ImageElement, { url: ICONS.iconApps, onClick: () => setOpen(true), sizeType: "SQUARE" }),
78279
78282
  /* @__PURE__ */ jsx(