@ukpc-lib/react 0.16.3-dev.19 → 0.16.3-dev.21

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 (24) hide show
  1. package/dist/components/FavoriteMenu/components/MenuItem.d.ts +1 -1
  2. package/dist/components/index.cjs +8 -8
  3. package/dist/components/index.js +273 -273
  4. package/dist/{index.esm2017-CUNZtK1H.js → index.esm2017-CChlMOC9.js} +355 -352
  5. package/dist/{index.esm2017-CHJLz48m.cjs → index.esm2017-DjebFQF3.cjs} +23 -23
  6. package/dist/share/hooks/useSyncRouter.d.ts +1 -1
  7. package/dist/share/index.cjs +1 -1
  8. package/dist/share/index.js +64 -82
  9. package/package.json +1 -1
  10. package/web-components-bundle/{SaasThemeProvider-A_eMJWqw.js → SaasThemeProvider-DUpoV8xb.js} +1 -1
  11. package/web-components-bundle/access-denied/index.js +6 -6
  12. package/web-components-bundle/base-breadcrumbs/index.js +3 -3
  13. package/web-components-bundle/favorite-menu/index.js +6 -6
  14. package/web-components-bundle/global-menu/index.js +5 -5
  15. package/web-components-bundle/global-topbar/index.js +6 -6
  16. package/web-components-bundle/has-permission/index.js +2 -2
  17. package/web-components-bundle/{index-HipdrDJF.js → index-C0bWxjUr.js} +20 -17
  18. package/web-components-bundle/{index-CKnnH8IY.js → index-Dkof1OzO.js} +493 -493
  19. package/web-components-bundle/{index-BwEhsh9S.js → index-N6zjI_u_.js} +2 -2
  20. package/web-components-bundle/page-not-found/index.js +3 -3
  21. package/web-components-bundle/{react-to-web-component-BOygDorD.js → react-to-web-component-w5r1Fs9q.js} +1527 -1535
  22. package/web-components-bundle/{react-toastify.esm-DnABvuky.js → react-toastify.esm-H_Xdunfj.js} +1 -1
  23. package/web-components-bundle/toast-config/index.js +2 -2
  24. package/web-components-bundle/toast-config-notification/index.js +2 -2
@@ -4,4 +4,4 @@ declare global {
4
4
  HostBridge?: any;
5
5
  }
6
6
  }
7
- export declare const useSyncRouter: (basepath?: string) => void;
7
+ export declare const useSyncRouter: (basePath?: string) => void;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-CHJLz48m.cjs"),g=require("axios"),c=require("react"),d=require("react-router-dom"),u=require("react/jsx-runtime");require("@r2wc/react-to-web-component");require("@mui/material");require("react-query");require("react-dom");require("moment");const h=r=>{const[i,t]=c.useState([]);return c.useEffect(()=>{g.get(`${r}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(s=>t(s.data)).catch(s=>{console.error("Getting user permission error:",s)})},[r]),i},f=r=>{const i=d.useNavigate(),t=d.useLocation();console.log(" useSyncRouter.tsx ~ location1:",t,window.location.pathname);const s=(n=t)=>(r||"")+n.pathname+n.search+n.hash;if(c.useEffect(()=>{const n={changeRoute:o=>{const a=s();if(typeof o=="string"&&a!==o){console.log(" useSyncRouter.tsx ~ location2:",a,o);const m=r&&o.startsWith(r)?o.substring(r.length):o;i(m)}}};window.MicrofeBridge=n},[i,t]),c.useEffect(()=>{var o,a;const n=s();console.log("fullPath1",window.location.pathname,n),(a=(o=window.parent)==null?void 0:o.HostBridge)==null||a.childRouteChange(n)},[t]),window.self===window.top){console.log("useSyncRouter: Navigate to /app path"),window.location.href=window.location.href.replace(window.origin,`${window.origin}/app`);return}};function P({open:r,disabled:i}){c.useMemo(()=>{var t,s,n,o;i||(r?(s=(t=window.top)==null?void 0:t.HostBridge)==null||s.openBackdrop(!0):(o=(n=window.top)==null?void 0:n.HostBridge)==null||o.openBackdrop(!1))},[r,i])}const l=(r,i)=>(t,s)=>{const o=e.useUserPermissions({axiosInstance:i,baseUrl:r}).data;return o?s?t.every(a=>o==null?void 0:o.includes(a)):t.some(a=>o==null?void 0:o.includes(a)):!1},w=({baseUrl:r,accessWith:i,requireAll:t,children:s})=>l(r)(i,t)?u.jsx(u.Fragment,{children:s}):null,p=({accessWith:r,requireAll:i,baseUrl:t,children:s})=>l(t)(r,i)?u.jsx(u.Fragment,{children:s}):u.jsx(e.UnauthorizedPage,{});exports.AuthContext=e.AuthContext;exports.AuthProvider=e.AuthProvider;exports.ERROR_MESSAGE=e.ERROR_MESSAGE;exports.SaasThemeProvider=e.SaasThemeProvider;exports.TranslationProvider=e.TranslationProvider;exports.axiosInstance=e.axiosInstance;exports.color=e.color;exports.createCustomTheme=e.createCustomTheme;exports.handleErrorAxios=e.handleErrorAxios;exports.login=e.login;exports.logout=e.logout;exports.responseInterceptor=e.responseInterceptor;exports.search=e.search;exports.setFavicon=e.setFavicon;exports.setShellBackdrop=e.setShellBackdrop;exports.translate=e.translate;exports.translationConfig=e.translationConfig;exports.useAuth=e.useAuth;exports.useCustomTranslation=e.useCustomTranslation;exports.useTheme=e.useTheme;exports.useTranslation=e.useTranslation;exports.HasPermission=w;exports.PermissionRoute=p;exports.getUseHasPermission=l;exports.useGetPermission=h;exports.useSyncBackdrop=P;exports.useSyncRouter=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-DjebFQF3.cjs"),m=require("axios"),u=require("react"),d=require("react-router-dom"),a=require("react/jsx-runtime");require("@r2wc/react-to-web-component");require("@mui/material");require("react-query");require("react-dom");require("moment");const h=s=>{const[t,r]=u.useState([]);return u.useEffect(()=>{m.get(`${s}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(o=>r(o.data)).catch(o=>{console.error("Getting user permission error:",o)})},[s]),t},p=s=>{const t=d.useLocation();if(u.useEffect(()=>{var o,i;let r=t.pathname+t.search+t.hash;s&&!r.includes(s)&&(r=s+r),console.log("🚀 ~ PrivateLayout.tsx ~ fullPath:",r),(i=(o=window.top)==null?void 0:o.shellNavigate)==null||i.call(o,"/app"+r,{replace:!0})},[t,s]),window.self===window.top){console.log("useSyncRouter: Navigate to /app path"),window.location.href=window.location.href.replace(window.origin,`${window.origin}/app`);return}};function g({open:s,disabled:t}){u.useMemo(()=>{var r,o,i,n;t||(s?(o=(r=window.top)==null?void 0:r.HostBridge)==null||o.openBackdrop(!0):(n=(i=window.top)==null?void 0:i.HostBridge)==null||n.openBackdrop(!1))},[s,t])}const l=(s,t)=>(r,o)=>{const n=e.useUserPermissions({axiosInstance:t,baseUrl:s}).data;return n?o?r.every(c=>n==null?void 0:n.includes(c)):r.some(c=>n==null?void 0:n.includes(c)):!1},f=({baseUrl:s,accessWith:t,requireAll:r,children:o})=>l(s)(t,r)?a.jsx(a.Fragment,{children:o}):null,P=({accessWith:s,requireAll:t,baseUrl:r,children:o})=>l(r)(s,t)?a.jsx(a.Fragment,{children:o}):a.jsx(e.UnauthorizedPage,{});exports.AuthContext=e.AuthContext;exports.AuthProvider=e.AuthProvider;exports.ERROR_MESSAGE=e.ERROR_MESSAGE;exports.SaasThemeProvider=e.SaasThemeProvider;exports.TranslationProvider=e.TranslationProvider;exports.axiosInstance=e.axiosInstance;exports.color=e.color;exports.createCustomTheme=e.createCustomTheme;exports.handleErrorAxios=e.handleErrorAxios;exports.login=e.login;exports.logout=e.logout;exports.responseInterceptor=e.responseInterceptor;exports.search=e.search;exports.setFavicon=e.setFavicon;exports.setShellBackdrop=e.setShellBackdrop;exports.translate=e.translate;exports.translationConfig=e.translationConfig;exports.useAuth=e.useAuth;exports.useCustomTranslation=e.useCustomTranslation;exports.useTheme=e.useTheme;exports.useTranslation=e.useTranslation;exports.HasPermission=f;exports.PermissionRoute=P;exports.getUseHasPermission=l;exports.useGetPermission=h;exports.useSyncBackdrop=g;exports.useSyncRouter=p;
@@ -1,48 +1,30 @@
1
- import { K as d, U as g } from "../index.esm2017-CUNZtK1H.js";
2
- import { M as z, O as D, R as I, a2 as N, $ as O, a as j, c as K, a0 as L, W as V, T as W, V as X, X as Y, r as Z, a1 as _, s as q, t as J, Y as Q, e as b, u as oo, i as eo, Z as so } from "../index.esm2017-CUNZtK1H.js";
3
- import p from "axios";
4
- import { useState as f, useEffect as a, useMemo as h } from "react";
5
- import { useNavigate as w, useLocation as P } from "react-router-dom";
6
- import { jsx as u, Fragment as c } from "react/jsx-runtime";
1
+ import { K as p, U as l } from "../index.esm2017-CChlMOC9.js";
2
+ import { M as $, O as D, R as F, a2 as I, $ as L, a as N, c as O, a0 as j, W as z, T as K, V, X, r as Y, a1 as Z, s as _, t as q, Y as J, e as Q, u as W, i as b, Z as ee } from "../index.esm2017-CChlMOC9.js";
3
+ import f from "axios";
4
+ import { useState as d, useEffect as u, useMemo as h } from "react";
5
+ import { useLocation as w } from "react-router-dom";
6
+ import { jsx as i, Fragment as c } from "react/jsx-runtime";
7
7
  import "@r2wc/react-to-web-component";
8
8
  import "@mui/material";
9
9
  import "react-query";
10
10
  import "react-dom";
11
11
  import "moment";
12
- const H = (e) => {
13
- const [r, s] = f([]);
14
- return a(() => {
15
- p.get(`${e}/user-management/api/v1/users/my-account/permissions`, {
12
+ const C = (s) => {
13
+ const [r, e] = d([]);
14
+ return u(() => {
15
+ f.get(`${s}/user-management/api/v1/users/my-account/permissions`, {
16
16
  withCredentials: !0
17
- }).then((t) => s(t.data)).catch((t) => {
18
- console.error("Getting user permission error:", t);
17
+ }).then((o) => e(o.data)).catch((o) => {
18
+ console.error("Getting user permission error:", o);
19
19
  });
20
- }, [e]), r;
21
- }, M = (e) => {
22
- const r = w(), s = P();
23
- console.log(
24
- " useSyncRouter.tsx ~ location1:",
25
- s,
26
- window.location.pathname
27
- );
28
- const t = (n = s) => (e || "") + n.pathname + n.search + n.hash;
29
- if (a(() => {
30
- const n = {
31
- changeRoute: (o) => {
32
- const i = t();
33
- if (typeof o == "string" && i !== o) {
34
- console.log(" useSyncRouter.tsx ~ location2:", i, o);
35
- const m = e && o.startsWith(e) ? o.substring(e.length) : o;
36
- r(m);
37
- }
38
- }
39
- };
40
- window.MicrofeBridge = n;
41
- }, [r, s]), a(() => {
42
- var o, i;
43
- const n = t();
44
- console.log("fullPath1", window.location.pathname, n), (i = (o = window.parent) == null ? void 0 : o.HostBridge) == null || i.childRouteChange(n);
45
- }, [s]), window.self === window.top) {
20
+ }, [s]), r;
21
+ }, E = (s) => {
22
+ const r = w();
23
+ if (u(() => {
24
+ var o, a;
25
+ let e = r.pathname + r.search + r.hash;
26
+ s && !e.includes(s) && (e = s + e), console.log("🚀 ~ PrivateLayout.tsx ~ fullPath:", e), (a = (o = window.top) == null ? void 0 : o.shellNavigate) == null || a.call(o, "/app" + e, { replace: !0 });
27
+ }, [r, s]), window.self === window.top) {
46
28
  console.log("useSyncRouter: Navigate to /app path"), window.location.href = window.location.href.replace(
47
29
  window.origin,
48
30
  `${window.origin}/app`
@@ -51,61 +33,61 @@ const H = (e) => {
51
33
  }
52
34
  };
53
35
  function k({
54
- open: e,
36
+ open: s,
55
37
  disabled: r
56
38
  }) {
57
39
  h(() => {
58
- var s, t, n, o;
59
- r || (e ? (t = (s = window.top) == null ? void 0 : s.HostBridge) == null || t.openBackdrop(!0) : (o = (n = window.top) == null ? void 0 : n.HostBridge) == null || o.openBackdrop(!1));
60
- }, [e, r]);
40
+ var e, o, a, t;
41
+ r || (s ? (o = (e = window.top) == null ? void 0 : e.HostBridge) == null || o.openBackdrop(!0) : (t = (a = window.top) == null ? void 0 : a.HostBridge) == null || t.openBackdrop(!1));
42
+ }, [s, r]);
61
43
  }
62
- const l = (e, r) => (s, t) => {
63
- const o = d({
44
+ const m = (s, r) => (e, o) => {
45
+ const t = p({
64
46
  axiosInstance: r,
65
- baseUrl: e
47
+ baseUrl: s
66
48
  }).data;
67
- return o ? t ? s.every(
68
- (i) => o == null ? void 0 : o.includes(i)
69
- ) : s.some(
70
- (i) => o == null ? void 0 : o.includes(i)
49
+ return t ? o ? e.every(
50
+ (n) => t == null ? void 0 : t.includes(n)
51
+ ) : e.some(
52
+ (n) => t == null ? void 0 : t.includes(n)
71
53
  ) : !1;
72
- }, F = ({
73
- baseUrl: e,
54
+ }, H = ({
55
+ baseUrl: s,
74
56
  accessWith: r,
75
- requireAll: s,
76
- children: t
77
- }) => l(e)(r, s) ? /* @__PURE__ */ u(c, { children: t }) : null, G = ({
78
- accessWith: e,
57
+ requireAll: e,
58
+ children: o
59
+ }) => m(s)(r, e) ? /* @__PURE__ */ i(c, { children: o }) : null, G = ({
60
+ accessWith: s,
79
61
  requireAll: r,
80
- baseUrl: s,
81
- children: t
82
- }) => l(s)(e, r) ? /* @__PURE__ */ u(c, { children: t }) : /* @__PURE__ */ u(g, {});
62
+ baseUrl: e,
63
+ children: o
64
+ }) => m(e)(s, r) ? /* @__PURE__ */ i(c, { children: o }) : /* @__PURE__ */ i(l, {});
83
65
  export {
84
- z as AuthContext,
66
+ $ as AuthContext,
85
67
  D as AuthProvider,
86
- I as ERROR_MESSAGE,
87
- F as HasPermission,
68
+ F as ERROR_MESSAGE,
69
+ H as HasPermission,
88
70
  G as PermissionRoute,
89
- N as SaasThemeProvider,
90
- O as TranslationProvider,
91
- j as axiosInstance,
92
- K as color,
93
- L as createCustomTheme,
94
- l as getUseHasPermission,
95
- V as handleErrorAxios,
96
- W as login,
97
- X as logout,
98
- Y as responseInterceptor,
99
- Z as search,
100
- _ as setFavicon,
101
- q as setShellBackdrop,
102
- J as translate,
103
- Q as translationConfig,
104
- b as useAuth,
105
- oo as useCustomTranslation,
106
- H as useGetPermission,
71
+ I as SaasThemeProvider,
72
+ L as TranslationProvider,
73
+ N as axiosInstance,
74
+ O as color,
75
+ j as createCustomTheme,
76
+ m as getUseHasPermission,
77
+ z as handleErrorAxios,
78
+ K as login,
79
+ V as logout,
80
+ X as responseInterceptor,
81
+ Y as search,
82
+ Z as setFavicon,
83
+ _ as setShellBackdrop,
84
+ q as translate,
85
+ J as translationConfig,
86
+ Q as useAuth,
87
+ W as useCustomTranslation,
88
+ C as useGetPermission,
107
89
  k as useSyncBackdrop,
108
- M as useSyncRouter,
109
- eo as useTheme,
110
- so as useTranslation
90
+ E as useSyncRouter,
91
+ b as useTheme,
92
+ ee as useTranslation
111
93
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ukpc-lib/react",
3
3
  "private": false,
4
- "version": "0.16.3-dev.19",
4
+ "version": "0.16.3-dev.21",
5
5
  "type": "module",
6
6
  "main": "./dist/",
7
7
  "module": "./dist/",
@@ -1,4 +1,4 @@
1
- import { a as j, r as b } from "./react-to-web-component-BOygDorD.js";
1
+ import { a as j, r as b } from "./react-to-web-component-w5r1Fs9q.js";
2
2
  function c() {
3
3
  return c = Object.assign ? Object.assign.bind() : function(t) {
4
4
  for (var e = 1; e < arguments.length; e++) {
@@ -1,11 +1,11 @@
1
- import "../react-to-web-component-BOygDorD.js";
2
- import { U as d } from "../index-HipdrDJF.js";
3
- import "../react-toastify.esm-DnABvuky.js";
1
+ import "../react-to-web-component-w5r1Fs9q.js";
2
+ import { U as d } from "../index-C0bWxjUr.js";
3
+ import "../react-toastify.esm-H_Xdunfj.js";
4
4
  import "../toast-config/index.js";
5
5
  import "../toast-config-notification/index.js";
6
- import "../SaasThemeProvider-A_eMJWqw.js";
7
- import "../index-BwEhsh9S.js";
8
- import "../index-CKnnH8IY.js";
6
+ import "../SaasThemeProvider-DUpoV8xb.js";
7
+ import "../index-N6zjI_u_.js";
8
+ import "../index-Dkof1OzO.js";
9
9
  export {
10
10
  d as UnauthorizedPage
11
11
  };
@@ -1,6 +1,6 @@
1
- import "../react-to-web-component-BOygDorD.js";
2
- import { X as e } from "../index-CKnnH8IY.js";
3
- import "../SaasThemeProvider-A_eMJWqw.js";
1
+ import "../react-to-web-component-w5r1Fs9q.js";
2
+ import { X as e } from "../index-Dkof1OzO.js";
3
+ import "../SaasThemeProvider-DUpoV8xb.js";
4
4
  export {
5
5
  e as BaseBreadcrumbs
6
6
  };
@@ -1,11 +1,11 @@
1
- import "../react-to-web-component-BOygDorD.js";
2
- import { F as u, u as F } from "../index-HipdrDJF.js";
3
- import "../index-BwEhsh9S.js";
4
- import "../index-CKnnH8IY.js";
5
- import "../react-toastify.esm-DnABvuky.js";
1
+ import "../react-to-web-component-w5r1Fs9q.js";
2
+ import { F as u, u as F } from "../index-C0bWxjUr.js";
3
+ import "../index-N6zjI_u_.js";
4
+ import "../index-Dkof1OzO.js";
5
+ import "../react-toastify.esm-H_Xdunfj.js";
6
6
  import "../toast-config/index.js";
7
7
  import "../toast-config-notification/index.js";
8
- import "../SaasThemeProvider-A_eMJWqw.js";
8
+ import "../SaasThemeProvider-DUpoV8xb.js";
9
9
  export {
10
10
  u as FavoriteMenu,
11
11
  F as updateFavoriteItems
@@ -1,8 +1,8 @@
1
- import "../react-to-web-component-BOygDorD.js";
2
- import { G as a } from "../index-HipdrDJF.js";
3
- import "../index-BwEhsh9S.js";
4
- import "../index-CKnnH8IY.js";
5
- import "../SaasThemeProvider-A_eMJWqw.js";
1
+ import "../react-to-web-component-w5r1Fs9q.js";
2
+ import { G as a } from "../index-C0bWxjUr.js";
3
+ import "../index-N6zjI_u_.js";
4
+ import "../index-Dkof1OzO.js";
5
+ import "../SaasThemeProvider-DUpoV8xb.js";
6
6
  export {
7
7
  a as GlobalMenu
8
8
  };
@@ -1,9 +1,9 @@
1
- import "../react-to-web-component-BOygDorD.js";
2
- import { L as n, T as s } from "../index-HipdrDJF.js";
3
- import "../index-BwEhsh9S.js";
4
- import "../index-CKnnH8IY.js";
5
- import "../SaasThemeProvider-A_eMJWqw.js";
6
- import "../react-toastify.esm-DnABvuky.js";
1
+ import "../react-to-web-component-w5r1Fs9q.js";
2
+ import { L as n, T as s } from "../index-C0bWxjUr.js";
3
+ import "../index-N6zjI_u_.js";
4
+ import "../index-Dkof1OzO.js";
5
+ import "../SaasThemeProvider-DUpoV8xb.js";
6
+ import "../react-toastify.esm-H_Xdunfj.js";
7
7
  import "../toast-config/index.js";
8
8
  import "../toast-config-notification/index.js";
9
9
  export {
@@ -1,5 +1,5 @@
1
- import "../react-to-web-component-BOygDorD.js";
2
- import { H as o, g as r } from "../index-HipdrDJF.js";
1
+ import "../react-to-web-component-w5r1Fs9q.js";
2
+ import { H as o, g as r } from "../index-C0bWxjUr.js";
3
3
  export {
4
4
  o as HasPermission,
5
5
  r as getUseHasPermission
@@ -1,12 +1,12 @@
1
1
  var sU = Object.defineProperty;
2
2
  var oU = (e, t, n) => t in e ? sU(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var bh = (e, t, n) => (oU(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { c as Yn, g as xl, r as M, R as je, j as I, a as wh, b as Tg, s as Xf, d as aU } from "./react-to-web-component-BOygDorD.js";
5
- import { _ as lU, a as vs, b as da, T as Sk, c as uU, s as cU, d as fU, e as Ck, f as kr, D as dU, g as Dp, h as hU, i as Tk, r as pU, u as Cf, j as kp, k as nC, l as $u, m as Sl, o as rC, n as gU, p as Fu, q as Qf, t as ur, C as mU, v as _k, w as Ek, x as Xr, B as vU, y as yU, z as Ok, A as Dk, E as _g, F as jb, G as qc, H as bU, I as iC, J as wU, K as xh, L as xU, M as Pp, N as SU, O as CU, P as Dn, Q as TU, R as _U, S as EU, U as kk, V as Pk, W as Ak } from "./index-CKnnH8IY.js";
6
- import { i as Ap, s as OU, _ as _e, a as Qy, f as DU, r as Zy, n as Wn, t as Rk, e as kU, g as Mk, b as an, c as Rp, h as Ik, p as Yo, m as sC, d as oC, j as Qh, k as Sh, l as aC, o as PU } from "./SaasThemeProvider-A_eMJWqw.js";
4
+ import { c as Yn, g as xl, r as M, R as je, j as I, a as wh, b as Tg, s as Xf, d as aU } from "./react-to-web-component-w5r1Fs9q.js";
5
+ import { _ as lU, a as vs, b as da, T as Sk, c as uU, s as cU, d as fU, e as Ck, f as kr, D as dU, g as Dp, h as hU, i as Tk, r as pU, u as Cf, j as kp, k as nC, l as $u, m as Sl, o as rC, n as gU, p as Fu, q as Qf, t as ur, C as mU, v as _k, w as Ek, x as Xr, B as vU, y as yU, z as Ok, A as Dk, E as _g, F as jb, G as qc, H as bU, I as iC, J as wU, K as xh, L as xU, M as Pp, N as SU, O as CU, P as Dn, Q as TU, R as _U, S as EU, U as kk, V as Pk, W as Ak } from "./index-Dkof1OzO.js";
6
+ import { i as Ap, s as OU, _ as _e, a as Qy, f as DU, r as Zy, n as Wn, t as Rk, e as kU, g as Mk, b as an, c as Rp, h as Ik, p as Yo, m as sC, d as oC, j as Qh, k as Sh, l as aC, o as PU } from "./SaasThemeProvider-DUpoV8xb.js";
7
7
  import { c as Ks } from "./clsx-DB4S2d7J.js";
8
- import { S as Bb } from "./index-BwEhsh9S.js";
9
- import { B as Vb } from "./react-toastify.esm-DnABvuky.js";
8
+ import { S as Bb } from "./index-N6zjI_u_.js";
9
+ import { B as Vb } from "./react-toastify.esm-H_Xdunfj.js";
10
10
  import "./toast-config/index.js";
11
11
  import "./toast-config-notification/index.js";
12
12
  function AU(e, t) {
@@ -15299,13 +15299,13 @@ function TK({
15299
15299
  autoFocus: i,
15300
15300
  onBlur: () => r(),
15301
15301
  onKeyDown: (E) => {
15302
- var _, P;
15302
+ var _;
15303
15303
  if (E.key === "Enter") {
15304
- const O = document.querySelector("global-topbar");
15305
- if ((O != null ? O.shadowRoot : document).getElementById("selectedSearch") === null) {
15304
+ const P = document.querySelector("global-topbar");
15305
+ if ((P != null ? P.shadowRoot : document).getElementById("selectedSearch") === null) {
15306
15306
  console.log("enter", E);
15307
- const L = E.currentTarget.value;
15308
- (P = (_ = window.top) == null ? void 0 : _.HostBridge) == null || P.childRouteChange(`/stella/page/Search/Index?Term=${L}`);
15307
+ const B = E.currentTarget.value;
15308
+ (_ = window.top) == null || _.shellNavigate(`/app/stella/page/Search/Index?Term=${B}`);
15309
15309
  return;
15310
15310
  }
15311
15311
  }
@@ -20615,7 +20615,7 @@ function GM({ ...e }) {
20615
20615
  },
20616
20616
  onClick: (fe) => {
20617
20617
  var q, z;
20618
- _ === "a" && H === "_blank" || (!r && t.path && ((q = e.onClickItem) == null || q.call(e, P)), P !== "#" && ((z = e.onClick) == null || z.call(e, t), Y(fe)));
20618
+ _ === "a" && H === "_blank" || (!r && t.path && ((q = e.onClickItem) == null || q.call(e, t), Y(fe)), P !== "#" && ((z = e.onClick) == null || z.call(e, t), Y(fe)));
20619
20619
  },
20620
20620
  onDragStart: (fe) => {
20621
20621
  console.log("onDragStart component", fe.target);
@@ -26185,7 +26185,7 @@ function Gie(e = 32) {
26185
26185
  return;
26186
26186
  const o = () => {
26187
26187
  const a = s.contentWindow;
26188
- a && a.addEventListener("scroll", i);
26188
+ a && (a.addEventListener("scroll", i), n(!0), r.current = a.scrollY || 0);
26189
26189
  };
26190
26190
  return s.addEventListener("load", o), () => {
26191
26191
  s.removeEventListener("load", o);
@@ -37279,12 +37279,12 @@ const UO = (e) => {
37279
37279
  ] });
37280
37280
  }
37281
37281
  M.useEffect(() => {
37282
- t && Notification.permission === "granted" && (t.actorName || t.message || t.context || t.contextUrl) && IK(/* @__PURE__ */ I.jsx(i, {}));
37282
+ t && typeof window < "u" && "Notification" in window && Notification.permission === "granted" && (t.actorName || t.message || t.context || t.contextUrl) && IK(/* @__PURE__ */ I.jsx(i, {}));
37283
37283
  }, [t]), M.useEffect(() => {
37284
- "Notification" in window && (console.log("notification permission", Notification.permission), Notification.permission === "default" ? Notification.requestPermission(function(o) {
37284
+ typeof window < "u" && "Notification" in window ? (console.log("notification permission", Notification.permission), Notification.permission === "default" ? Notification.requestPermission(function(o) {
37285
37285
  o === "granted" && UO(e);
37286
- }) : Notification.permission === "granted" && UO(e));
37287
- }, [Notification.permission]), M.useEffect(() => {
37286
+ }) : Notification.permission === "granted" && UO(e)) : console.log("Web Notifications API is not supported on this device");
37287
+ }, []), M.useEffect(() => {
37288
37288
  Jae(r);
37289
37289
  }, []);
37290
37290
  const s = (o, a) => {
@@ -43942,7 +43942,10 @@ function gpe(e) {
43942
43942
  var z;
43943
43943
  (z = e.handleCallback) == null || z.call(e, i);
43944
43944
  }, [i, e.handleCallback]), M.useEffect(() => {
43945
- v(window.location.href);
43945
+ v(window.location.href), t.pathname + t.search + t.hash && localStorage.setItem(
43946
+ "latestClickMenuPath",
43947
+ (t.pathname + t.search + t.hash || "").replace(window.location.origin, "")
43948
+ );
43946
43949
  }, [t]);
43947
43950
  const S = xk(i, p), [w, E] = hpe({
43948
43951
  initOpenIds: e.initOpenIds