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.
- package/dist/.vite/manifest.json +191 -50
- package/dist/Alert-BApdinGX.cjs +1 -0
- package/dist/Alert-D2Bw906t.js +495 -0
- package/dist/DelegationContext-B1WXROG2.cjs +201 -0
- package/dist/DelegationContext-CCnk58PI.js +3156 -0
- package/dist/HelmetContext-ChKPef74.js +49 -0
- package/dist/HelmetContext-DDQ-Phg7.cjs +1 -0
- package/dist/PrimaryButton-D7r0m8xi.js +742 -0
- package/dist/PrimaryButton-D91b3Dmv.cjs +1 -0
- package/dist/SimpleTooltip-B00uLuVM.cjs +1 -0
- package/dist/SimpleTooltip-dwOOgecT.js +1642 -0
- package/dist/Typography-C5KJzU5O.js +1627 -0
- package/dist/Typography-Fo21SeyJ.cjs +20 -0
- package/dist/UserContext-45ZxeQHB.cjs +1 -0
- package/dist/UserContext-ZsTsf5Xe.js +270 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +1773 -852
- package/dist/dateUtils-CXm9PEh6.cjs +1 -0
- package/dist/dateUtils-ayErBYbI.js +1488 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +118 -123
- package/dist/index-4IYT9u10.js +95 -0
- package/dist/index-jmbq5h95.cjs +25 -0
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +97 -98
- package/dist/localStorageUtils-BSATUi5m.cjs +1 -0
- package/dist/localStorageUtils-DNgjNynk.js +1070 -0
- package/dist/main.cjs.js +56 -7
- package/dist/main.es.js +36401 -11370
- package/dist/models/texts/SubstitutionsTexts.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/useIsFormDirty-76y8Dca-.cjs +1 -0
- package/dist/useIsFormDirty-Ba5uhPH7.js +3257 -0
- package/dist/useWindowSize-7W91GsJQ.js +56 -0
- package/dist/useWindowSize-CLoDaEYh.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +79 -85
- package/package.json +10 -1
- package/dist/FormDisabledProvider-D-DRODSt.js +0 -51
- package/dist/FormDisabledProvider-Dt39yr7W.cjs +0 -1
- package/dist/localStorageUtils-CVwJ9FKd.cjs +0 -1
- package/dist/localStorageUtils-TeLq8MHE.js +0 -59
- package/dist/nivo-bar-D6NJLYWS.js +0 -39616
- package/dist/nivo-bar-SBWBmyeI.cjs +0 -293
- package/dist/useIsFormDirty-CZ4jNRFn.js +0 -117
- package/dist/useIsFormDirty-Crsu8mjo.cjs +0 -1
- package/dist/useLocalStorageState-Ca7olZgH.cjs +0 -1
- 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
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
import "react-
|
|
8
|
-
import {
|
|
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
|
|
10
|
+
function et(s, n) {
|
|
16
11
|
const t = _({
|
|
17
12
|
silent: !0,
|
|
18
|
-
differentBaseUrl:
|
|
19
|
-
customToken:
|
|
20
|
-
}), e =
|
|
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((
|
|
17
|
+
const d = t.get(s).then((r) => (T.set(s, {
|
|
23
18
|
status: "success",
|
|
24
|
-
data:
|
|
19
|
+
data: r.data
|
|
25
20
|
}), e.current = setTimeout(() => {
|
|
26
21
|
T.delete(s), e.current = null;
|
|
27
|
-
}, 1e4),
|
|
22
|
+
}, 1e4), r.data)).catch((r) => {
|
|
28
23
|
throw T.set(s, {
|
|
29
24
|
status: "error",
|
|
30
|
-
error:
|
|
25
|
+
error: r
|
|
31
26
|
}), e.current = setTimeout(() => {
|
|
32
27
|
T.delete(s), e.current = null;
|
|
33
|
-
}, 1e3),
|
|
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
|
|
48
|
-
const e =
|
|
49
|
-
let
|
|
50
|
-
e[0] !==
|
|
51
|
-
const l =
|
|
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,
|
|
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
|
|
52
|
+
const p = g;
|
|
58
53
|
let f;
|
|
59
|
-
e[6] !== s ? (f =
|
|
60
|
-
const i = W(f,
|
|
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] !==
|
|
63
|
-
const y = typeof u == "function" ? 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] =
|
|
60
|
+
}, e[8] = p, e[9] = s, e[10] = o, e[11] = a) : a = e[11];
|
|
66
61
|
const c = a;
|
|
67
|
-
let
|
|
68
|
-
return e[12] !== c || e[13] !== i ? (
|
|
69
|
-
},
|
|
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((
|
|
72
|
-
e = "success", o =
|
|
73
|
-
}, (
|
|
74
|
-
const l =
|
|
75
|
-
(l == null ? void 0 : l.status) === 404 && t ? (e = "error-404", o =
|
|
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
|
-
},
|
|
87
|
+
}, E = {
|
|
93
88
|
loadOnInit: !0,
|
|
94
89
|
silent: !1,
|
|
95
90
|
enabled: !0,
|
|
96
91
|
nullStateBeforeLoad: !0,
|
|
97
92
|
nullStateOnFail: !1
|
|
98
|
-
},
|
|
99
|
-
const t =
|
|
93
|
+
}, nt = (s, n) => {
|
|
94
|
+
const t = V.c(26), {
|
|
100
95
|
loadOnInit: e,
|
|
101
96
|
enabled: o,
|
|
102
97
|
silent: d,
|
|
103
|
-
nullStateBeforeLoad:
|
|
98
|
+
nullStateBeforeLoad: r,
|
|
104
99
|
nullStateOnFail: l,
|
|
105
|
-
customApiUrl:
|
|
100
|
+
customApiUrl: S,
|
|
106
101
|
customBearerToken: g,
|
|
107
|
-
dataTransformer:
|
|
102
|
+
dataTransformer: p,
|
|
108
103
|
errorBoundaryOn404: f
|
|
109
|
-
} =
|
|
110
|
-
let
|
|
111
|
-
t[0] !== f ? (
|
|
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] !==
|
|
108
|
+
t[2] !== S || t[3] !== g || t[4] !== a || t[5] !== h ? (u = {
|
|
114
109
|
silent: a,
|
|
115
110
|
customToken: g,
|
|
116
|
-
differentBaseUrl:
|
|
117
|
-
noToastOnStatus:
|
|
118
|
-
}, t[2] =
|
|
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
|
-
} =
|
|
117
|
+
} = z(J), O = D(0), {
|
|
123
118
|
isAuthenticated: C
|
|
124
|
-
} = Q(), [N,
|
|
125
|
-
let
|
|
126
|
-
t[7] !== y || t[8] !==
|
|
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 &&
|
|
124
|
+
!a && I(`loadData-${s}-${q}`), c && K(null);
|
|
130
125
|
const G = y.get(s, {
|
|
131
126
|
signal: P
|
|
132
|
-
}).then((H) =>
|
|
133
|
-
|
|
134
|
-
}, t[7] = y, t[8] =
|
|
135
|
-
const
|
|
136
|
-
let
|
|
137
|
-
t[19] !==
|
|
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
|
|
136
|
+
return b(P.signal, O.current = O.current + 1), () => {
|
|
142
137
|
P.abort();
|
|
143
138
|
};
|
|
144
|
-
},
|
|
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] !==
|
|
141
|
+
return t[23] !== N || t[24] !== b ? ($ = {
|
|
147
142
|
data: N,
|
|
148
|
-
setData:
|
|
149
|
-
reloadData:
|
|
150
|
-
}, t[23] = N, t[24] =
|
|
151
|
-
},
|
|
152
|
-
const s =
|
|
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
|
|
155
|
-
return
|
|
156
|
-
document.body.removeChild(
|
|
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]), (
|
|
159
|
-
const o =
|
|
160
|
-
return t.draggableProps.style.position === "fixed" ?
|
|
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
|
-
},
|
|
167
|
-
const t =
|
|
161
|
+
}, ot = (s, n) => {
|
|
162
|
+
const t = V.c(18), {
|
|
168
163
|
storageKey: e,
|
|
169
164
|
requiredHeight: o,
|
|
170
165
|
retryInterval: d
|
|
171
|
-
} =
|
|
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] !==
|
|
174
|
-
const m = localStorage.getItem(
|
|
175
|
-
return localStorage.removeItem(
|
|
176
|
-
}, t[0] =
|
|
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] !==
|
|
180
|
-
localStorage.setItem(
|
|
181
|
-
}, t[2] =
|
|
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
|
|
184
|
-
t[4] !== g || t[5] !== l || t[6] !== i || t[7] !==
|
|
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
|
-
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
top:
|
|
182
|
+
p(!0);
|
|
183
|
+
const O = i();
|
|
184
|
+
O !== null && s.current.scrollTo({
|
|
185
|
+
top: O
|
|
191
186
|
}), window.clearInterval(m);
|
|
192
187
|
}
|
|
193
|
-
},
|
|
188
|
+
}, S);
|
|
194
189
|
return () => {
|
|
195
190
|
window.clearTimeout(m);
|
|
196
191
|
};
|
|
197
|
-
},
|
|
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
|
|
195
|
+
var O;
|
|
201
196
|
const m = new AbortController();
|
|
202
|
-
return (
|
|
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
|
-
|
|
211
|
+
ut as cancelToken,
|
|
217
212
|
Q as useAuth,
|
|
218
213
|
_ as useAxios,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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;
|
package/dist/layout.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),
|
|
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;
|