react-luminus-components 2.1.8 → 2.1.10

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 (48) hide show
  1. package/dist/.vite/manifest.json +191 -50
  2. package/dist/Alert-BApdinGX.cjs +1 -0
  3. package/dist/Alert-D2Bw906t.js +495 -0
  4. package/dist/DelegationContext-B1WXROG2.cjs +201 -0
  5. package/dist/DelegationContext-CCnk58PI.js +3156 -0
  6. package/dist/HelmetContext-ChKPef74.js +49 -0
  7. package/dist/HelmetContext-DDQ-Phg7.cjs +1 -0
  8. package/dist/PrimaryButton-D7r0m8xi.js +742 -0
  9. package/dist/PrimaryButton-D91b3Dmv.cjs +1 -0
  10. package/dist/SimpleTooltip-B00uLuVM.cjs +1 -0
  11. package/dist/SimpleTooltip-dwOOgecT.js +1642 -0
  12. package/dist/Typography-C5KJzU5O.js +1627 -0
  13. package/dist/Typography-Fo21SeyJ.cjs +20 -0
  14. package/dist/UserContext-45ZxeQHB.cjs +1 -0
  15. package/dist/UserContext-ZsTsf5Xe.js +270 -0
  16. package/dist/contexts.cjs.js +1 -1
  17. package/dist/contexts.es.js +1773 -852
  18. package/dist/dateUtils-CXm9PEh6.cjs +1 -0
  19. package/dist/dateUtils-ayErBYbI.js +1488 -0
  20. package/dist/hooks.cjs.js +1 -1
  21. package/dist/hooks.es.js +118 -123
  22. package/dist/index-4IYT9u10.js +95 -0
  23. package/dist/index-jmbq5h95.cjs +25 -0
  24. package/dist/layout.cjs.js +1 -1
  25. package/dist/layout.es.js +97 -98
  26. package/dist/localStorageUtils-BSATUi5m.cjs +1 -0
  27. package/dist/localStorageUtils-DNgjNynk.js +1070 -0
  28. package/dist/main.cjs.js +56 -7
  29. package/dist/main.es.js +36401 -11370
  30. package/dist/models/texts/SubstitutionsTexts.d.ts +1 -0
  31. package/dist/style.css +1 -1
  32. package/dist/useIsFormDirty-76y8Dca-.cjs +1 -0
  33. package/dist/useIsFormDirty-Ba5uhPH7.js +3257 -0
  34. package/dist/useWindowSize-7W91GsJQ.js +56 -0
  35. package/dist/useWindowSize-CLoDaEYh.cjs +1 -0
  36. package/dist/utils.cjs.js +1 -1
  37. package/dist/utils.es.js +79 -85
  38. package/package.json +10 -1
  39. package/dist/FormDisabledProvider-D-DRODSt.js +0 -51
  40. package/dist/FormDisabledProvider-Dt39yr7W.cjs +0 -1
  41. package/dist/localStorageUtils-CVwJ9FKd.cjs +0 -1
  42. package/dist/localStorageUtils-TeLq8MHE.js +0 -59
  43. package/dist/nivo-bar-D6NJLYWS.js +0 -39616
  44. package/dist/nivo-bar-SBWBmyeI.cjs +0 -293
  45. package/dist/useIsFormDirty-CZ4jNRFn.js +0 -117
  46. package/dist/useIsFormDirty-Crsu8mjo.cjs +0 -1
  47. package/dist/useLocalStorageState-Ca7olZgH.cjs +0 -1
  48. package/dist/useLocalStorageState-DtBc-C2W.js +0 -25
package/dist/hooks.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./nivo-bar-SBWBmyeI.cjs"),f=require("react"),V=require("./useLocalStorageState-Ca7olZgH.cjs"),F=require("./useIsFormDirty-Crsu8mjo.cjs");require("react/jsx-runtime");require("react-router");const H=require("react-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-react");require("@azure/msal-browser");const Q=require("./useIsBrowserOnline-CREGrf2l.cjs"),C=new Map;function _(s,r){const e=a.useAxios({silent:!0,differentBaseUrl:r==null?void 0:r.customBaseUrl,customToken:r==null?void 0:r.customToken}),t=f.useRef(null);if(!C.has(s)){const m=e.get(s).then(n=>(C.set(s,{status:"success",data:n.data}),t.current=setTimeout(()=>{C.delete(s),t.current=null},1e4),n.data)).catch(n=>{throw C.set(s,{status:"error",error:n}),t.current=setTimeout(()=>{C.delete(s),t.current=null},1e3),n});throw C.set(s,{status:"pending",promise:m}),m}const o=C.get(s);if(o.status==="pending")throw o.promise;if(o.status==="error")throw o.error;return o.data}const J=s=>r=>(window.addEventListener(`storage_${s}`,r),()=>window.removeEventListener(`storage_${s}`,r)),M=(s,r,e)=>{const t=a.compilerRuntimeExports.c(15),o=e===void 0?localStorage:e,[m]=f.useState(r);let n;t[0]!==r?(n=JSON.stringify(r),t[0]=r,t[1]=n):n=t[1];const l=f.useRef(n),w=f.useRef(r);let h;t[2]!==s||t[3]!==m||t[4]!==o?(h=()=>{const i=o.getItem(s);return i!==l.current&&(l.current=i,w.current=l.current?JSON.parse(l.current):m),w.current},t[2]=s,t[3]=m,t[4]=o,t[5]=h):h=t[5];const y=h;let g;t[6]!==s?(g=J(s),t[6]=s,t[7]=g):g=t[7];const I=g,c=f.useSyncExternalStore(I,y);let u;t[8]!==y||t[9]!==s||t[10]!==o?(u=i=>{const O=typeof i=="function"?i(y()):i;o.setItem(s,JSON.stringify(O)),window.dispatchEvent(new Event(`storage_${s}`))},t[8]=y,t[9]=s,t[10]=o,t[11]=u):u=t[11];const d=u;let v;return t[12]!==d||t[13]!==c?(v=[c,d],t[12]=d,t[13]=c,t[14]=v):v=t[14],v},W=(s,r,e)=>{let t="pending",o;const m=s.then(n=>{t="success",o=n},n=>{const l=n==null?void 0:n.response;(l==null?void 0:l.status)===404&&e?(t="error-404",o=n):(t="error",o=n)});return()=>{switch(t){case"pending":throw m;case"success":return o;case"error":if(o.code==="ERR_CANCELED")return null;throw o;case"error-404":throw new Error("404");default:throw new Error("Unknown status")}}},P={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},z=(s,r)=>{const e=a.compilerRuntimeExports.c(26),{loadOnInit:t,enabled:o,silent:m,nullStateBeforeLoad:n,nullStateOnFail:l,customApiUrl:w,customBearerToken:h,dataTransformer:y,errorBoundaryOn404:g}=r===void 0?P:r,I=t===void 0?P.loadOnInit:t,c=o===void 0?P.enabled:o,u=m===void 0?P.silent:m,d=n===void 0?P.nullStateBeforeLoad:n,v=l===void 0?P.nullStateOnFail:l;let p;e[0]!==g?(p=g?[404]:void 0,e[0]=g,e[1]=p):p=e[1];let i;e[2]!==w||e[3]!==h||e[4]!==u||e[5]!==p?(i={silent:u,customToken:h,differentBaseUrl:w,noToastOnStatus:p},e[2]=w,e[3]=h,e[4]=u,e[5]=p,e[6]=i):i=e[6];const O=a.useAxios(i),{startLoading:D,stopLoading:S}=f.useContext(a.LoadingContext),E=f.useRef(0),{isAuthenticated:B}=a.useAuth(),[R,N]=f.useState(null);let b;e[7]!==O||e[8]!==y||e[9]!==c||e[10]!==g||e[11]!==B||e[12]!==d||e[13]!==v||e[14]!==u||e[15]!==D||e[16]!==S||e[17]!==s?(b=async(x,G)=>{if(!B()||c===!1)return;!u&&D(`loadData-${s}-${G}`),d&&N(null);const U=O.get(s,{signal:x}).then(K=>y?y(K.data):K.data).finally(()=>!u&&S(`loadData-${s}-${G}`));N(W(U,v??!1,g??!1))},e[7]=O,e[8]=y,e[9]=c,e[10]=g,e[11]=B,e[12]=d,e[13]=v,e[14]=u,e[15]=D,e[16]=S,e[17]=s,e[18]=b):b=e[18];const T=b;let q,A;e[19]!==T||e[20]!==I?(A=()=>{if(I===!1)return;const x=new AbortController;return T(x.signal,E.current=E.current+1),()=>{x.abort()}},q=[T,I],e[19]=T,e[20]=I,e[21]=q,e[22]=A):(q=e[21],A=e[22]),f.useEffect(A,q);let L;return e[23]!==R||e[24]!==T?(L={data:R,setData:N,reloadData:T},e[23]=R,e[24]=T,e[25]=L):L=e[25],L},Z=()=>{const s=f.useRef({}).current;return f.useEffect(()=>{const r=document.createElement("div");return r.style.position="absolute",r.style.pointerEvents="none",r.style.top="0",r.style.width="100%",r.style.height="100%",s.elt=r,document.body.appendChild(r),()=>{document.body.removeChild(r)}},[s]),r=>(e,...t)=>{const o=r(e,...t);return e.draggableProps.style.position==="fixed"?H.createPortal(o,s.elt):o}},$={storageKey:"--tmp-scroll-save--",requiredHeight:100,retryInterval:50},j=(s,r)=>{const e=a.compilerRuntimeExports.c(18),{storageKey:t,requiredHeight:o,retryInterval:m}=r===void 0?$:r,n=t===void 0?$.storageKey:t,l=o===void 0?$.requiredHeight:o,w=m===void 0?$.retryInterval:m,[h,y]=f.useState(!1),g=f.useRef(null);let I;e[0]!==n?(I=()=>{const S=localStorage.getItem(n);return localStorage.removeItem(n),S===null?null:Number(S)},e[0]=n,e[1]=I):I=e[1];const c=I;let u;e[2]!==n?(u=S=>{localStorage.setItem(n,S)},e[2]=n,e[3]=u):u=e[3];const d=u;let v,p;e[4]!==h||e[5]!==l||e[6]!==c||e[7]!==w||e[8]!==s?(v=()=>{const S=window.setInterval(()=>{if(!h&&s.current!==null&&s.current.getBoundingClientRect().height>l){y(!0);const E=c();E!==null&&s.current.scrollTo({top:E}),window.clearInterval(S)}},w);return()=>{window.clearTimeout(S)}},p=[h,l,c,w,s],e[4]=h,e[5]=l,e[6]=c,e[7]=w,e[8]=s,e[9]=v,e[10]=p):(v=e[9],p=e[10]),f.useEffect(v,p);let i,O;e[11]!==d||e[12]!==s?(i=()=>{var E;const S=new AbortController;return(E=s.current)==null||E.addEventListener("scrollend",()=>{var B;g.current=((B=s.current)==null?void 0:B.scrollTop)??0,d((g.current??0).toString())},{signal:S.signal}),()=>S.abort()},O=[d,s],e[11]=d,e[12]=s,e[13]=i,e[14]=O):(i=e[13],O=e[14]),f.useEffect(i,O);let D;return e[15]!==c||e[16]!==d?(D={saveValue:d,retrieveValue:c},e[15]=c,e[16]=d,e[17]=D):D=e[17],D};exports.cancelToken=a.cancelToken;exports.useAuth=a.useAuth;exports.useAxios=a.useAxios;exports.useClickOutside=a.useClickOutside;exports.useClipboard=a.useClipboard;exports.useConfirm=a.useConfirm;exports.useFormControlType=a.useFormControlType;exports.useGetApiData=a.useGetApiData;exports.useKeyPress=a.useKeyPress;exports.useNotifications=a.useNotifications;exports.usePermissions=a.usePermissions;exports.usePrompt=a.usePrompt;exports.useWindowSize=a.useWindowSize;exports.useZodSchemaTypes=a.useZodSchemaTypes;exports.useLocalStorageState=V.useLocalStorageState;exports.useEmployeePhotoPath=F.useEmployeePhotoPath;exports.useIsFormDirty=F.useIsFormDirty;exports.useSearchQuery=F.useSearchQuery;exports.useSearchQueryState=F.useSearchQueryState;exports.useIsBrowserOnline=Q.useIsBrowserOnline;exports.useGetApiDataBound=z;exports.useGetDataBound=_;exports.usePersistentState=M;exports.useRenderDraggableInPortal=Z;exports.useScrollSave=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./DelegationContext-B1WXROG2.cjs"),P=require("./useIsFormDirty-76y8Dca-.cjs"),G=require("./useWindowSize-CLoDaEYh.cjs"),d=require("react"),K=require("./index-jmbq5h95.cjs"),Q=require("react-dom"),W=require("./useIsBrowserOnline-CREGrf2l.cjs"),T=new Map;function _(s,n){const e=v.useAxios({silent:!0,differentBaseUrl:n==null?void 0:n.customBaseUrl,customToken:n==null?void 0:n.customToken}),t=d.useRef(null);if(!T.has(s)){const f=e.get(s).then(r=>(T.set(s,{status:"success",data:r.data}),t.current=setTimeout(()=>{T.delete(s),t.current=null},1e4),r.data)).catch(r=>{throw T.set(s,{status:"error",error:r}),t.current=setTimeout(()=>{T.delete(s),t.current=null},1e3),r});throw T.set(s,{status:"pending",promise:f}),f}const o=T.get(s);if(o.status==="pending")throw o.promise;if(o.status==="error")throw o.error;return o.data}const z=s=>n=>(window.addEventListener(`storage_${s}`,n),()=>window.removeEventListener(`storage_${s}`,n)),J=(s,n,e)=>{const t=K.compilerRuntimeExports.c(15),o=e===void 0?localStorage:e,[f]=d.useState(n);let r;t[0]!==n?(r=JSON.stringify(n),t[0]=n,t[1]=r):r=t[1];const u=d.useRef(r),w=d.useRef(n);let S;t[2]!==s||t[3]!==f||t[4]!==o?(S=()=>{const l=o.getItem(s);return l!==u.current&&(u.current=l,w.current=u.current?JSON.parse(u.current):f),w.current},t[2]=s,t[3]=f,t[4]=o,t[5]=S):S=t[5];const y=S;let m;t[6]!==s?(m=z(s),t[6]=s,t[7]=m):m=t[7];const I=m,i=d.useSyncExternalStore(I,y);let a;t[8]!==y||t[9]!==s||t[10]!==o?(a=l=>{const O=typeof l=="function"?l(y()):l;o.setItem(s,JSON.stringify(O)),window.dispatchEvent(new Event(`storage_${s}`))},t[8]=y,t[9]=s,t[10]=o,t[11]=a):a=t[11];const c=a;let h;return t[12]!==c||t[13]!==i?(h=[i,c],t[12]=c,t[13]=i,t[14]=h):h=t[14],h},M=(s,n,e)=>{let t="pending",o;const f=s.then(r=>{t="success",o=r},r=>{const u=r==null?void 0:r.response;(u==null?void 0:u.status)===404&&e?(t="error-404",o=r):(t="error",o=r)});return()=>{switch(t){case"pending":throw f;case"success":return o;case"error":if(o.code==="ERR_CANCELED")return null;throw o;case"error-404":throw new Error("404");default:throw new Error("Unknown status")}}},b={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},Z=(s,n)=>{const e=K.compilerRuntimeExports.c(26),{loadOnInit:t,enabled:o,silent:f,nullStateBeforeLoad:r,nullStateOnFail:u,customApiUrl:w,customBearerToken:S,dataTransformer:y,errorBoundaryOn404:m}=n===void 0?b:n,I=t===void 0?b.loadOnInit:t,i=o===void 0?b.enabled:o,a=f===void 0?b.silent:f,c=r===void 0?b.nullStateBeforeLoad:r,h=u===void 0?b.nullStateOnFail:u;let p;e[0]!==m?(p=m?[404]:void 0,e[0]=m,e[1]=p):p=e[1];let l;e[2]!==w||e[3]!==S||e[4]!==a||e[5]!==p?(l={silent:a,customToken:S,differentBaseUrl:w,noToastOnStatus:p},e[2]=w,e[3]=S,e[4]=a,e[5]=p,e[6]=l):l=e[6];const O=v.useAxios(l),{startLoading:D,stopLoading:g}=d.useContext(v.LoadingContext),E=d.useRef(0),{isAuthenticated:B}=v.useAuth(),[R,N]=d.useState(null);let A;e[7]!==O||e[8]!==y||e[9]!==i||e[10]!==m||e[11]!==B||e[12]!==c||e[13]!==h||e[14]!==a||e[15]!==D||e[16]!==g||e[17]!==s?(A=async($,U)=>{if(!B()||i===!1)return;!a&&D(`loadData-${s}-${U}`),c&&N(null);const H=O.get(s,{signal:$}).then(V=>y?y(V.data):V.data).finally(()=>!a&&g(`loadData-${s}-${U}`));N(M(H,h??!1,m??!1))},e[7]=O,e[8]=y,e[9]=i,e[10]=m,e[11]=B,e[12]=c,e[13]=h,e[14]=a,e[15]=D,e[16]=g,e[17]=s,e[18]=A):A=e[18];const C=A;let x,L;e[19]!==C||e[20]!==I?(L=()=>{if(I===!1)return;const $=new AbortController;return C($.signal,E.current=E.current+1),()=>{$.abort()}},x=[C,I],e[19]=C,e[20]=I,e[21]=x,e[22]=L):(x=e[21],L=e[22]),d.useEffect(L,x);let q;return e[23]!==R||e[24]!==C?(q={data:R,setData:N,reloadData:C},e[23]=R,e[24]=C,e[25]=q):q=e[25],q},j=()=>{const s=d.useRef({}).current;return d.useEffect(()=>{const n=document.createElement("div");return n.style.position="absolute",n.style.pointerEvents="none",n.style.top="0",n.style.width="100%",n.style.height="100%",s.elt=n,document.body.appendChild(n),()=>{document.body.removeChild(n)}},[s]),n=>(e,...t)=>{const o=n(e,...t);return e.draggableProps.style.position==="fixed"?Q.createPortal(o,s.elt):o}},F={storageKey:"--tmp-scroll-save--",requiredHeight:100,retryInterval:50},X=(s,n)=>{const e=K.compilerRuntimeExports.c(18),{storageKey:t,requiredHeight:o,retryInterval:f}=n===void 0?F:n,r=t===void 0?F.storageKey:t,u=o===void 0?F.requiredHeight:o,w=f===void 0?F.retryInterval:f,[S,y]=d.useState(!1),m=d.useRef(null);let I;e[0]!==r?(I=()=>{const g=localStorage.getItem(r);return localStorage.removeItem(r),g===null?null:Number(g)},e[0]=r,e[1]=I):I=e[1];const i=I;let a;e[2]!==r?(a=g=>{localStorage.setItem(r,g)},e[2]=r,e[3]=a):a=e[3];const c=a;let h,p;e[4]!==S||e[5]!==u||e[6]!==i||e[7]!==w||e[8]!==s?(h=()=>{const g=window.setInterval(()=>{if(!S&&s.current!==null&&s.current.getBoundingClientRect().height>u){y(!0);const E=i();E!==null&&s.current.scrollTo({top:E}),window.clearInterval(g)}},w);return()=>{window.clearTimeout(g)}},p=[S,u,i,w,s],e[4]=S,e[5]=u,e[6]=i,e[7]=w,e[8]=s,e[9]=h,e[10]=p):(h=e[9],p=e[10]),d.useEffect(h,p);let l,O;e[11]!==c||e[12]!==s?(l=()=>{var E;const g=new AbortController;return(E=s.current)==null||E.addEventListener("scrollend",()=>{var B;m.current=((B=s.current)==null?void 0:B.scrollTop)??0,c((m.current??0).toString())},{signal:g.signal}),()=>g.abort()},O=[c,s],e[11]=c,e[12]=s,e[13]=l,e[14]=O):(l=e[13],O=e[14]),d.useEffect(l,O);let D;return e[15]!==i||e[16]!==c?(D={saveValue:c,retrieveValue:i},e[15]=i,e[16]=c,e[17]=D):D=e[17],D};exports.cancelToken=v.cancelToken;exports.useAuth=v.useAuth;exports.useAxios=v.useAxios;exports.useConfirm=v.useConfirm;exports.useGetApiData=v.useGetApiData;exports.useKeyPress=v.useKeyPress;exports.useLocalStorageState=v.useLocalStorageState;exports.useNotifications=v.useNotifications;exports.usePrompt=v.usePrompt;exports.useClipboard=P.useClipboard;exports.useEmployeePhotoPath=P.useEmployeePhotoPath;exports.useFormControlType=P.useFormControlType;exports.useIsFormDirty=P.useIsFormDirty;exports.useSearchQuery=P.useSearchQuery;exports.useSearchQueryState=P.useSearchQueryState;exports.useZodSchemaTypes=P.useZodSchemaTypes;exports.useClickOutside=G.useClickOutside;exports.usePermissions=G.usePermissions;exports.useWindowSize=G.useWindowSize;exports.useIsBrowserOnline=W.useIsBrowserOnline;exports.useGetApiDataBound=Z;exports.useGetDataBound=_;exports.usePersistentState=J;exports.useRenderDraggableInPortal=j;exports.useScrollSave=X;
package/dist/hooks.es.js CHANGED
@@ -1,36 +1,31 @@
1
- import { ai as _, c as K, ak as J, bj as Q } from "./nivo-bar-D6NJLYWS.js";
2
- import { ct as mt, aR as gt, cv as pt, ah as vt, cu as ht, ap as St, bd as wt, al as yt, bB as It, ag as bt, aD as Ot, aV as Tt } from "./nivo-bar-D6NJLYWS.js";
3
- import { useRef as E, useState as U, useSyncExternalStore as W, useContext as j, useEffect as F } from "react";
4
- import { u as Dt } from "./useLocalStorageState-DtBc-C2W.js";
5
- import { c as Bt, u as xt, a as Lt, b as $t } from "./useIsFormDirty-CZ4jNRFn.js";
6
- import "react/jsx-runtime";
7
- import "react-router";
8
- import { createPortal as z } from "react-dom";
9
- import "react-hook-form";
10
- import "react-flexmonster";
11
- import "@azure/msal-react";
12
- import "@azure/msal-browser";
13
- import { u as At } from "./useIsBrowserOnline-RAirIO4c.js";
1
+ import { u as _, L as J, i as Q } from "./DelegationContext-CCnk58PI.js";
2
+ import { l as ut, d as it, b as ct, h as dt, g as ft, e as mt, c as gt } from "./DelegationContext-CCnk58PI.js";
3
+ import { c as ht, f as St, u as pt, a as wt, d as yt, e as It, b as Ot } from "./useIsFormDirty-Ba5uhPH7.js";
4
+ import { b as Tt, a as Ct, u as Et } from "./useWindowSize-7W91GsJQ.js";
5
+ import { useRef as D, useState as U, useSyncExternalStore as W, useContext as z, useEffect as F } from "react";
6
+ import { c as V } from "./index-4IYT9u10.js";
7
+ import { createPortal as M } from "react-dom";
8
+ import { u as xt } from "./useIsBrowserOnline-RAirIO4c.js";
14
9
  const T = /* @__PURE__ */ new Map();
15
- function at(s, r) {
10
+ function et(s, n) {
16
11
  const t = _({
17
12
  silent: !0,
18
- differentBaseUrl: r == null ? void 0 : r.customBaseUrl,
19
- customToken: r == null ? void 0 : r.customToken
20
- }), e = E(null);
13
+ differentBaseUrl: n == null ? void 0 : n.customBaseUrl,
14
+ customToken: n == null ? void 0 : n.customToken
15
+ }), e = D(null);
21
16
  if (!T.has(s)) {
22
- const d = t.get(s).then((n) => (T.set(s, {
17
+ const d = t.get(s).then((r) => (T.set(s, {
23
18
  status: "success",
24
- data: n.data
19
+ data: r.data
25
20
  }), e.current = setTimeout(() => {
26
21
  T.delete(s), e.current = null;
27
- }, 1e4), n.data)).catch((n) => {
22
+ }, 1e4), r.data)).catch((r) => {
28
23
  throw T.set(s, {
29
24
  status: "error",
30
- error: n
25
+ error: r
31
26
  }), e.current = setTimeout(() => {
32
27
  T.delete(s), e.current = null;
33
- }, 1e3), n;
28
+ }, 1e3), r;
34
29
  });
35
30
  throw T.set(s, {
36
31
  status: "pending",
@@ -44,35 +39,35 @@ function at(s, r) {
44
39
  throw o.error;
45
40
  return o.data;
46
41
  }
47
- const M = (s) => (r) => (window.addEventListener(`storage_${s}`, r), () => window.removeEventListener(`storage_${s}`, r)), lt = (s, r, t) => {
48
- const e = K.c(15), o = t === void 0 ? localStorage : t, [d] = U(r);
49
- let n;
50
- e[0] !== r ? (n = JSON.stringify(r), e[0] = r, e[1] = n) : n = e[1];
51
- const l = E(n), h = E(r);
42
+ const Z = (s) => (n) => (window.addEventListener(`storage_${s}`, n), () => window.removeEventListener(`storage_${s}`, n)), st = (s, n, t) => {
43
+ const e = V.c(15), o = t === void 0 ? localStorage : t, [d] = U(n);
44
+ let r;
45
+ e[0] !== n ? (r = JSON.stringify(n), e[0] = n, e[1] = r) : r = e[1];
46
+ const l = D(r), S = D(n);
52
47
  let g;
53
48
  e[2] !== s || e[3] !== d || e[4] !== o ? (g = () => {
54
49
  const u = o.getItem(s);
55
- return u !== l.current && (l.current = u, h.current = l.current ? JSON.parse(l.current) : d), h.current;
50
+ return u !== l.current && (l.current = u, S.current = l.current ? JSON.parse(l.current) : d), S.current;
56
51
  }, e[2] = s, e[3] = d, e[4] = o, e[5] = g) : g = e[5];
57
- const S = g;
52
+ const p = g;
58
53
  let f;
59
- e[6] !== s ? (f = M(s), e[6] = s, e[7] = f) : f = e[7];
60
- const i = W(f, S);
54
+ e[6] !== s ? (f = Z(s), e[6] = s, e[7] = f) : f = e[7];
55
+ const i = W(f, p);
61
56
  let a;
62
- e[8] !== S || e[9] !== s || e[10] !== o ? (a = (u) => {
63
- const y = typeof u == "function" ? u(S()) : u;
57
+ e[8] !== p || e[9] !== s || e[10] !== o ? (a = (u) => {
58
+ const y = typeof u == "function" ? u(p()) : u;
64
59
  o.setItem(s, JSON.stringify(y)), window.dispatchEvent(new Event(`storage_${s}`));
65
- }, e[8] = S, e[9] = s, e[10] = o, e[11] = a) : a = e[11];
60
+ }, e[8] = p, e[9] = s, e[10] = o, e[11] = a) : a = e[11];
66
61
  const c = a;
67
- let p;
68
- return e[12] !== c || e[13] !== i ? (p = [i, c], e[12] = c, e[13] = i, e[14] = p) : p = e[14], p;
69
- }, R = (s, r, t) => {
62
+ let v;
63
+ return e[12] !== c || e[13] !== i ? (v = [i, c], e[12] = c, e[13] = i, e[14] = v) : v = e[14], v;
64
+ }, j = (s, n, t) => {
70
65
  let e = "pending", o;
71
- const d = s.then((n) => {
72
- e = "success", o = n;
73
- }, (n) => {
74
- const l = n == null ? void 0 : n.response;
75
- (l == null ? void 0 : l.status) === 404 && t ? (e = "error-404", o = n) : (e = "error", o = n);
66
+ const d = s.then((r) => {
67
+ e = "success", o = r;
68
+ }, (r) => {
69
+ const l = r == null ? void 0 : r.response;
70
+ (l == null ? void 0 : l.status) === 404 && t ? (e = "error-404", o = r) : (e = "error", o = r);
76
71
  });
77
72
  return () => {
78
73
  switch (e) {
@@ -89,117 +84,117 @@ const M = (s) => (r) => (window.addEventListener(`storage_${s}`, r), () => windo
89
84
  throw new Error("Unknown status");
90
85
  }
91
86
  };
92
- }, D = {
87
+ }, E = {
93
88
  loadOnInit: !0,
94
89
  silent: !1,
95
90
  enabled: !0,
96
91
  nullStateBeforeLoad: !0,
97
92
  nullStateOnFail: !1
98
- }, ut = (s, r) => {
99
- const t = K.c(26), {
93
+ }, nt = (s, n) => {
94
+ const t = V.c(26), {
100
95
  loadOnInit: e,
101
96
  enabled: o,
102
97
  silent: d,
103
- nullStateBeforeLoad: n,
98
+ nullStateBeforeLoad: r,
104
99
  nullStateOnFail: l,
105
- customApiUrl: h,
100
+ customApiUrl: S,
106
101
  customBearerToken: g,
107
- dataTransformer: S,
102
+ dataTransformer: p,
108
103
  errorBoundaryOn404: f
109
- } = r === void 0 ? D : r, w = e === void 0 ? D.loadOnInit : e, i = o === void 0 ? D.enabled : o, a = d === void 0 ? D.silent : d, c = n === void 0 ? D.nullStateBeforeLoad : n, p = l === void 0 ? D.nullStateOnFail : l;
110
- let v;
111
- t[0] !== f ? (v = f ? [404] : void 0, t[0] = f, t[1] = v) : v = t[1];
104
+ } = n === void 0 ? E : n, w = e === void 0 ? E.loadOnInit : e, i = o === void 0 ? E.enabled : o, a = d === void 0 ? E.silent : d, c = r === void 0 ? E.nullStateBeforeLoad : r, v = l === void 0 ? E.nullStateOnFail : l;
105
+ let h;
106
+ t[0] !== f ? (h = f ? [404] : void 0, t[0] = f, t[1] = h) : h = t[1];
112
107
  let u;
113
- t[2] !== h || t[3] !== g || t[4] !== a || t[5] !== v ? (u = {
108
+ t[2] !== S || t[3] !== g || t[4] !== a || t[5] !== h ? (u = {
114
109
  silent: a,
115
110
  customToken: g,
116
- differentBaseUrl: h,
117
- noToastOnStatus: v
118
- }, t[2] = h, t[3] = g, t[4] = a, t[5] = v, t[6] = u) : u = t[6];
111
+ differentBaseUrl: S,
112
+ noToastOnStatus: h
113
+ }, t[2] = S, t[3] = g, t[4] = a, t[5] = h, t[6] = u) : u = t[6];
119
114
  const y = _(u), {
120
115
  startLoading: I,
121
116
  stopLoading: m
122
- } = j(J), b = E(0), {
117
+ } = z(J), O = D(0), {
123
118
  isAuthenticated: C
124
- } = Q(), [N, V] = U(null);
125
- let B;
126
- t[7] !== y || t[8] !== S || t[9] !== i || t[10] !== f || t[11] !== C || t[12] !== c || t[13] !== p || t[14] !== a || t[15] !== I || t[16] !== m || t[17] !== s ? (B = async (P, q) => {
119
+ } = Q(), [N, K] = U(null);
120
+ let x;
121
+ t[7] !== y || t[8] !== p || t[9] !== i || t[10] !== f || t[11] !== C || t[12] !== c || t[13] !== v || t[14] !== a || t[15] !== I || t[16] !== m || t[17] !== s ? (x = async (P, q) => {
127
122
  if (!C() || i === !1)
128
123
  return;
129
- !a && I(`loadData-${s}-${q}`), c && V(null);
124
+ !a && I(`loadData-${s}-${q}`), c && K(null);
130
125
  const G = y.get(s, {
131
126
  signal: P
132
- }).then((H) => S ? S(H.data) : H.data).finally(() => !a && m(`loadData-${s}-${q}`));
133
- V(R(G, p ?? !1, f ?? !1));
134
- }, t[7] = y, t[8] = S, t[9] = i, t[10] = f, t[11] = C, t[12] = c, t[13] = p, t[14] = a, t[15] = I, t[16] = m, t[17] = s, t[18] = B) : B = t[18];
135
- const O = B;
136
- let x, L;
137
- t[19] !== O || t[20] !== w ? (L = () => {
127
+ }).then((H) => p ? p(H.data) : H.data).finally(() => !a && m(`loadData-${s}-${q}`));
128
+ K(j(G, v ?? !1, f ?? !1));
129
+ }, t[7] = y, t[8] = p, t[9] = i, t[10] = f, t[11] = C, t[12] = c, t[13] = v, t[14] = a, t[15] = I, t[16] = m, t[17] = s, t[18] = x) : x = t[18];
130
+ const b = x;
131
+ let B, L;
132
+ t[19] !== b || t[20] !== w ? (L = () => {
138
133
  if (w === !1)
139
134
  return;
140
135
  const P = new AbortController();
141
- return O(P.signal, b.current = b.current + 1), () => {
136
+ return b(P.signal, O.current = O.current + 1), () => {
142
137
  P.abort();
143
138
  };
144
- }, x = [O, w], t[19] = O, t[20] = w, t[21] = x, t[22] = L) : (x = t[21], L = t[22]), F(L, x);
139
+ }, B = [b, w], t[19] = b, t[20] = w, t[21] = B, t[22] = L) : (B = t[21], L = t[22]), F(L, B);
145
140
  let $;
146
- return t[23] !== N || t[24] !== O ? ($ = {
141
+ return t[23] !== N || t[24] !== b ? ($ = {
147
142
  data: N,
148
- setData: V,
149
- reloadData: O
150
- }, t[23] = N, t[24] = O, t[25] = $) : $ = t[25], $;
151
- }, it = () => {
152
- const s = E({}).current;
143
+ setData: K,
144
+ reloadData: b
145
+ }, t[23] = N, t[24] = b, t[25] = $) : $ = t[25], $;
146
+ }, rt = () => {
147
+ const s = D({}).current;
153
148
  return F(() => {
154
- const r = document.createElement("div");
155
- return r.style.position = "absolute", r.style.pointerEvents = "none", r.style.top = "0", r.style.width = "100%", r.style.height = "100%", s.elt = r, document.body.appendChild(r), () => {
156
- document.body.removeChild(r);
149
+ const n = document.createElement("div");
150
+ return n.style.position = "absolute", n.style.pointerEvents = "none", n.style.top = "0", n.style.width = "100%", n.style.height = "100%", s.elt = n, document.body.appendChild(n), () => {
151
+ document.body.removeChild(n);
157
152
  };
158
- }, [s]), (r) => (t, ...e) => {
159
- const o = r(t, ...e);
160
- return t.draggableProps.style.position === "fixed" ? z(o, s.elt) : o;
153
+ }, [s]), (n) => (t, ...e) => {
154
+ const o = n(t, ...e);
155
+ return t.draggableProps.style.position === "fixed" ? M(o, s.elt) : o;
161
156
  };
162
157
  }, A = {
163
158
  storageKey: "--tmp-scroll-save--",
164
159
  requiredHeight: 100,
165
160
  retryInterval: 50
166
- }, ct = (s, r) => {
167
- const t = K.c(18), {
161
+ }, ot = (s, n) => {
162
+ const t = V.c(18), {
168
163
  storageKey: e,
169
164
  requiredHeight: o,
170
165
  retryInterval: d
171
- } = r === void 0 ? A : r, n = e === void 0 ? A.storageKey : e, l = o === void 0 ? A.requiredHeight : o, h = d === void 0 ? A.retryInterval : d, [g, S] = U(!1), f = E(null);
166
+ } = n === void 0 ? A : n, r = e === void 0 ? A.storageKey : e, l = o === void 0 ? A.requiredHeight : o, S = d === void 0 ? A.retryInterval : d, [g, p] = U(!1), f = D(null);
172
167
  let w;
173
- t[0] !== n ? (w = () => {
174
- const m = localStorage.getItem(n);
175
- return localStorage.removeItem(n), m === null ? null : Number(m);
176
- }, t[0] = n, t[1] = w) : w = t[1];
168
+ t[0] !== r ? (w = () => {
169
+ const m = localStorage.getItem(r);
170
+ return localStorage.removeItem(r), m === null ? null : Number(m);
171
+ }, t[0] = r, t[1] = w) : w = t[1];
177
172
  const i = w;
178
173
  let a;
179
- t[2] !== n ? (a = (m) => {
180
- localStorage.setItem(n, m);
181
- }, t[2] = n, t[3] = a) : a = t[3];
174
+ t[2] !== r ? (a = (m) => {
175
+ localStorage.setItem(r, m);
176
+ }, t[2] = r, t[3] = a) : a = t[3];
182
177
  const c = a;
183
- let p, v;
184
- t[4] !== g || t[5] !== l || t[6] !== i || t[7] !== h || t[8] !== s ? (p = () => {
178
+ let v, h;
179
+ t[4] !== g || t[5] !== l || t[6] !== i || t[7] !== S || t[8] !== s ? (v = () => {
185
180
  const m = window.setInterval(() => {
186
181
  if (!g && s.current !== null && s.current.getBoundingClientRect().height > l) {
187
- S(!0);
188
- const b = i();
189
- b !== null && s.current.scrollTo({
190
- top: b
182
+ p(!0);
183
+ const O = i();
184
+ O !== null && s.current.scrollTo({
185
+ top: O
191
186
  }), window.clearInterval(m);
192
187
  }
193
- }, h);
188
+ }, S);
194
189
  return () => {
195
190
  window.clearTimeout(m);
196
191
  };
197
- }, v = [g, l, i, h, s], t[4] = g, t[5] = l, t[6] = i, t[7] = h, t[8] = s, t[9] = p, t[10] = v) : (p = t[9], v = t[10]), F(p, v);
192
+ }, h = [g, l, i, S, s], t[4] = g, t[5] = l, t[6] = i, t[7] = S, t[8] = s, t[9] = v, t[10] = h) : (v = t[9], h = t[10]), F(v, h);
198
193
  let u, y;
199
194
  t[11] !== c || t[12] !== s ? (u = () => {
200
- var b;
195
+ var O;
201
196
  const m = new AbortController();
202
- return (b = s.current) == null || b.addEventListener("scrollend", () => {
197
+ return (O = s.current) == null || O.addEventListener("scrollend", () => {
203
198
  var C;
204
199
  f.current = ((C = s.current) == null ? void 0 : C.scrollTop) ?? 0, c((f.current ?? 0).toString());
205
200
  }, {
@@ -213,29 +208,29 @@ const M = (s) => (r) => (window.addEventListener(`storage_${s}`, r), () => windo
213
208
  }, t[15] = i, t[16] = c, t[17] = I) : I = t[17], I;
214
209
  };
215
210
  export {
216
- mt as cancelToken,
211
+ ut as cancelToken,
217
212
  Q as useAuth,
218
213
  _ as useAxios,
219
- gt as useClickOutside,
220
- pt as useClipboard,
221
- vt as useConfirm,
222
- Bt as useEmployeePhotoPath,
223
- ht as useFormControlType,
224
- St as useGetApiData,
225
- ut as useGetApiDataBound,
226
- at as useGetDataBound,
227
- At as useIsBrowserOnline,
228
- xt as useIsFormDirty,
229
- wt as useKeyPress,
230
- Dt as useLocalStorageState,
231
- yt as useNotifications,
232
- It as usePermissions,
233
- lt as usePersistentState,
234
- bt as usePrompt,
235
- it as useRenderDraggableInPortal,
236
- ct as useScrollSave,
237
- Lt as useSearchQuery,
238
- $t as useSearchQueryState,
239
- Ot as useWindowSize,
240
- Tt as useZodSchemaTypes
214
+ Tt as useClickOutside,
215
+ ht as useClipboard,
216
+ it as useConfirm,
217
+ St as useEmployeePhotoPath,
218
+ pt as useFormControlType,
219
+ ct as useGetApiData,
220
+ nt as useGetApiDataBound,
221
+ et as useGetDataBound,
222
+ xt as useIsBrowserOnline,
223
+ wt as useIsFormDirty,
224
+ dt as useKeyPress,
225
+ ft as useLocalStorageState,
226
+ mt as useNotifications,
227
+ Ct as usePermissions,
228
+ st as usePersistentState,
229
+ gt as usePrompt,
230
+ rt as useRenderDraggableInPortal,
231
+ ot as useScrollSave,
232
+ yt as useSearchQuery,
233
+ It as useSearchQueryState,
234
+ Et as useWindowSize,
235
+ Ot as useZodSchemaTypes
241
236
  };
@@ -0,0 +1,95 @@
1
+ import f from "react";
2
+ var E = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
+ function _(t) {
4
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
5
+ }
6
+ var u = { exports: {} }, a = {};
7
+ /**
8
+ * @license React
9
+ * react-compiler-runtime.production.js
10
+ *
11
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+ var l;
17
+ function h() {
18
+ if (l) return a;
19
+ l = 1;
20
+ var t = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
21
+ return a.c = function(i) {
22
+ return t.H.useMemoCache(i);
23
+ }, a;
24
+ }
25
+ var s = {};
26
+ /**
27
+ * @license React
28
+ * react-compiler-runtime.development.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */
35
+ var p;
36
+ function R() {
37
+ return p || (p = 1, process.env.NODE_ENV !== "production" && function() {
38
+ var t = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
39
+ s.c = function(i) {
40
+ var n = t.H;
41
+ return n === null && console.error(
42
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
43
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
44
+ 2. You might be breaking the Rules of Hooks
45
+ 3. You might have more than one copy of React in the same app
46
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
47
+ ), n.useMemoCache(i);
48
+ };
49
+ }()), s;
50
+ }
51
+ process.env.NODE_ENV === "production" ? u.exports = h() : u.exports = R();
52
+ var b = u.exports, d = { exports: {} };
53
+ /*!
54
+ Copyright (c) 2018 Jed Watson.
55
+ Licensed under the MIT License (MIT), see
56
+ http://jedwatson.github.io/classnames
57
+ */
58
+ (function(t) {
59
+ (function() {
60
+ var i = {}.hasOwnProperty;
61
+ function n() {
62
+ for (var e = "", o = 0; o < arguments.length; o++) {
63
+ var r = arguments[o];
64
+ r && (e = c(e, m(r)));
65
+ }
66
+ return e;
67
+ }
68
+ function m(e) {
69
+ if (typeof e == "string" || typeof e == "number")
70
+ return e;
71
+ if (typeof e != "object")
72
+ return "";
73
+ if (Array.isArray(e))
74
+ return n.apply(null, e);
75
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
76
+ return e.toString();
77
+ var o = "";
78
+ for (var r in e)
79
+ i.call(e, r) && e[r] && (o = c(o, r));
80
+ return o;
81
+ }
82
+ function c(e, o) {
83
+ return o ? e ? e + " " + o : e + o : e;
84
+ }
85
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
86
+ })();
87
+ })(d);
88
+ var v = d.exports;
89
+ const O = /* @__PURE__ */ _(v);
90
+ export {
91
+ O as a,
92
+ E as b,
93
+ b as c,
94
+ _ as g
95
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";const f=require("react");var h=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var u={exports:{}},s={};/**
2
+ * @license React
3
+ * react-compiler-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var l;function R(){if(l)return s;l=1;var t=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return s.c=function(i){return t.H.useMemoCache(i)},s}var a={};/**
10
+ * @license React
11
+ * react-compiler-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var p;function v(){return p||(p=1,process.env.NODE_ENV!=="production"&&function(){var t=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;a.c=function(i){var n=t.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
18
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
19
+ 2. You might be breaking the Rules of Hooks
20
+ 3. You might have more than one copy of React in the same app
21
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n.useMemoCache(i)}}()),a}process.env.NODE_ENV==="production"?u.exports=R():u.exports=v();var N=u.exports,d={exports:{}};/*!
22
+ Copyright (c) 2018 Jed Watson.
23
+ Licensed under the MIT License (MIT), see
24
+ http://jedwatson.github.io/classnames
25
+ */(function(t){(function(){var i={}.hasOwnProperty;function n(){for(var e="",o=0;o<arguments.length;o++){var r=arguments[o];r&&(e=c(e,_(r)))}return e}function _(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e!="object")return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var r in e)i.call(e,r)&&e[r]&&(o=c(o,r));return o}function c(e,o){return o?e?e+" "+o:e+o:e}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(d);var E=d.exports;const b=m(E);exports.classNames=b;exports.commonjsGlobal=h;exports.compilerRuntimeExports=N;exports.getDefaultExportFromCjs=m;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./nivo-bar-SBWBmyeI.cjs"),U=require("react"),ne=require("react-router");require("react-hook-form");require("react-flexmonster");require("@azure/msal-react");require("@azure/msal-browser");require("react-dom");const oe="_side-menu-item_o72rm_1",ae="_disabled_o72rm_6",de="_hidden_o72rm_10",ce="_nav-button_o72rm_13",re="_child_o72rm_21",me="_text_o72rm_26",ue="_icon_o72rm_36",pe="_collapse-icon_o72rm_42",he="_collapsed_o72rm_52",xe="_collapse-icon-mini_o72rm_55",_e="_expanded_o72rm_86",fe="_children-container_o72rm_92",be="_visible_o72rm_100",ve="_children_o72rm_92",Ne="_mobile_o72rm_112",r={sideMenuItem:oe,disabled:ae,hidden:de,navButton:ce,child:re,text:me,icon:ue,collapseIcon:pe,collapsed:he,collapseIconMini:xe,expanded:_e,childrenContainer:fe,visible:be,children:ve,mobile:Ne},je=a=>{const e=i.compilerRuntimeExports.c(6),{item:u,menuExpanded:x,useTooltips:b,children:j}=a;if(u.tooltip&&!x&&b){let M;e[0]===Symbol.for("react.memo_cache_sentinel")?(M={show:1e3,hide:0},e[0]=M):M=e[0];let s;e[1]!==j?(s=n.jsx("div",{children:j}),e[1]=j,e[2]=s):s=e[2];let o;return e[3]!==u.tooltip||e[4]!==s?(o=n.jsx(i.SimpleTooltip,{text:u.tooltip,placement:"top",delay:M,children:s}),e[3]=u.tooltip,e[4]=s,e[5]=o):o=e[5],o}return j},ie=({item:a,menuExpanded:e,collapsed:u,onCollapse:x,currentPath:b,useHover:j,useTooltips:M,isMobile:s,disableMode:o})=>{var N,p,c,y;const[_,l]=U.useState(!1),[m]=b.split("?"),I=a.linkTo===m||((N=a.children)==null?void 0:N.some(t=>t.linkTo===m)),v=U.useRef(null);return i.useClickOutside([v],()=>u&&x()),n.jsxs("li",{ref:v,className:i.classNames("luminus-side-menu-item",r.sideMenuItem,{[r.mobile]:s},{[r.expanded]:e},{active:_||I},{open:u&&a.children},{[o==="disable"?r.disabled:r.hidden]:a.disabled||a.notPermitted||((p=a.children)==null?void 0:p.every(t=>t.notPermitted||t.disabled))},{[o==="disable"?"disabled":"hidden"]:a.disabled||a.notPermitted||((c=a.children)==null?void 0:c.every(t=>t.notPermitted||t.disabled))}),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[n.jsx(je,{item:a,menuExpanded:e,useTooltips:M,children:a.children?n.jsx(n.Fragment,{children:n.jsxs("button",{type:"button",className:i.classNames("nav-link",r.navButton),onClick:()=>{x()},children:[n.jsx("div",{className:i.classNames("icon",r.icon),children:a.icon}),!j&&!e&&n.jsx("div",{className:i.classNames("collapse-icon-mini rounded",r.collapseIconMini,{[r.collapsed]:u}),children:n.jsx(i.MdOutlineKeyboardArrowRight,{})}),e&&n.jsx("div",{className:i.classNames("text",r.text,"text-nowrap"),children:a.title}),e&&n.jsx("div",{className:i.classNames("collapse-icon",r.collapseIcon,{[r.collapsed]:u}),children:n.jsx(i.MdOutlineKeyboardArrowRight,{})})]})}):n.jsxs(ne.Link,{to:a.disabled||a.notPermitted?"/":a.linkTo??"/",className:i.classNames("nav-link",r.navButton),children:[n.jsx("div",{className:i.classNames("icon",r.icon),children:a.icon}),e&&n.jsx("div",{className:i.classNames("text",r.text,"text-nowrap"),children:a.title})]})}),n.jsx("div",{className:i.classNames("children-container",r.childrenContainer,{[r.visible]:u}),children:n.jsx("div",{className:i.classNames("shadow rounded children",r.children),children:(y=a.children)==null?void 0:y.map(t=>n.jsx(ne.Link,{to:t.disabled||t.notPermitted?"/":t.linkTo??"/",className:i.classNames("nav-link child rounded",r.navButton,r.child,{[o==="disable"?r.disabled:r.hidden]:t.disabled||t.notPermitted},{[o==="disable"?"disabled":"hidden"]:t.disabled||t.notPermitted}),onClick:x,children:n.jsx("div",{className:i.classNames("text",r.text,"text-nowrap"),children:t.title})},t.linkTo))})})]})},Me="_side-menu_2nic9_1",Pe="_sidebar-header_2nic9_15",ge="_side-menu-pin_2nic9_22",ye="_side-menu-shrinkable-margin_2nic9_27",ke="_on-mobile-not-expanded_2nic9_31",Ce="_side-menu-content_2nic9_34",Ie="_expand_2nic9_40",Be="_only-logo_2nic9_44",Se="_mobile_2nic9_47",we="_divider_2nic9_68",C={sideMenu:Me,sidebarHeader:Pe,sideMenuPin:ge,sideMenuShrinkableMargin:ye,onMobileNotExpanded:ke,sideMenuContent:Ce,expand:Ie,onlyLogo:Be,mobile:Se,divider:we},Re=a=>{const e=i.compilerRuntimeExports.c(101),{headerItem:u,searchItem:x,shortcutsItem:b,mainItems:j,secondaryItems:M,expanded:s,setExpanded:o,currentPath:_,useHover:l,useTooltips:m,disableMode:I,sideMenuPinned:v,toggleSideMenuPinned:N}=a,p=I===void 0?"disable":I,[c,y]=U.useState(-1),{checkUserHasPermissions:t}=i.usePermissions();let P;if(e[0]!==t||e[1]!==j){let d;e[3]!==t?(d=f=>{var g;return{...f,notPermitted:!t(f.permissions??[],"any"),children:(g=f.children)==null?void 0:g.map(z=>({...z,notPermitted:!t(z.permissions??[],"any"),disabled:f.disabled||z.disabled}))}},e[3]=t,e[4]=d):d=e[4],P=j.map(d),e[0]=t,e[1]=j,e[2]=P}else P=e[2];const B=P;let W;if(e[5]!==t||e[6]!==M){let d;e[8]!==t?(d=f=>{var g;return{...f,notPermitted:!t(f.permissions??[],"any"),children:(g=f.children)==null?void 0:g.map(z=>({...z,notPermitted:!t(z.permissions??[],"any")}))}},e[8]=t,e[9]=d):d=e[9],W=M.map(d),e[5]=t,e[6]=M,e[7]=W}else W=e[7];const Z=W;let D;e[10]!==c?(D=d=>{y(d===c?-1:d)},e[10]=c,e[11]=D):D=e[11];const k=D;let G,J;e[12]!==s?(G=()=>{s||y(-1)},J=[s],e[12]=s,e[13]=G,e[14]=J):(G=e[13],J=e[14]),U.useEffect(G,J);const te=U.useRef(null);let Q;e[15]===Symbol.for("react.memo_cache_sentinel")?(Q=[te],e[15]=Q):Q=e[15];let V;e[16]!==o?(V=()=>o(!1),e[16]=o,e[17]=V):V=e[17],i.useClickOutside(Q,V);const{isMobile:h}=i.useWindowSize();let S;e[18]!==s||e[19]!==h?(S=i.classNames("luminus-side-menu shadow",C.sideMenu,{[C.mobile]:h},{[C.expand]:s},{expand:s}),e[18]=s,e[19]=h,e[20]=S):S=e[20];let w,R;e[21]!==o||e[22]!==l?(w=()=>l&&o(!0),R=()=>l&&o(!1),e[21]=o,e[22]=l,e[23]=w,e[24]=R):(w=e[23],R=e[24]);let q;e[25]!==l?(q=i.classNames("sidebar-header",C.sidebarHeader,{[C.onlyLogo]:l}),e[25]=l,e[26]=q):q=e[26];const ee=l?void 0:"button";let T;e[27]!==s||e[28]!==o||e[29]!==l?(T=l?void 0:()=>o(!s),e[27]=s,e[28]=o,e[29]=l,e[30]=T):T=e[30];let E;e[31]!==s||e[32]!==u||e[33]!==h||e[34]!==v||e[35]!==N||e[36]!==l?(E=l?u:s?n.jsxs(n.Fragment,{children:[h?n.jsx(i.MdOutlineMenu,{}):n.jsx("div",{role:"button",onClick:d=>{d.stopPropagation(),N()},className:C.sideMenuPin,children:v?n.jsx(i.PiPushPinSlashBold,{}):n.jsx(i.PiPushPinBold,{})}),u]}):n.jsx(i.MdOutlineMenu,{}),e[31]=s,e[32]=u,e[33]=h,e[34]=v,e[35]=N,e[36]=l,e[37]=E):E=e[37];let O;e[38]!==q||e[39]!==ee||e[40]!==T||e[41]!==E?(O=n.jsx("div",{className:q,role:ee,onClick:T,children:E}),e[38]=q,e[39]=ee,e[40]=T,e[41]=E,e[42]=O):O=e[42];let L;e[43]!==s||e[44]!==x||e[45]!==b?(L=s&&(x||b)?n.jsxs("div",{className:"mb-3 d-flex flex-column gap-3",children:[b&&s?b:null,x&&s?x:null]}):null,e[43]=s,e[44]=x,e[45]=b,e[46]=L):L=e[46];const se=!s&&h;let $;e[47]!==se?($=i.classNames(C.sideMenuShrinkableMargin,{[C.onMobileNotExpanded]:se}),e[47]=se,e[48]=$):$=e[48];let H;e[49]!==$?(H=n.jsx("div",{className:$}),e[49]=$,e[50]=H):H=e[50];let A;if(e[51]!==c||e[52]!==_||e[53]!==p||e[54]!==s||e[55]!==h||e[56]!==B||e[57]!==k||e[58]!==l||e[59]!==m){let d;e[61]!==c||e[62]!==_||e[63]!==p||e[64]!==s||e[65]!==h||e[66]!==k||e[67]!==l||e[68]!==m?(d=(f,g)=>n.jsx(ie,{item:f,menuExpanded:s,collapsed:g===c,onCollapse:()=>k(g),currentPath:_,useHover:l,useTooltips:m,isMobile:h,disableMode:p},f.title),e[61]=c,e[62]=_,e[63]=p,e[64]=s,e[65]=h,e[66]=k,e[67]=l,e[68]=m,e[69]=d):d=e[69],A=B.map(d),e[51]=c,e[52]=_,e[53]=p,e[54]=s,e[55]=h,e[56]=B,e[57]=k,e[58]=l,e[59]=m,e[60]=A}else A=e[60];let X;e[70]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx("hr",{className:i.classNames("divider",C.divider)}),e[70]=X):X=e[70];let F;if(e[71]!==c||e[72]!==_||e[73]!==p||e[74]!==s||e[75]!==h||e[76]!==k||e[77]!==Z||e[78]!==l||e[79]!==m){let d;e[81]!==c||e[82]!==_||e[83]!==p||e[84]!==s||e[85]!==h||e[86]!==k||e[87]!==l||e[88]!==m?(d=(f,g)=>n.jsx(ie,{item:f,menuExpanded:s,collapsed:g===c,onCollapse:()=>k(g),currentPath:_,useHover:l,useTooltips:m,isMobile:h,disableMode:p},f.title),e[81]=c,e[82]=_,e[83]=p,e[84]=s,e[85]=h,e[86]=k,e[87]=l,e[88]=m,e[89]=d):d=e[89],F=Z.map(d),e[71]=c,e[72]=_,e[73]=p,e[74]=s,e[75]=h,e[76]=k,e[77]=Z,e[78]=l,e[79]=m,e[80]=F}else F=e[80];let K;e[90]!==A||e[91]!==F?(K=n.jsxs("ul",{className:C.sideMenuContent,children:[A,X,F]}),e[90]=A,e[91]=F,e[92]=K):K=e[92];let Y;return e[93]!==w||e[94]!==R||e[95]!==O||e[96]!==L||e[97]!==H||e[98]!==K||e[99]!==S?(Y=n.jsxs("section",{ref:te,className:S,onMouseEnter:w,onMouseLeave:R,children:[O,L,H,K]}),e[93]=w,e[94]=R,e[95]=O,e[96]=L,e[97]=H,e[98]=K,e[99]=S,e[100]=Y):Y=e[100],Y},qe="_top-bar_lnmq0_1",Te="_top-bar-brand_lnmq0_12",le={topBar:qe,topBarBrand:Te},Ee=a=>{const e=i.compilerRuntimeExports.c(23),{appName:u,leftOffset:x,leftContent:b,centerContent:j,rightContent:M,showOffline:s}=a;let o;e[0]!==s?(o=i.classNames("luminus-top-bar shadow",le.topBar,{offline:s}),e[0]=s,e[1]=o):o=e[1];const _=x?`calc(100% - ${x}px)`:void 0,l=x?`${x}px`:void 0;let m;e[2]!==_||e[3]!==l?(m={width:_,left:l},e[2]=_,e[3]=l,e[4]=m):m=e[4];let I;e[5]===Symbol.for("react.memo_cache_sentinel")?(I=i.classNames("luminus-top-bar-brand",le.topBarBrand),e[5]=I):I=e[5];let v;e[6]!==u?(v=n.jsx(ne.Link,{to:"/",className:I,children:u}),e[6]=u,e[7]=v):v=e[7];let N;e[8]!==b||e[9]!==v?(N=n.jsxs("div",{className:"col-4 d-flex gap-3 align-items-center",children:[v,b]}),e[8]=b,e[9]=v,e[10]=N):N=e[10];const p=j??null;let c;e[11]!==p?(c=n.jsx("div",{className:"col-4 d-flex align-items-center",children:p}),e[11]=p,e[12]=c):c=e[12];const y=M??null;let t;e[13]!==y?(t=n.jsx("div",{className:"col-4 d-flex justify-content-end align-items-center",children:y}),e[13]=y,e[14]=t):t=e[14];let P;e[15]!==t||e[16]!==N||e[17]!==c?(P=n.jsxs("div",{className:"w-100 row g-0",children:[N,c,t]}),e[15]=t,e[16]=N,e[17]=c,e[18]=P):P=e[18];let B;return e[19]!==o||e[20]!==P||e[21]!==m?(B=n.jsx("nav",{className:o,style:m,children:P}),e[19]=o,e[20]=P,e[21]=m,e[22]=B):B=e[22],B};exports.PageContainer=i.PageContainer;exports.SideContentBar=i.SideContentBar;exports.SideMenu=Re;exports.TopBar=Ee;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),r=require("./index-jmbq5h95.cjs"),Z=require("./useWindowSize-CLoDaEYh.cjs"),U=require("react"),ee=require("./UserContext-45ZxeQHB.cjs"),se=require("./Alert-BApdinGX.cjs"),le=require("react-router"),de=require("./SimpleTooltip-B00uLuVM.cjs"),re="_side-menu-item_o72rm_1",me="_disabled_o72rm_6",ue="_hidden_o72rm_10",pe="_nav-button_o72rm_13",xe="_child_o72rm_21",he="_text_o72rm_26",_e="_icon_o72rm_36",fe="_collapse-icon_o72rm_42",be="_collapsed_o72rm_52",ve="_collapse-icon-mini_o72rm_55",Ne="_expanded_o72rm_86",je="_children-container_o72rm_92",Me="_visible_o72rm_100",Pe="_children_o72rm_92",ge="_mobile_o72rm_112",d={sideMenuItem:re,disabled:me,hidden:ue,navButton:pe,child:xe,text:he,icon:_e,collapseIcon:fe,collapsed:be,collapseIconMini:ve,expanded:Ne,childrenContainer:je,visible:Me,children:Pe,mobile:ge},ye=o=>{const e=r.compilerRuntimeExports.c(6),{item:u,menuExpanded:h,useTooltips:b,children:j}=o;if(u.tooltip&&!h&&b){let M;e[0]===Symbol.for("react.memo_cache_sentinel")?(M={show:1e3,hide:0},e[0]=M):M=e[0];let s;e[1]!==j?(s=n.jsx("div",{children:j}),e[1]=j,e[2]=s):s=e[2];let l;return e[3]!==u.tooltip||e[4]!==s?(l=n.jsx(de.SimpleTooltip,{text:u.tooltip,placement:"top",delay:M,children:s}),e[3]=u.tooltip,e[4]=s,e[5]=l):l=e[5],l}return j},ae=({item:o,menuExpanded:e,collapsed:u,onCollapse:h,currentPath:b,useHover:j,useTooltips:M,isMobile:s,disableMode:l})=>{var N,p,c,y;const[_,i]=U.useState(!1),[m]=b.split("?"),I=o.linkTo===m||((N=o.children)==null?void 0:N.some(t=>t.linkTo===m)),v=U.useRef(null);return Z.useClickOutside([v],()=>u&&h()),n.jsxs("li",{ref:v,className:r.classNames("luminus-side-menu-item",d.sideMenuItem,{[d.mobile]:s},{[d.expanded]:e},{active:_||I},{open:u&&o.children},{[l==="disable"?d.disabled:d.hidden]:o.disabled||o.notPermitted||((p=o.children)==null?void 0:p.every(t=>t.notPermitted||t.disabled))},{[l==="disable"?"disabled":"hidden"]:o.disabled||o.notPermitted||((c=o.children)==null?void 0:c.every(t=>t.notPermitted||t.disabled))}),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[n.jsx(ye,{item:o,menuExpanded:e,useTooltips:M,children:o.children?n.jsx(n.Fragment,{children:n.jsxs("button",{type:"button",className:r.classNames("nav-link",d.navButton),onClick:()=>{h()},children:[n.jsx("div",{className:r.classNames("icon",d.icon),children:o.icon}),!j&&!e&&n.jsx("div",{className:r.classNames("collapse-icon-mini rounded",d.collapseIconMini,{[d.collapsed]:u}),children:n.jsx(ee.MdOutlineKeyboardArrowRight,{})}),e&&n.jsx("div",{className:r.classNames("text",d.text,"text-nowrap"),children:o.title}),e&&n.jsx("div",{className:r.classNames("collapse-icon",d.collapseIcon,{[d.collapsed]:u}),children:n.jsx(ee.MdOutlineKeyboardArrowRight,{})})]})}):n.jsxs(le.Link,{to:o.disabled||o.notPermitted?"/":o.linkTo??"/",className:r.classNames("nav-link",d.navButton),children:[n.jsx("div",{className:r.classNames("icon",d.icon),children:o.icon}),e&&n.jsx("div",{className:r.classNames("text",d.text,"text-nowrap"),children:o.title})]})}),n.jsx("div",{className:r.classNames("children-container",d.childrenContainer,{[d.visible]:u}),children:n.jsx("div",{className:r.classNames("shadow rounded children",d.children),children:(y=o.children)==null?void 0:y.map(t=>n.jsx(le.Link,{to:t.disabled||t.notPermitted?"/":t.linkTo??"/",className:r.classNames("nav-link child rounded",d.navButton,d.child,{[l==="disable"?d.disabled:d.hidden]:t.disabled||t.notPermitted},{[l==="disable"?"disabled":"hidden"]:t.disabled||t.notPermitted}),onClick:h,children:n.jsx("div",{className:r.classNames("text",d.text,"text-nowrap"),children:t.title})},t.linkTo))})})]})},Ce="_side-menu_2nic9_1",ke="_sidebar-header_2nic9_15",Ie="_side-menu-pin_2nic9_22",Se="_side-menu-shrinkable-margin_2nic9_27",Be="_on-mobile-not-expanded_2nic9_31",we="_side-menu-content_2nic9_34",Re="_expand_2nic9_40",Te="_only-logo_2nic9_44",qe="_mobile_2nic9_47",Ee="_divider_2nic9_68",k={sideMenu:Ce,sidebarHeader:ke,sideMenuPin:Ie,sideMenuShrinkableMargin:Se,onMobileNotExpanded:Be,sideMenuContent:we,expand:Re,onlyLogo:Te,mobile:qe,divider:Ee},Oe=o=>{const e=r.compilerRuntimeExports.c(101),{headerItem:u,searchItem:h,shortcutsItem:b,mainItems:j,secondaryItems:M,expanded:s,setExpanded:l,currentPath:_,useHover:i,useTooltips:m,disableMode:I,sideMenuPinned:v,toggleSideMenuPinned:N}=o,p=I===void 0?"disable":I,[c,y]=U.useState(-1),{checkUserHasPermissions:t}=Z.usePermissions();let P;if(e[0]!==t||e[1]!==j){let a;e[3]!==t?(a=f=>{var g;return{...f,notPermitted:!t(f.permissions??[],"any"),children:(g=f.children)==null?void 0:g.map(K=>({...K,notPermitted:!t(K.permissions??[],"any"),disabled:f.disabled||K.disabled}))}},e[3]=t,e[4]=a):a=e[4],P=j.map(a),e[0]=t,e[1]=j,e[2]=P}else P=e[2];const S=P;let W;if(e[5]!==t||e[6]!==M){let a;e[8]!==t?(a=f=>{var g;return{...f,notPermitted:!t(f.permissions??[],"any"),children:(g=f.children)==null?void 0:g.map(K=>({...K,notPermitted:!t(K.permissions??[],"any")}))}},e[8]=t,e[9]=a):a=e[9],W=M.map(a),e[5]=t,e[6]=M,e[7]=W}else W=e[7];const ne=W;let D;e[10]!==c?(D=a=>{y(a===c?-1:a)},e[10]=c,e[11]=D):D=e[11];const C=D;let G,J;e[12]!==s?(G=()=>{s||y(-1)},J=[s],e[12]=s,e[13]=G,e[14]=J):(G=e[13],J=e[14]),U.useEffect(G,J);const oe=U.useRef(null);let Q;e[15]===Symbol.for("react.memo_cache_sentinel")?(Q=[oe],e[15]=Q):Q=e[15];let V;e[16]!==l?(V=()=>l(!1),e[16]=l,e[17]=V):V=e[17],Z.useClickOutside(Q,V);const{isMobile:x}=Z.useWindowSize();let B;e[18]!==s||e[19]!==x?(B=r.classNames("luminus-side-menu shadow",k.sideMenu,{[k.mobile]:x},{[k.expand]:s},{expand:s}),e[18]=s,e[19]=x,e[20]=B):B=e[20];let w,R;e[21]!==l||e[22]!==i?(w=()=>i&&l(!0),R=()=>i&&l(!1),e[21]=l,e[22]=i,e[23]=w,e[24]=R):(w=e[23],R=e[24]);let T;e[25]!==i?(T=r.classNames("sidebar-header",k.sidebarHeader,{[k.onlyLogo]:i}),e[25]=i,e[26]=T):T=e[26];const te=i?void 0:"button";let q;e[27]!==s||e[28]!==l||e[29]!==i?(q=i?void 0:()=>l(!s),e[27]=s,e[28]=l,e[29]=i,e[30]=q):q=e[30];let E;e[31]!==s||e[32]!==u||e[33]!==x||e[34]!==v||e[35]!==N||e[36]!==i?(E=i?u:s?n.jsxs(n.Fragment,{children:[x?n.jsx(ee.MdOutlineMenu,{}):n.jsx("div",{role:"button",onClick:a=>{a.stopPropagation(),N()},className:k.sideMenuPin,children:v?n.jsx(se.PiPushPinSlashBold,{}):n.jsx(se.PiPushPinBold,{})}),u]}):n.jsx(ee.MdOutlineMenu,{}),e[31]=s,e[32]=u,e[33]=x,e[34]=v,e[35]=N,e[36]=i,e[37]=E):E=e[37];let O;e[38]!==T||e[39]!==te||e[40]!==q||e[41]!==E?(O=n.jsx("div",{className:T,role:te,onClick:q,children:E}),e[38]=T,e[39]=te,e[40]=q,e[41]=E,e[42]=O):O=e[42];let L;e[43]!==s||e[44]!==h||e[45]!==b?(L=s&&(h||b)?n.jsxs("div",{className:"mb-3 d-flex flex-column gap-3",children:[b&&s?b:null,h&&s?h:null]}):null,e[43]=s,e[44]=h,e[45]=b,e[46]=L):L=e[46];const ie=!s&&x;let $;e[47]!==ie?($=r.classNames(k.sideMenuShrinkableMargin,{[k.onMobileNotExpanded]:ie}),e[47]=ie,e[48]=$):$=e[48];let H;e[49]!==$?(H=n.jsx("div",{className:$}),e[49]=$,e[50]=H):H=e[50];let A;if(e[51]!==c||e[52]!==_||e[53]!==p||e[54]!==s||e[55]!==x||e[56]!==S||e[57]!==C||e[58]!==i||e[59]!==m){let a;e[61]!==c||e[62]!==_||e[63]!==p||e[64]!==s||e[65]!==x||e[66]!==C||e[67]!==i||e[68]!==m?(a=(f,g)=>n.jsx(ae,{item:f,menuExpanded:s,collapsed:g===c,onCollapse:()=>C(g),currentPath:_,useHover:i,useTooltips:m,isMobile:x,disableMode:p},f.title),e[61]=c,e[62]=_,e[63]=p,e[64]=s,e[65]=x,e[66]=C,e[67]=i,e[68]=m,e[69]=a):a=e[69],A=S.map(a),e[51]=c,e[52]=_,e[53]=p,e[54]=s,e[55]=x,e[56]=S,e[57]=C,e[58]=i,e[59]=m,e[60]=A}else A=e[60];let X;e[70]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx("hr",{className:r.classNames("divider",k.divider)}),e[70]=X):X=e[70];let z;if(e[71]!==c||e[72]!==_||e[73]!==p||e[74]!==s||e[75]!==x||e[76]!==C||e[77]!==ne||e[78]!==i||e[79]!==m){let a;e[81]!==c||e[82]!==_||e[83]!==p||e[84]!==s||e[85]!==x||e[86]!==C||e[87]!==i||e[88]!==m?(a=(f,g)=>n.jsx(ae,{item:f,menuExpanded:s,collapsed:g===c,onCollapse:()=>C(g),currentPath:_,useHover:i,useTooltips:m,isMobile:x,disableMode:p},f.title),e[81]=c,e[82]=_,e[83]=p,e[84]=s,e[85]=x,e[86]=C,e[87]=i,e[88]=m,e[89]=a):a=e[89],z=ne.map(a),e[71]=c,e[72]=_,e[73]=p,e[74]=s,e[75]=x,e[76]=C,e[77]=ne,e[78]=i,e[79]=m,e[80]=z}else z=e[80];let F;e[90]!==A||e[91]!==z?(F=n.jsxs("ul",{className:k.sideMenuContent,children:[A,X,z]}),e[90]=A,e[91]=z,e[92]=F):F=e[92];let Y;return e[93]!==w||e[94]!==R||e[95]!==O||e[96]!==L||e[97]!==H||e[98]!==F||e[99]!==B?(Y=n.jsxs("section",{ref:oe,className:B,onMouseEnter:w,onMouseLeave:R,children:[O,L,H,F]}),e[93]=w,e[94]=R,e[95]=O,e[96]=L,e[97]=H,e[98]=F,e[99]=B,e[100]=Y):Y=e[100],Y},Le="_top-bar_lnmq0_1",$e="_top-bar-brand_lnmq0_12",ce={topBar:Le,topBarBrand:$e},He=o=>{const e=r.compilerRuntimeExports.c(23),{appName:u,leftOffset:h,leftContent:b,centerContent:j,rightContent:M,showOffline:s}=o;let l;e[0]!==s?(l=r.classNames("luminus-top-bar shadow",ce.topBar,{offline:s}),e[0]=s,e[1]=l):l=e[1];const _=h?`calc(100% - ${h}px)`:void 0,i=h?`${h}px`:void 0;let m;e[2]!==_||e[3]!==i?(m={width:_,left:i},e[2]=_,e[3]=i,e[4]=m):m=e[4];let I;e[5]===Symbol.for("react.memo_cache_sentinel")?(I=r.classNames("luminus-top-bar-brand",ce.topBarBrand),e[5]=I):I=e[5];let v;e[6]!==u?(v=n.jsx(le.Link,{to:"/",className:I,children:u}),e[6]=u,e[7]=v):v=e[7];let N;e[8]!==b||e[9]!==v?(N=n.jsxs("div",{className:"col-4 d-flex gap-3 align-items-center",children:[v,b]}),e[8]=b,e[9]=v,e[10]=N):N=e[10];const p=j??null;let c;e[11]!==p?(c=n.jsx("div",{className:"col-4 d-flex align-items-center",children:p}),e[11]=p,e[12]=c):c=e[12];const y=M??null;let t;e[13]!==y?(t=n.jsx("div",{className:"col-4 d-flex justify-content-end align-items-center",children:y}),e[13]=y,e[14]=t):t=e[14];let P;e[15]!==t||e[16]!==N||e[17]!==c?(P=n.jsxs("div",{className:"w-100 row g-0",children:[N,c,t]}),e[15]=t,e[16]=N,e[17]=c,e[18]=P):P=e[18];let S;return e[19]!==l||e[20]!==P||e[21]!==m?(S=n.jsx("nav",{className:l,style:m,children:P}),e[19]=l,e[20]=P,e[21]=m,e[22]=S):S=e[22],S};exports.PageContainer=se.PageContainer;exports.SideContentBar=se.SideContentBar;exports.SideMenu=Oe;exports.TopBar=He;