react-luminus-components 2.0.4-table → 2.0.5-beta.r19-1
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/README.md +349 -349
- package/dist/.vite/manifest.json +52 -46
- package/dist/FormDisabledProvider-BGEKOIzq.cjs +1 -0
- package/dist/FormDisabledProvider-DLOuFqTN.js +51 -0
- package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +6 -3
- package/dist/components/Documents/components/DocumentsModals/components/CreateFolderModal/hooks/useDocCreateFolderForm.d.ts +4 -1
- package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/hooks/useEditFileForm.d.ts +6 -1
- package/dist/components/Documents/hooks/useDocumentsReducer.d.ts +1 -1
- package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +6 -3
- package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +3 -1
- package/dist/components/Flexmonster/Flexmonster.d.ts +1 -1
- package/dist/components/Flexmonster/hooks/useReportVersionApi.d.ts +1 -1
- package/dist/components/Flexmonster/utils/flexMonsterUtils.d.ts +1 -1
- package/dist/components/HookForm/MiniDetailWrapper/MiniDetailWrapper.d.ts +1 -1
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +4 -17
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +7 -38
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +8 -38
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +8 -38
- package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +3 -3
- package/dist/components/NotifCenter/Actions/components/HistoryTable/NotificationHistoryTable.d.ts +1 -1
- package/dist/components/ResponsiveContextDropdown/components/ResponsiveContextDropdownItem/ResponsiveContextDropdownItem.d.ts +1 -1
- package/dist/components/ResponsiveContextDropdown/hooks/useReponsiveContextDropdownHelpers.d.ts +2 -2
- package/dist/components/ResponsiveContextDropdown/utils/responsiveContextDropdownUtils.d.ts +1 -1
- package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +2 -2
- package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +1 -1
- package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +1 -1
- package/dist/components/common/ColumnResizer/ColumnResizer.d.ts +1 -1
- package/dist/components/common/DisabledRowLabelLink/DisabledRowLabelLink.d.ts +1 -1
- package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +7 -3
- package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +3 -1
- package/dist/components/common/HomeDashboard/comps/HomeDashboardWidget/HomeDashboardWidget.d.ts +15 -0
- package/dist/components/common/LineChart/comps/LineChartTooltip/LineChartTooltip.d.ts +2 -2
- package/dist/components/common/PermissionsSubstitute/Detail/hooks/useSubstDetailForm.d.ts +8 -1
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/PhotoPreviews.d.ts +15 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/PhotoPreview.d.ts +14 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/PreviewShadow/PreviewShadow.d.ts +5 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/index.d.ts +1 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/index.d.ts +1 -0
- package/dist/components/common/PhotoLightbox/comps/index.d.ts +1 -0
- package/dist/components/common/QrCode/QrCode.d.ts +1 -1
- package/dist/components/common/RouteLink/RouteLink.d.ts +1 -1
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +1 -1
- package/dist/components/common/index.d.ts +0 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +542 -941
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAxios/useAxios.d.ts +5 -2
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -1
- package/dist/hooks/useGetApiDataBound/useGetApiDataBound.d.ts +3 -0
- package/dist/hooks/useGetDataBound/useGetDataBound.d.ts +4 -2
- package/dist/hooks/useIsFormDirty/useIsFormDirty.d.ts +7 -0
- package/dist/hooks/useScrollSave/useScrollSave.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +206 -136
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +278 -142
- package/dist/{localStorageUtils-DdeuyghB.js → localStorageUtils-CZ4HDRzi.js} +18 -8
- package/dist/localStorageUtils-CkZslzIU.cjs +1 -0
- package/dist/main.cjs.js +22 -184
- package/dist/main.es.js +11317 -11418
- package/dist/models/bntTable/IBnfTableDefColumn.d.ts +40 -0
- package/dist/models/prop-types/InputContainerProps.d.ts +4 -12
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +1 -1
- package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +4 -2
- package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +1 -1
- package/dist/models/prop-types/InputProps/TextInputProps.d.ts +1 -1
- package/dist/models/ui/notifications/NotificationHistoryTableModel.d.ts +6 -0
- package/dist/nivo-bar-BuQvk7Aq.cjs +326 -0
- package/dist/nivo-bar-W-IB9CF6.js +41891 -0
- package/dist/style.css +1 -1
- package/dist/useIsFormDirty-B4keXaXH.js +123 -0
- package/dist/useIsFormDirty-CNKHbm_I.cjs +1 -0
- package/dist/useLocalStorageState-CMAthsbd.js +95 -0
- package/dist/useLocalStorageState-f6nawg6B.cjs +1 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/route/apiPathUtils.d.ts +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +133 -159
- package/dist/variables.scss +165 -165
- package/package.json +128 -123
- package/dist/FormDisabledProvider-1MOB6N34.cjs +0 -1
- package/dist/FormDisabledProvider-CHZ2m_zJ.js +0 -40
- package/dist/ShortcutLinksContext-DEirK-v9.js +0 -39884
- package/dist/ShortcutLinksContext-DLi4B8z5.cjs +0 -334
- package/dist/components/NotifCenter/Actions/types/NotificationHistoryTableModel.d.ts +0 -5
- package/dist/components/common/StrictModeDroppable/StrictModeDroppable.d.ts +0 -5
- package/dist/localStorageUtils-89Gfn6XS.cjs +0 -1
- package/dist/useLocalStorageState-B-CRodSS.cjs +0 -1
- package/dist/useLocalStorageState-BPYqQMTu.js +0 -78
- package/dist/useRenderDraggableInPortal-D0OLp7Qb.js +0 -78
- package/dist/useRenderDraggableInPortal-QPCaw-E_.cjs +0 -1
package/dist/hooks/index.d.ts
CHANGED
|
@@ -20,3 +20,4 @@ export { default as useGetApiDataBound } from './useGetApiDataBound/useGetApiDat
|
|
|
20
20
|
export { default as useWindowSize } from './useWindowSize/useWindowSize';
|
|
21
21
|
export { default as useRenderDraggableInPortal } from './useRenderDraggableInPortal/useRenderDraggableInPortal';
|
|
22
22
|
export { default as useScrollSave } from './useScrollSave/useScrollSave';
|
|
23
|
+
export { default as useIsFormDirty } from './useIsFormDirty/useIsFormDirty';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { CancelTokenStatic } from 'axios';
|
|
1
|
+
import { AxiosInstance, CancelTokenStatic } from 'axios';
|
|
2
2
|
|
|
3
3
|
export declare const cancelToken: CancelTokenStatic;
|
|
4
|
+
type AxiosInstanceExtended = AxiosInstance & {
|
|
5
|
+
interceptorsUsed: boolean;
|
|
6
|
+
};
|
|
4
7
|
type Config = {
|
|
5
8
|
authenticated?: boolean;
|
|
6
9
|
differentBaseUrl?: string;
|
|
@@ -9,5 +12,5 @@ type Config = {
|
|
|
9
12
|
ignoreDelegation?: boolean;
|
|
10
13
|
noToastOnStatus?: number[];
|
|
11
14
|
};
|
|
12
|
-
export declare const useAxios: (useAxiosConfig?: Config) =>
|
|
15
|
+
export declare const useAxios: (useAxiosConfig?: Config) => AxiosInstanceExtended;
|
|
13
16
|
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { UseGetApiDataOptions } from '../../models/index';
|
|
2
2
|
import { GenericAbortSignal } from 'axios';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use useGetDataBound instead for simple data fetching within Suspense boundary or useGetApiData for more complex data fetching
|
|
6
|
+
*/
|
|
4
7
|
declare const useGetApiDataBound: <T>(uri: string, { loadOnInit, enabled, silent, nullStateBeforeLoad, nullStateOnFail, customApiUrl, customBearerToken, dataTransformer, errorBoundaryOn404, }?: UseGetApiDataOptions<T>) => {
|
|
5
8
|
data: T | null;
|
|
6
9
|
setData: import('react').Dispatch<import('react').SetStateAction<T | null>>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type UseGetDataBoundOptions = {
|
|
2
|
+
customBaseUrl?: string;
|
|
3
|
+
customToken?: string;
|
|
4
|
+
};
|
|
3
5
|
declare function useGetDataBound<T>(url: string, options?: UseGetDataBoundOptions): T | null;
|
|
4
6
|
export default useGetDataBound;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Control, FieldValues } from '../../../node_modules/react-hook-form';
|
|
2
|
+
|
|
3
|
+
type Props<TFieldValues extends FieldValues = FieldValues, TTransformedValues = TFieldValues> = {
|
|
4
|
+
control?: Control<TFieldValues, any, TTransformedValues>;
|
|
5
|
+
};
|
|
6
|
+
declare const useIsFormDirty: <TFieldValues extends FieldValues = FieldValues, TTransformedValues = TFieldValues>({ control }?: Props<TFieldValues, TTransformedValues>) => boolean;
|
|
7
|
+
export default useIsFormDirty;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as UseScrollSaveOptions } from '../../models/types/UseScrollSaveOptions';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
3
|
|
|
4
|
-
declare const useScrollSave: (scrollableRef: RefObject<HTMLDivElement>, { storageKey, requiredHeight, retryInterval, }?: UseScrollSaveOptions) => {
|
|
4
|
+
declare const useScrollSave: (scrollableRef: RefObject<HTMLDivElement | null>, { storageKey, requiredHeight, retryInterval, }?: UseScrollSaveOptions) => {
|
|
5
5
|
saveValue: (newItem: string) => void;
|
|
6
6
|
retrieveValue: () => number | null;
|
|
7
7
|
};
|
package/dist/hooks.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./nivo-bar-BuQvk7Aq.cjs"),G=require("./useLocalStorageState-f6nawg6B.cjs"),d=require("react"),F=require("./useIsFormDirty-CNKHbm_I.cjs");require("react/jsx-runtime");require("react-router");const _=require("react-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");const C=new Map;function H(t,r){const e=a.useAxios({silent:!0,differentBaseUrl:r==null?void 0:r.customBaseUrl,customToken:r==null?void 0:r.customToken});console.log("axios.interceptorsUsed",e.interceptorsUsed);const s=d.useRef(null);if(!e.interceptorsUsed)return null;if(console.log("cache",C),!C.has(t)){const f=e.get(t).then(n=>(C.set(t,{status:"success",data:n.data}),s.current=setTimeout(()=>{C.delete(t),s.current=null},1e4),n.data)).catch(n=>{throw C.set(t,{status:"error",error:n}),s.current=setTimeout(()=>{C.delete(t),s.current=null},1e3),n});throw C.set(t,{status:"pending"}),f}const o=C.get(t);if(console.log("cached",o),o.status==="pending")throw e.get(t);if(o.status==="error")throw o.error;return o.data}const Q=t=>r=>(window.addEventListener(`storage_${t}`,r),()=>window.removeEventListener(`storage_${t}`,r)),J=(t,r,e)=>{const s=a.compilerRuntimeExports.c(14),o=e===void 0?localStorage:e,[f]=d.useState(r);let n;s[0]!==r?(n=JSON.stringify(r),s[0]=r,s[1]=n):n=s[1];const l=d.useRef(n),w=d.useRef(r);let h;s[2]!==t||s[3]!==f||s[4]!==o?(h=()=>{const m=o.getItem(t);return m!==l.current&&(l.current=m,w.current=l.current?JSON.parse(l.current):f),w.current},s[2]=t,s[3]=f,s[4]=o,s[5]=h):h=s[5];const D=h;let g;s[6]!==t?(g=Q(t),s[6]=t,s[7]=g):g=s[7];const y=g,i=d.useSyncExternalStore(y,D);let u;s[8]!==t||s[9]!==o?(u=m=>{o.setItem(t,JSON.stringify(m)),window.dispatchEvent(new Event(`storage_${t}`))},s[8]=t,s[9]=o,s[10]=u):u=s[10];const c=u;let p;return s[11]!==c||s[12]!==i?(p=[i,c],s[11]=c,s[12]=i,s[13]=p):p=s[13],p},M=(t,r,e)=>{let s="pending",o;const f=t.then(n=>{s="success",o=n},n=>{const l=n==null?void 0:n.response;(l==null?void 0:l.status)===404&&e?(s="error-404",o=n):(s="error",o=n)});return()=>{switch(s){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},W=(t,r)=>{const e=a.compilerRuntimeExports.c(26),{loadOnInit:s,enabled:o,silent:f,nullStateBeforeLoad:n,nullStateOnFail:l,customApiUrl:w,customBearerToken:h,dataTransformer:D,errorBoundaryOn404:g}=r===void 0?b:r,y=s===void 0?b.loadOnInit:s,i=o===void 0?b.enabled:o,u=f===void 0?b.silent:f,c=n===void 0?b.nullStateBeforeLoad:n,p=l===void 0?b.nullStateOnFail:l;let v;e[0]!==g?(v=g?[404]:void 0,e[0]=g,e[1]=v):v=e[1];let m;e[2]!==w||e[3]!==h||e[4]!==u||e[5]!==v?(m={silent:u,customToken:h,differentBaseUrl:w,noToastOnStatus:v},e[2]=w,e[3]=h,e[4]=u,e[5]=v,e[6]=m):m=e[6];const E=a.useAxios(m),{startLoading:I,stopLoading:S}=d.useContext(a.LoadingContext),O=d.useRef(0),{isAuthenticated:P}=a.useAuth(),[R,N]=d.useState(null);let A;e[7]!==E||e[8]!==D||e[9]!==i||e[10]!==g||e[11]!==P||e[12]!==c||e[13]!==p||e[14]!==u||e[15]!==I||e[16]!==S||e[17]!==t?(A=async(L,U)=>{if(!P()||i===!1)return;!u&&I(`loadData-${t}-${U}`),c&&N(null);const K=E.get(t,{signal:L}).then(V=>D?D(V.data):V.data).finally(()=>!u&&S(`loadData-${t}-${U}`));N(M(K,p??!1,g??!1))},e[7]=E,e[8]=D,e[9]=i,e[10]=g,e[11]=P,e[12]=c,e[13]=p,e[14]=u,e[15]=I,e[16]=S,e[17]=t,e[18]=A):A=e[18];const T=A;let q,B;e[19]!==T||e[20]!==y?(B=()=>{if(y===!1)return;const L=new AbortController;return T(L.signal,O.current=O.current+1),()=>{L.abort()}},q=[T,y],e[19]=T,e[20]=y,e[21]=q,e[22]=B):(q=e[21],B=e[22]),d.useEffect(B,q);let x;return e[23]!==R||e[24]!==T?(x={data:R,setData:N,reloadData:T},e[23]=R,e[24]=T,e[25]=x):x=e[25],x},z=()=>{const t=d.useRef({}).current;return d.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%",t.elt=r,document.body.appendChild(r),()=>{document.body.removeChild(r)}},[t]),r=>(e,...s)=>{const o=r(e,...s);return e.draggableProps.style.position==="fixed"?_.createPortal(o,t.elt):o}},$={storageKey:"--tmp-scroll-save--",requiredHeight:100,retryInterval:50},Z=(t,r)=>{const e=a.compilerRuntimeExports.c(18),{storageKey:s,requiredHeight:o,retryInterval:f}=r===void 0?$:r,n=s===void 0?$.storageKey:s,l=o===void 0?$.requiredHeight:o,w=f===void 0?$.retryInterval:f,[h,D]=d.useState(!1),g=d.useRef(null);let y;e[0]!==n?(y=()=>{const S=localStorage.getItem(n);return localStorage.removeItem(n),S===null?null:Number(S)},e[0]=n,e[1]=y):y=e[1];const i=y;let u;e[2]!==n?(u=S=>{localStorage.setItem(n,S)},e[2]=n,e[3]=u):u=e[3];const c=u;let p,v;e[4]!==h||e[5]!==l||e[6]!==i||e[7]!==w||e[8]!==t?(p=()=>{const S=window.setInterval(()=>{if(!h&&t.current!==null&&t.current.getBoundingClientRect().height>l){D(!0);const O=i();O!==null&&t.current.scrollTo({top:O}),window.clearInterval(S)}},w);return()=>{window.clearTimeout(S)}},v=[h,l,i,w,t],e[4]=h,e[5]=l,e[6]=i,e[7]=w,e[8]=t,e[9]=p,e[10]=v):(p=e[9],v=e[10]),d.useEffect(p,v);let m,E;e[11]!==c||e[12]!==t?(m=()=>{var O;const S=new AbortController;return(O=t.current)==null||O.addEventListener("scrollend",()=>{var P;g.current=((P=t.current)==null?void 0:P.scrollTop)??0,c((g.current??0).toString())},{signal:S.signal}),()=>S.abort()},E=[c,t],e[11]=c,e[12]=t,e[13]=m,e[14]=E):(m=e[13],E=e[14]),d.useEffect(m,E);let I;return e[15]!==i||e[16]!==c?(I={saveValue:c,retrieveValue:i},e[15]=i,e[16]=c,e[17]=I):I=e[17],I};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.useKeyPress=a.useKeyPress;exports.useNotifications=a.useNotifications;exports.usePermissions=a.usePermissions;exports.usePrompt=a.usePrompt;exports.useWindowSize=a.useWindowSize;exports.useZodSchemaTypes=a.useZodSchemaTypes;exports.useGetApiData=G.useGetApiData;exports.useLocalStorageState=G.useLocalStorageState;exports.useEmployeePhotoPath=F.useEmployeePhotoPath;exports.useIsFormDirty=F.useIsFormDirty;exports.useSearchQuery=F.useSearchQuery;exports.useSearchQueryState=F.useSearchQueryState;exports.useGetApiDataBound=W;exports.useGetDataBound=H;exports.usePersistentState=J;exports.useRenderDraggableInPortal=z;exports.useScrollSave=Z;
|
package/dist/hooks.es.js
CHANGED
|
@@ -1,171 +1,241 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import {
|
|
5
|
-
import { c as
|
|
6
|
-
import "react-
|
|
7
|
-
import "react-
|
|
1
|
+
import { ao as G, c as V, aq as J, bd as Q } from "./nivo-bar-W-IB9CF6.js";
|
|
2
|
+
import { bR as ft, aR as gt, bT as pt, an as vt, bS as ht, b7 as St, ar as wt, bv as bt, am as yt, aG as It, aU as Ot } from "./nivo-bar-W-IB9CF6.js";
|
|
3
|
+
import { u as Ct, a as Et } from "./useLocalStorageState-CMAthsbd.js";
|
|
4
|
+
import { useRef as D, useState as _, useSyncExternalStore as R, useContext as W, useEffect as U } from "react";
|
|
5
|
+
import { c as xt, u as Bt, a as Lt, b as $t } from "./useIsFormDirty-B4keXaXH.js";
|
|
6
|
+
import "react/jsx-runtime";
|
|
7
|
+
import "react-router";
|
|
8
|
+
import { createPortal as z } from "react-dom";
|
|
8
9
|
import "react-hook-form";
|
|
9
10
|
import "react-flexmonster";
|
|
10
11
|
import "@azure/msal-browser";
|
|
11
12
|
import "@azure/msal-react";
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
e = "success", r = s;
|
|
16
|
-
}, (s) => {
|
|
17
|
-
e = "error", r = s;
|
|
18
|
-
});
|
|
19
|
-
return () => {
|
|
20
|
-
switch (e) {
|
|
21
|
-
case "pending":
|
|
22
|
-
throw n;
|
|
23
|
-
case "success":
|
|
24
|
-
return r;
|
|
25
|
-
case "error":
|
|
26
|
-
throw r;
|
|
27
|
-
default:
|
|
28
|
-
throw new Error("Unknown status");
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
function H(t, e) {
|
|
33
|
-
const r = O({
|
|
13
|
+
const O = /* @__PURE__ */ new Map();
|
|
14
|
+
function at(e, n) {
|
|
15
|
+
const t = G({
|
|
34
16
|
silent: !0,
|
|
35
|
-
differentBaseUrl:
|
|
36
|
-
customToken:
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
17
|
+
differentBaseUrl: n == null ? void 0 : n.customBaseUrl,
|
|
18
|
+
customToken: n == null ? void 0 : n.customToken
|
|
19
|
+
});
|
|
20
|
+
console.log("axios.interceptorsUsed", t.interceptorsUsed);
|
|
21
|
+
const s = D(null);
|
|
22
|
+
if (!t.interceptorsUsed)
|
|
23
|
+
return null;
|
|
24
|
+
if (console.log("cache", O), !O.has(e)) {
|
|
25
|
+
const c = t.get(e).then((r) => (O.set(e, {
|
|
26
|
+
status: "success",
|
|
27
|
+
data: r.data
|
|
28
|
+
}), s.current = setTimeout(() => {
|
|
29
|
+
O.delete(e), s.current = null;
|
|
30
|
+
}, 1e4), r.data)).catch((r) => {
|
|
31
|
+
throw O.set(e, {
|
|
32
|
+
status: "error",
|
|
33
|
+
error: r
|
|
34
|
+
}), s.current = setTimeout(() => {
|
|
35
|
+
O.delete(e), s.current = null;
|
|
36
|
+
}, 1e3), r;
|
|
37
|
+
});
|
|
38
|
+
throw O.set(e, {
|
|
39
|
+
status: "pending"
|
|
40
|
+
}), c;
|
|
41
|
+
}
|
|
42
|
+
const o = O.get(e);
|
|
43
|
+
if (console.log("cached", o), o.status === "pending")
|
|
44
|
+
throw t.get(e);
|
|
45
|
+
if (o.status === "error")
|
|
46
|
+
throw o.error;
|
|
47
|
+
return o.data;
|
|
44
48
|
}
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
const M = (e) => (n) => (window.addEventListener(`storage_${e}`, n), () => window.removeEventListener(`storage_${e}`, n)), lt = (e, n, t) => {
|
|
50
|
+
const s = V.c(14), o = t === void 0 ? localStorage : t, [c] = _(n);
|
|
51
|
+
let r;
|
|
52
|
+
s[0] !== n ? (r = JSON.stringify(n), s[0] = n, s[1] = r) : r = s[1];
|
|
53
|
+
const l = D(r), h = D(n);
|
|
54
|
+
let g;
|
|
55
|
+
s[2] !== e || s[3] !== c || s[4] !== o ? (g = () => {
|
|
56
|
+
const m = o.getItem(e);
|
|
57
|
+
return m !== l.current && (l.current = m, h.current = l.current ? JSON.parse(l.current) : c), h.current;
|
|
58
|
+
}, s[2] = e, s[3] = c, s[4] = o, s[5] = g) : g = s[5];
|
|
59
|
+
const w = g;
|
|
60
|
+
let d;
|
|
61
|
+
s[6] !== e ? (d = M(e), s[6] = e, s[7] = d) : d = s[7];
|
|
62
|
+
const u = R(d, w);
|
|
63
|
+
let a;
|
|
64
|
+
s[8] !== e || s[9] !== o ? (a = (m) => {
|
|
65
|
+
o.setItem(e, JSON.stringify(m)), window.dispatchEvent(new Event(`storage_${e}`));
|
|
66
|
+
}, s[8] = e, s[9] = o, s[10] = a) : a = s[10];
|
|
67
|
+
const i = a;
|
|
68
|
+
let p;
|
|
69
|
+
return s[11] !== i || s[12] !== u ? (p = [u, i], s[11] = i, s[12] = u, s[13] = p) : p = s[13], p;
|
|
70
|
+
}, Z = (e, n, t) => {
|
|
71
|
+
let s = "pending", o;
|
|
72
|
+
const c = e.then((r) => {
|
|
73
|
+
s = "success", o = r;
|
|
74
|
+
}, (r) => {
|
|
75
|
+
const l = r == null ? void 0 : r.response;
|
|
76
|
+
(l == null ? void 0 : l.status) === 404 && t ? (s = "error-404", o = r) : (s = "error", o = r);
|
|
60
77
|
});
|
|
61
78
|
return () => {
|
|
62
|
-
switch (
|
|
79
|
+
switch (s) {
|
|
63
80
|
case "pending":
|
|
64
81
|
throw c;
|
|
65
82
|
case "success":
|
|
66
|
-
return
|
|
83
|
+
return o;
|
|
67
84
|
case "error":
|
|
68
|
-
return null;
|
|
85
|
+
if (o.code === "ERR_CANCELED") return null;
|
|
86
|
+
throw o;
|
|
69
87
|
case "error-404":
|
|
70
88
|
throw new Error("404");
|
|
71
89
|
default:
|
|
72
90
|
throw new Error("Unknown status");
|
|
73
91
|
}
|
|
74
92
|
};
|
|
75
|
-
},
|
|
93
|
+
}, E = {
|
|
76
94
|
loadOnInit: !0,
|
|
77
95
|
silent: !1,
|
|
78
96
|
enabled: !0,
|
|
79
97
|
nullStateBeforeLoad: !0,
|
|
80
98
|
nullStateOnFail: !1
|
|
81
|
-
},
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
99
|
+
}, ut = (e, n) => {
|
|
100
|
+
const t = V.c(26), {
|
|
101
|
+
loadOnInit: s,
|
|
102
|
+
enabled: o,
|
|
103
|
+
silent: c,
|
|
104
|
+
nullStateBeforeLoad: r,
|
|
105
|
+
nullStateOnFail: l,
|
|
106
|
+
customApiUrl: h,
|
|
107
|
+
customBearerToken: g,
|
|
108
|
+
dataTransformer: w,
|
|
109
|
+
errorBoundaryOn404: d
|
|
110
|
+
} = n === void 0 ? E : n, S = s === void 0 ? E.loadOnInit : s, u = o === void 0 ? E.enabled : o, a = c === void 0 ? E.silent : c, i = r === void 0 ? E.nullStateBeforeLoad : r, p = l === void 0 ? E.nullStateOnFail : l;
|
|
111
|
+
let v;
|
|
112
|
+
t[0] !== d ? (v = d ? [404] : void 0, t[0] = d, t[1] = v) : v = t[1];
|
|
113
|
+
let m;
|
|
114
|
+
t[2] !== h || t[3] !== g || t[4] !== a || t[5] !== v ? (m = {
|
|
115
|
+
silent: a,
|
|
116
|
+
customToken: g,
|
|
117
|
+
differentBaseUrl: h,
|
|
118
|
+
noToastOnStatus: v
|
|
119
|
+
}, t[2] = h, t[3] = g, t[4] = a, t[5] = v, t[6] = m) : m = t[6];
|
|
120
|
+
const b = G(m), {
|
|
121
|
+
startLoading: y,
|
|
122
|
+
stopLoading: f
|
|
123
|
+
} = W(J), I = D(0), {
|
|
124
|
+
isAuthenticated: C
|
|
125
|
+
} = Q(), [F, N] = _(null);
|
|
126
|
+
let x;
|
|
127
|
+
t[7] !== b || t[8] !== w || t[9] !== u || t[10] !== d || t[11] !== C || t[12] !== i || t[13] !== p || t[14] !== a || t[15] !== y || t[16] !== f || t[17] !== e ? (x = async (P, q) => {
|
|
128
|
+
if (!C() || u === !1)
|
|
89
129
|
return;
|
|
90
|
-
!
|
|
91
|
-
const
|
|
92
|
-
signal:
|
|
93
|
-
}).then((
|
|
94
|
-
|
|
95
|
-
}, [
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
t,
|
|
101
|
-
s,
|
|
102
|
-
d,
|
|
103
|
-
l,
|
|
104
|
-
D,
|
|
105
|
-
c,
|
|
106
|
-
a
|
|
107
|
-
]);
|
|
108
|
-
return p(() => {
|
|
109
|
-
if (e === !1)
|
|
130
|
+
!a && y(`loadData-${e}-${q}`), i && N(null);
|
|
131
|
+
const H = b.get(e, {
|
|
132
|
+
signal: P
|
|
133
|
+
}).then((K) => w ? w(K.data) : K.data).finally(() => !a && f(`loadData-${e}-${q}`));
|
|
134
|
+
N(Z(H, p ?? !1, d ?? !1));
|
|
135
|
+
}, t[7] = b, t[8] = w, t[9] = u, t[10] = d, t[11] = C, t[12] = i, t[13] = p, t[14] = a, t[15] = y, t[16] = f, t[17] = e, t[18] = x) : x = t[18];
|
|
136
|
+
const T = x;
|
|
137
|
+
let B, L;
|
|
138
|
+
t[19] !== T || t[20] !== S ? (L = () => {
|
|
139
|
+
if (S === !1)
|
|
110
140
|
return;
|
|
111
|
-
const
|
|
112
|
-
return
|
|
113
|
-
|
|
141
|
+
const P = new AbortController();
|
|
142
|
+
return T(P.signal, I.current = I.current + 1), () => {
|
|
143
|
+
P.abort();
|
|
144
|
+
};
|
|
145
|
+
}, B = [T, S], t[19] = T, t[20] = S, t[21] = B, t[22] = L) : (B = t[21], L = t[22]), U(L, B);
|
|
146
|
+
let $;
|
|
147
|
+
return t[23] !== F || t[24] !== T ? ($ = {
|
|
148
|
+
data: F,
|
|
149
|
+
setData: N,
|
|
150
|
+
reloadData: T
|
|
151
|
+
}, t[23] = F, t[24] = T, t[25] = $) : $ = t[25], $;
|
|
152
|
+
}, it = () => {
|
|
153
|
+
const e = D({}).current;
|
|
154
|
+
return U(() => {
|
|
155
|
+
const n = document.createElement("div");
|
|
156
|
+
return n.style.position = "absolute", n.style.pointerEvents = "none", n.style.top = "0", n.style.width = "100%", n.style.height = "100%", e.elt = n, document.body.appendChild(n), () => {
|
|
157
|
+
document.body.removeChild(n);
|
|
114
158
|
};
|
|
115
|
-
}, [
|
|
116
|
-
|
|
159
|
+
}, [e]), (n) => (t, ...s) => {
|
|
160
|
+
const o = n(t, ...s);
|
|
161
|
+
return t.draggableProps.style.position === "fixed" ? z(o, e.elt) : o;
|
|
162
|
+
};
|
|
163
|
+
}, A = {
|
|
117
164
|
storageKey: "--tmp-scroll-save--",
|
|
118
165
|
requiredHeight: 100,
|
|
119
166
|
retryInterval: 50
|
|
120
|
-
},
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
167
|
+
}, ct = (e, n) => {
|
|
168
|
+
const t = V.c(18), {
|
|
169
|
+
storageKey: s,
|
|
170
|
+
requiredHeight: o,
|
|
171
|
+
retryInterval: c
|
|
172
|
+
} = n === void 0 ? A : n, r = s === void 0 ? A.storageKey : s, l = o === void 0 ? A.requiredHeight : o, h = c === void 0 ? A.retryInterval : c, [g, w] = _(!1), d = D(null);
|
|
173
|
+
let S;
|
|
174
|
+
t[0] !== r ? (S = () => {
|
|
175
|
+
const f = localStorage.getItem(r);
|
|
176
|
+
return localStorage.removeItem(r), f === null ? null : Number(f);
|
|
177
|
+
}, t[0] = r, t[1] = S) : S = t[1];
|
|
178
|
+
const u = S;
|
|
179
|
+
let a;
|
|
180
|
+
t[2] !== r ? (a = (f) => {
|
|
181
|
+
localStorage.setItem(r, f);
|
|
182
|
+
}, t[2] = r, t[3] = a) : a = t[3];
|
|
183
|
+
const i = a;
|
|
184
|
+
let p, v;
|
|
185
|
+
t[4] !== g || t[5] !== l || t[6] !== u || t[7] !== h || t[8] !== e ? (p = () => {
|
|
186
|
+
const f = window.setInterval(() => {
|
|
187
|
+
if (!g && e.current !== null && e.current.getBoundingClientRect().height > l) {
|
|
188
|
+
w(!0);
|
|
189
|
+
const I = u();
|
|
190
|
+
I !== null && e.current.scrollTo({
|
|
191
|
+
top: I
|
|
192
|
+
}), window.clearInterval(f);
|
|
133
193
|
}
|
|
134
|
-
},
|
|
194
|
+
}, h);
|
|
135
195
|
return () => {
|
|
136
|
-
window.clearTimeout(
|
|
196
|
+
window.clearTimeout(f);
|
|
137
197
|
};
|
|
138
|
-
}, [
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
198
|
+
}, v = [g, l, u, h, e], t[4] = g, t[5] = l, t[6] = u, t[7] = h, t[8] = e, t[9] = p, t[10] = v) : (p = t[9], v = t[10]), U(p, v);
|
|
199
|
+
let m, b;
|
|
200
|
+
t[11] !== i || t[12] !== e ? (m = () => {
|
|
201
|
+
var I;
|
|
202
|
+
const f = new AbortController();
|
|
203
|
+
return (I = e.current) == null || I.addEventListener("scrollend", () => {
|
|
204
|
+
var C;
|
|
205
|
+
d.current = ((C = e.current) == null ? void 0 : C.scrollTop) ?? 0, i((d.current ?? 0).toString());
|
|
206
|
+
}, {
|
|
207
|
+
signal: f.signal
|
|
208
|
+
}), () => f.abort();
|
|
209
|
+
}, b = [i, e], t[11] = i, t[12] = e, t[13] = m, t[14] = b) : (m = t[13], b = t[14]), U(m, b);
|
|
210
|
+
let y;
|
|
211
|
+
return t[15] !== u || t[16] !== i ? (y = {
|
|
212
|
+
saveValue: i,
|
|
213
|
+
retrieveValue: u
|
|
214
|
+
}, t[15] = u, t[16] = i, t[17] = y) : y = t[17], y;
|
|
146
215
|
};
|
|
147
216
|
export {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
217
|
+
ft as cancelToken,
|
|
218
|
+
Q as useAuth,
|
|
219
|
+
G as useAxios,
|
|
220
|
+
gt as useClickOutside,
|
|
221
|
+
pt as useClipboard,
|
|
222
|
+
vt as useConfirm,
|
|
223
|
+
xt as useEmployeePhotoPath,
|
|
224
|
+
ht as useFormControlType,
|
|
225
|
+
Ct as useGetApiData,
|
|
226
|
+
ut as useGetApiDataBound,
|
|
227
|
+
at as useGetDataBound,
|
|
228
|
+
Bt as useIsFormDirty,
|
|
229
|
+
St as useKeyPress,
|
|
230
|
+
Et as useLocalStorageState,
|
|
231
|
+
wt as useNotifications,
|
|
232
|
+
bt as usePermissions,
|
|
233
|
+
lt as usePersistentState,
|
|
234
|
+
yt as usePrompt,
|
|
235
|
+
it as useRenderDraggableInPortal,
|
|
236
|
+
ct as useScrollSave,
|
|
237
|
+
Lt as useSearchQuery,
|
|
238
|
+
$t as useSearchQueryState,
|
|
239
|
+
It as useWindowSize,
|
|
240
|
+
Ot as useZodSchemaTypes
|
|
171
241
|
};
|
package/dist/layout.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("./nivo-bar-BuQvk7Aq.cjs"),F=require("react"),ee=require("react-router");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");require("@tanstack/react-query");require("react-dom");const ie="_side-menu-item_o72rm_1",oe="_disabled_o72rm_6",ae="_hidden_o72rm_10",re="_nav-button_o72rm_13",ce="_child_o72rm_21",de="_text_o72rm_26",me="_icon_o72rm_36",ue="_collapse-icon_o72rm_42",pe="_collapsed_o72rm_52",he="_collapse-icon-mini_o72rm_55",_e="_expanded_o72rm_86",fe="_children-container_o72rm_92",xe="_visible_o72rm_100",be="_children_o72rm_92",ve="_mobile_o72rm_112",d={sideMenuItem:ie,disabled:oe,hidden:ae,navButton:re,child:ce,text:de,icon:me,collapseIcon:ue,collapsed:pe,collapseIconMini:he,expanded:_e,childrenContainer:fe,visible:xe,children:be,mobile:ve},Ne=o=>{const e=l.compilerRuntimeExports.c(6),{item:u,menuExpanded:f,useTooltips:v,children:y}=o;if(u.tooltip&&!f&&v){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]!==y?(s=t.jsx("div",{children:y}),e[1]=y,e[2]=s):s=e[2];let r;return e[3]!==u.tooltip||e[4]!==s?(r=t.jsx(l.SimpleTooltip,{text:u.tooltip,placement:"top",delay:M,children:s}),e[3]=u.tooltip,e[4]=s,e[5]=r):r=e[5],r}return y},te=({item:o,menuExpanded:e,collapsed:u,onCollapse:f,currentPath:v,useHover:y,useTooltips:M,isMobile:s,disableMode:r})=>{var m,N,p,b;const[x,n]=F.useState(!1),[h]=v.split("?"),g=o.linkTo===h||((m=o.children)==null?void 0:m.some(i=>i.linkTo===h)),c=F.useRef(null);return l.useClickOutside([c],()=>u&&f()),t.jsxs("li",{ref:c,className:l.classNames("luminus-side-menu-item",d.sideMenuItem,{[d.mobile]:s},{[d.expanded]:e},{active:x||g},{open:u&&o.children},{[r==="disable"?d.disabled:d.hidden]:o.disabled||o.notPermitted||((N=o.children)==null?void 0:N.every(i=>i.notPermitted||i.disabled))},{[r==="disable"?"disabled":"hidden"]:o.disabled||o.notPermitted||((p=o.children)==null?void 0:p.every(i=>i.notPermitted||i.disabled))}),onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:[t.jsx(Ne,{item:o,menuExpanded:e,useTooltips:M,children:o.children?t.jsx(t.Fragment,{children:t.jsxs("button",{type:"button",className:l.classNames("nav-link",d.navButton),onClick:()=>{f()},children:[t.jsx("div",{className:l.classNames("icon",d.icon),children:o.icon}),!y&&!e&&t.jsx("div",{className:l.classNames("collapse-icon-mini rounded",d.collapseIconMini,{[d.collapsed]:u}),children:t.jsx(l.MdOutlineKeyboardArrowRight,{})}),e&&t.jsx("div",{className:l.classNames("text",d.text,"text-nowrap"),children:o.title}),e&&t.jsx("div",{className:l.classNames("collapse-icon",d.collapseIcon,{[d.collapsed]:u}),children:t.jsx(l.MdOutlineKeyboardArrowRight,{})})]})}):t.jsxs(ee.Link,{to:o.disabled||o.notPermitted?"/":o.linkTo??"/",className:l.classNames("nav-link",d.navButton),children:[t.jsx("div",{className:l.classNames("icon",d.icon),children:o.icon}),e&&t.jsx("div",{className:l.classNames("text",d.text,"text-nowrap"),children:o.title})]})}),t.jsx("div",{className:l.classNames("children-container",d.childrenContainer,{[d.visible]:u}),children:t.jsx("div",{className:l.classNames("shadow rounded children",d.children),children:(b=o.children)==null?void 0:b.map(i=>t.jsx(ee.Link,{to:i.disabled||i.notPermitted?"/":i.linkTo??"/",className:l.classNames("nav-link child rounded",d.navButton,d.child,{[r==="disable"?d.disabled:d.hidden]:i.disabled||i.notPermitted},{[r==="disable"?"disabled":"hidden"]:i.disabled||i.notPermitted}),onClick:f,children:t.jsx("div",{className:l.classNames("text",d.text,"text-nowrap"),children:i.title})},i.linkTo))})})]})},je="_side-menu_12rky_1",ye="_sidebar-header_12rky_15",Me="_side-menu-content_12rky_22",ge="_no-top-margin_12rky_28",ke="_expand_12rky_34",Ie="_only-logo_12rky_38",Ce="_mobile_12rky_41",Pe="_divider_12rky_56",P={sideMenu:je,sidebarHeader:ye,sideMenuContent:Me,noTopMargin:ge,expand:ke,onlyLogo:Ie,mobile:Ce,divider:Pe},Be=14,Se=o=>{const e=l.compilerRuntimeExports.c(100),{headerItem:u,searchItem:f,shortcutsItem:v,mainItems:y,secondaryItems:M,expanded:s,setExpanded:r,currentPath:x,useHover:n,useTooltips:h,disableMode:g}=o,c=g===void 0?"disable":g,[m,N]=F.useState(-1),{checkUserHasPermissions:p}=l.usePermissions();let b;if(e[0]!==p||e[1]!==y){let a;e[3]!==p?(a=_=>{var k;return{..._,notPermitted:!p(_.permissions??[],"any"),children:(k=_.children)==null?void 0:k.map(D=>({...D,notPermitted:!p(D.permissions??[],"any"),disabled:_.disabled||D.disabled}))}},e[3]=p,e[4]=a):a=e[4],b=y.map(a),e[0]=p,e[1]=y,e[2]=b}else b=e[2];const i=b;let C;if(e[5]!==p||e[6]!==M){let a;e[8]!==p?(a=_=>{var k;return{..._,notPermitted:!p(_.permissions??[],"any"),children:(k=_.children)==null?void 0:k.map(D=>({...D,notPermitted:!p(D.permissions??[],"any")}))}},e[8]=p,e[9]=a):a=e[9],C=M.map(a),e[5]=p,e[6]=M,e[7]=C}else C=e[7];const B=C;let z;e[10]!==m?(z=a=>{N(a===m?-1:a)},e[10]=m,e[11]=z):z=e[11];const I=z;let G,U;e[12]!==s?(G=()=>{s||N(-1)},U=[s],e[12]=s,e[13]=G,e[14]=U):(G=e[13],U=e[14]),F.useEffect(G,U);const se=F.useRef(null);let W;e[15]===Symbol.for("react.memo_cache_sentinel")?(W=[se],e[15]=W):W=e[15];let J;e[16]!==r?(J=()=>r(!1),e[16]=r,e[17]=J):J=e[17],l.useClickOutside(W,J);let Q;e[18]!==c||e[19]!==i||e[20]!==B?(Q=[...i,...B].filter(a=>{var _;return c==="hide"?!a.disabled&&!a.notPermitted&&(((_=a.children)==null?void 0:_.filter(Te))??[]).length>0:!0}),e[18]=c,e[19]=i,e[20]=B,e[21]=Q):Q=e[21];const le=Q,{isMobile:j}=l.useWindowSize();let S;e[22]!==s||e[23]!==j?(S=l.classNames("luminus-side-menu shadow",P.sideMenu,{[P.mobile]:j},{[P.expand]:s},{expand:s}),e[22]=s,e[23]=j,e[24]=S):S=e[24];let T,R;e[25]!==r||e[26]!==n?(T=()=>n&&r(!0),R=()=>n&&r(!1),e[25]=r,e[26]=n,e[27]=T,e[28]=R):(T=e[27],R=e[28]);let w;e[29]!==n?(w=l.classNames("sidebar-header",P.sidebarHeader,{[P.onlyLogo]:n}),e[29]=n,e[30]=w):w=e[30];const Y=n?void 0:"button";let q;e[31]!==s||e[32]!==r||e[33]!==n?(q=n?void 0:()=>r(!s),e[31]=s,e[32]=r,e[33]=n,e[34]=q):q=e[34];let O;e[35]!==s||e[36]!==u||e[37]!==n?(O=n?u:s?t.jsxs(t.Fragment,{children:[t.jsx(l.MdOutlineKeyboardDoubleArrowLeft,{}),u]}):t.jsx(l.MdOutlineMenu,{}),e[35]=s,e[36]=u,e[37]=n,e[38]=O):O=e[38];let L;e[39]!==w||e[40]!==Y||e[41]!==q||e[42]!==O?(L=t.jsx("div",{className:w,role:Y,onClick:q,children:O}),e[39]=w,e[40]=Y,e[41]=q,e[42]=O,e[43]=L):L=e[43];let H;e[44]!==s||e[45]!==f||e[46]!==v?(H=s&&(f||v)?t.jsxs("div",{className:"mb-3 d-flex flex-column gap-3",children:[v&&s?v:null,f&&s?f:null]}):null,e[44]=s,e[45]=f,e[46]=v,e[47]=H):H=e[47];const Z=le.length>Be;let E;e[48]!==Z?(E=l.classNames(P.sideMenuContent,{[P.noTopMargin]:Z}),e[48]=Z,e[49]=E):E=e[49];let $;if(e[50]!==m||e[51]!==x||e[52]!==c||e[53]!==s||e[54]!==j||e[55]!==i||e[56]!==I||e[57]!==n||e[58]!==h){let a;e[60]!==m||e[61]!==x||e[62]!==c||e[63]!==s||e[64]!==j||e[65]!==I||e[66]!==n||e[67]!==h?(a=(_,k)=>t.jsx(te,{item:_,menuExpanded:s,collapsed:k===m,onCollapse:()=>I(k),currentPath:x,useHover:n,useTooltips:h,isMobile:j,disableMode:c},_.title),e[60]=m,e[61]=x,e[62]=c,e[63]=s,e[64]=j,e[65]=I,e[66]=n,e[67]=h,e[68]=a):a=e[68],$=i.map(a),e[50]=m,e[51]=x,e[52]=c,e[53]=s,e[54]=j,e[55]=i,e[56]=I,e[57]=n,e[58]=h,e[59]=$}else $=e[59];let V;e[69]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx("hr",{className:l.classNames("divider",P.divider)}),e[69]=V):V=e[69];let A;if(e[70]!==m||e[71]!==x||e[72]!==c||e[73]!==s||e[74]!==j||e[75]!==I||e[76]!==B||e[77]!==n||e[78]!==h){let a;e[80]!==m||e[81]!==x||e[82]!==c||e[83]!==s||e[84]!==j||e[85]!==I||e[86]!==n||e[87]!==h?(a=(_,k)=>t.jsx(te,{item:_,menuExpanded:s,collapsed:k===m,onCollapse:()=>I(k),currentPath:x,useHover:n,useTooltips:h,isMobile:j,disableMode:c},_.title),e[80]=m,e[81]=x,e[82]=c,e[83]=s,e[84]=j,e[85]=I,e[86]=n,e[87]=h,e[88]=a):a=e[88],A=B.map(a),e[70]=m,e[71]=x,e[72]=c,e[73]=s,e[74]=j,e[75]=I,e[76]=B,e[77]=n,e[78]=h,e[79]=A}else A=e[79];let K;e[89]!==E||e[90]!==$||e[91]!==A?(K=t.jsxs("ul",{className:E,children:[$,V,A]}),e[89]=E,e[90]=$,e[91]=A,e[92]=K):K=e[92];let X;return e[93]!==S||e[94]!==T||e[95]!==R||e[96]!==L||e[97]!==H||e[98]!==K?(X=t.jsxs("section",{ref:se,className:S,onMouseEnter:T,onMouseLeave:R,children:[L,H,K]}),e[93]=S,e[94]=T,e[95]=R,e[96]=L,e[97]=H,e[98]=K,e[99]=X):X=e[99],X};function Te(o){return!o.disabled&&!o.notPermitted}const Re="_top-bar_lnmq0_1",we="_top-bar-brand_lnmq0_12",ne={topBar:Re,topBarBrand:we},qe=o=>{const e=l.compilerRuntimeExports.c(21),{appName:u,leftOffset:f,leftContent:v,centerContent:y,rightContent:M}=o;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=l.classNames("luminus-top-bar shadow",ne.topBar),e[0]=s):s=e[0];const r=f?`calc(100% - ${f}px)`:void 0,x=f?`${f}px`:void 0;let n;e[1]!==r||e[2]!==x?(n={width:r,left:x},e[1]=r,e[2]=x,e[3]=n):n=e[3];let h;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=l.classNames("luminus-top-bar-brand",ne.topBarBrand),e[4]=h):h=e[4];let g;e[5]!==u?(g=t.jsx(ee.Link,{to:"/",className:h,children:u}),e[5]=u,e[6]=g):g=e[6];let c;e[7]!==v||e[8]!==g?(c=t.jsxs("div",{className:"col-4 d-flex gap-3 align-items-center",children:[g,v]}),e[7]=v,e[8]=g,e[9]=c):c=e[9];const m=y??null;let N;e[10]!==m?(N=t.jsx("div",{className:"col-4 d-flex align-items-center",children:m}),e[10]=m,e[11]=N):N=e[11];const p=M??null;let b;e[12]!==p?(b=t.jsx("div",{className:"col-4 d-flex justify-content-end align-items-center",children:p}),e[12]=p,e[13]=b):b=e[13];let i;e[14]!==b||e[15]!==c||e[16]!==N?(i=t.jsxs("div",{className:"w-100 row g-0",children:[c,N,b]}),e[14]=b,e[15]=c,e[16]=N,e[17]=i):i=e[17];let C;return e[18]!==i||e[19]!==n?(C=t.jsx("nav",{className:s,style:n,children:i}),e[18]=i,e[19]=n,e[20]=C):C=e[20],C};exports.PageContainer=l.PageContainer;exports.SideContentBar=l.SideContentBar;exports.SideMenu=Se;exports.TopBar=qe;
|