react-luminus-components 2.0.5-beta.r19-22 → 2.0.5-beta.r19-23

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./nivo-bar-C1VYGnTR.cjs"),h=require("react/jsx-runtime"),p=require("react"),R=require("@azure/msal-browser"),z=require("@azure/msal-react");require("react-router");require("react-dom");require("react-hook-form");require("react-flexmonster");const B=require("./FormDisabledProvider-CiGUtSf7.cjs"),V=require("./useLocalStorageState-AB4BFfn5.cjs");function Q(t){const e=s.toDate(t);return e.setHours(23,59,59,999),e}function X(){return Q(Date.now())}function Y(t,e){const r=+s.toDate(t),[f,n]=[+s.toDate(e.start),+s.toDate(e.end)].sort((i,o)=>i-o);return r>=f&&r<=n}function Z(){return s.startOfDay(Date.now())}const ee=t=>{const e=s.compilerRuntimeExports.c(10),{children:r}=t,[f,n]=p.useState(!1),[i,o]=p.useState(""),[a,v]=p.useState(void 0);let C;e[0]===Symbol.for("react.memo_cache_sentinel")?(C=(y,g)=>{n(!0),o(y),v(g)},e[0]=C):C=e[0];const m=C;let S;e[1]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{n(!1)},e[1]=S):S=e[1];const c=S;let l;e[2]!==f||e[3]!==i||e[4]!==a?(l={show:f,text:i,showConfirm:m,hideConfirm:c,textSm:a},e[2]=f,e[3]=i,e[4]=a,e[5]=l):l=e[5];const u=l;let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsx(me,{}),e[6]=d):d=e[6];let x;return e[7]!==r||e[8]!==u?(x=h.jsxs(s.ConfirmContext.Provider,{value:u,children:[d,r]}),e[7]=r,e[8]=u,e[9]=x):x=e[9],x},te=()=>{const t=s.compilerRuntimeExports.c(43),{texts:e}=p.useContext(s.LuminusComponentsContext),{confirm:r}=e,{isShown:f,text:n,onFinish:i}=s.usePrompt(),{options:o}=p.useContext(s.PromptContext),[a,v]=p.useState(o.defaultValue??"");let C;t[0]!==i?(C=()=>{i(null)},t[0]=i,t[1]=C):C=t[1];const m=C;let S;t[2]!==i||t[3]!==o.required||t[4]!==a?(S=A=>{A.preventDefault(),!(o.required&&!a)&&(i(a),v(""))},t[2]=i,t[3]=o.required,t[4]=a,t[5]=S):S=t[5];const c=S;let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=A=>v(A.currentTarget.value),t[6]=l):l=t[6];let u;t[7]!==a?(u={value:a,onChange:l,className:"w-100",autoFocus:!0,tabIndex:0},t[7]=a,t[8]=u):u=t[8];const d=u;let x,y;t[9]!==f||t[10]!==o.defaultValue?(x=()=>{f===!0&&v(o.defaultValue??"")},y=[f,o.defaultValue],t[9]=f,t[10]=o.defaultValue,t[11]=x,t[12]=y):(x=t[11],y=t[12]),p.useEffect(x,y);let g;t[13]!==n?(g=h.jsx(s.Modal.Header,{className:"justify-content-center",children:h.jsx(s.Modal.Title,{children:n})}),t[13]=n,t[14]=g):g=t[14];let k;t[15]!==d||t[16]!==o.input?(k=o.input==="textarea"?h.jsx("textarea",{...d,rows:5}):void 0,t[15]=d,t[16]=o.input,t[17]=k):k=t[17];let T;t[18]!==d||t[19]!==o.input||t[20]!==o.type?(T=o.input==="input"?h.jsx(s.FormControl,{...d,type:o.type}):void 0,t[18]=d,t[19]=o.input,t[20]=o.type,t[21]=T):T=t[21];let w;t[22]!==k||t[23]!==T?(w=h.jsxs(s.Modal.Body,{children:[k,T]}),t[22]=k,t[23]=T,t[24]=w):w=t[24];let E;t[25]!==r.cancel||t[26]!==m?(E=h.jsx(s.PrimaryButton,{variant:"outlined",color:"secondary",onClick:m,className:"flex-grow-1",children:r.cancel}),t[25]=r.cancel,t[26]=m,t[27]=E):E=t[27];const L=o.required&&!a;let b;t[28]!==r.confirm||t[29]!==L?(b=h.jsx(s.PrimaryButton,{color:"primary",disabled:L,type:"submit",className:"flex-grow-1",children:r.confirm}),t[28]=r.confirm,t[29]=L,t[30]=b):b=t[30];let M;t[31]!==E||t[32]!==b?(M=h.jsxs(s.Modal.Footer,{className:"w-100 d-flex gap-5",children:[E,b]}),t[31]=E,t[32]=b,t[33]=M):M=t[33];let D;t[34]!==c||t[35]!==w||t[36]!==M?(D=h.jsxs("form",{onSubmit:c,onKeyDown:ne,children:[w,M]}),t[34]=c,t[35]=w,t[36]=M,t[37]=D):D=t[37];let j;return t[38]!==f||t[39]!==m||t[40]!==D||t[41]!==g?(j=h.jsxs(s.Modal,{show:f,size:"sm",centered:!0,onHide:m,children:[g,D]}),t[38]=f,t[39]=m,t[40]=D,t[41]=g,t[42]=j):j=t[42],j};function ne(t){return t.stopPropagation()}const oe=t=>{const e=s.compilerRuntimeExports.c(11),{children:r}=t,[f,n]=p.useState(!1),[i,o]=p.useState("");let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={input:"textarea",type:"text"},e[0]=a):a=e[0];const[v,C]=p.useState(a),m=p.useRef(se);let S;e[1]===Symbol.for("react.memo_cache_sentinel")?(S=k=>{o(k),n(!0)},e[1]=S):S=e[1];const c=S;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{n(!1)},e[2]=l):l=e[2];const u=l;let d;e[3]!==f||e[4]!==v||e[5]!==i?(d={isShown:f,text:i,showPrompt:c,hidePrompt:u,resolveRef:m,options:v,setOptions:C},e[3]=f,e[4]=v,e[5]=i,e[6]=d):d=e[6];const x=d;let y;e[7]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(te,{}),e[7]=y):y=e[7];let g;return e[8]!==r||e[9]!==x?(g=h.jsxs(s.PromptContext.Provider,{value:x,children:[r,y]}),e[8]=r,e[9]=x,e[10]=g):g=e[10],g};function se(){}const le=t=>{const e=s.compilerRuntimeExports.c(14),{cookieDomain:r,axiosOptions:f,language:n,texts:i,ProjectIconComponent:o,localizationContext:a,chartColorPalette:v,children:C}=t;let m;e[0]!==o||e[1]!==f||e[2]!==v||e[3]!==r||e[4]!==n||e[5]!==a||e[6]!==i?(m={axiosOptions:f,cookieDomain:r,language:n,texts:i,ProjectIconComponent:o,localizationContext:a,chartColorPalette:v},e[0]=o,e[1]=f,e[2]=v,e[3]=r,e[4]=n,e[5]=a,e[6]=i,e[7]=m):m=e[7];const S=m;let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(s.Fe,{}),e[8]=c):c=e[8];let l;e[9]!==C?(l=h.jsx(ee,{children:h.jsxs(oe,{children:[c,C]})}),e[9]=C,e[10]=l):l=e[10];let u;return e[11]!==S||e[12]!==l?(u=h.jsx(s.LuminusComponentsContext.Provider,{value:S,children:l}),e[11]=S,e[12]=l,e[13]=u):u=e[13],u},re=t=>{const e=s.compilerRuntimeExports.c(15),{children:r}=t,[f,n]=p.useState(!1);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=new Set,e[0]=i):i=e[0];const[o]=p.useState(i);let a;e[1]!==o?(a=d=>{o.add(d),n(!0)},e[1]=o,e[2]=a):a=e[2];const v=a;let C;e[3]!==o?(C=d=>{o.delete(d),o.size===0&&n(!1)},e[3]=o,e[4]=C):C=e[4];const m=C;let S;e[5]!==f||e[6]!==v||e[7]!==m?(S={isLoading:f,startLoading:v,stopLoading:m},e[5]=f,e[6]=v,e[7]=m,e[8]=S):S=e[8];const c=S;let l;e[9]!==f?(l=f&&h.jsx(B.Loading,{}),e[9]=f,e[10]=l):l=e[10];let u;return e[11]!==r||e[12]!==c||e[13]!==l?(u=h.jsxs(s.LoadingContext.Provider,{value:c,children:[l,r]}),e[11]=r,e[12]=c,e[13]=l,e[14]=u):u=e[14],u},ie=t=>{const e=s.compilerRuntimeExports.c(39),{children:r}=t,f=s.useAxios(),{msalInstance:n,getToken:i}=p.useContext(s.AuthContext),{delegation:o,setDelegation:a,setAvailableDelegations:v,refreshAvailableDelegations:C}=p.useContext(s.DelegationContext),[m,S]=p.useState(null);let c;e[0]!==i?(c=async()=>{const P=await i();P&&S(P.token)},e[0]=i,e[1]=c):c=e[1];const l=c;let u,d;e[2]!==l?(u=()=>{l()},d=[l],e[2]=l,e[3]=u,e[4]=d):(u=e[3],d=e[4]),p.useEffect(u,d);let x;if(e[5]===Symbol.for("react.memo_cache_sentinel")){e:{const P=localStorage.getItem("user")??null;if(!P){x=null;break e}x=JSON.parse(P??"")}e[5]=x}else x=e[5];const y=x;let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g={state:y?s.LoginState.LOGGED_IN:s.LoginState.LOGGED_OUT,user:y},e[6]=g):g=e[6];const[k,T]=p.useState(g);let w;e[7]!==f?(w=async P=>{let _=null;return await f.get("/user/detail",P?{headers:{Authorization:`Bearer ${P}`}}:void 0).then(F=>{_=F.data}).catch(()=>{_=null}),_},e[7]=f,e[8]=w):w=e[8];const E=w;let L;e[9]!==v||e[10]!==a?(L=()=>{localStorage.removeItem("user"),T({state:s.LoginState.LOGGED_OUT,user:null}),a(null),v(null)},e[9]=v,e[10]=a,e[11]=L):L=e[11];const b=L;let M;e[12]!==E||e[13]!==C?(M=async P=>{T({state:s.LoginState.LOGGING_IN,user:null});const _=await E(P);return _?(T({state:s.LoginState.LOGGED_IN,user:_}),localStorage.setItem("user",JSON.stringify(_)),await C(),!0):(T({state:s.LoginState.LOGIN_FAILED,user:null}),!1)},e[12]=E,e[13]=C,e[14]=M):M=e[14];const D=M;let j;e[15]!==n?(j=()=>{if(n){const P=n.addEventCallback(_=>{if(_.eventType===R.EventType.LOGIN_SUCCESS&&_.payload){const F=_.payload;S(F.accessToken)}});return()=>{P&&n.removeEventCallback(P)}}return ae},e[15]=n,e[16]=j):j=e[16];let A;e[17]!==D||e[18]!==b||e[19]!==n?(A=[n,D,b],e[17]=D,e[18]=b,e[19]=n,e[20]=A):A=e[20],p.useEffect(j,A);let I;e[21]!==D||e[22]!==b||e[23]!==a?(I=async P=>{P&&await D(P).catch(()=>{b(),a(null)})},e[21]=D,e[22]=b,e[23]=a,e[24]=I):I=e[24];const O=I;let q;e[25]!==m||e[26]!==O?(q=()=>{O(m)},e[25]=m,e[26]=O,e[27]=q):q=e[27];const $=o==null?void 0:o.id;let N;e[28]!==m||e[29]!==O||e[30]!==$?(N=[m,$,O],e[28]=m,e[29]=O,e[30]=$,e[31]=N):N=e[31],p.useEffect(q,N);let U;e[32]!==D||e[33]!==b||e[34]!==k?(U={user:k.user,userLoginState:k,loginUser:D,logoutUser:b},e[32]=D,e[33]=b,e[34]=k,e[35]=U):U=e[35];const G=U;let H;return e[36]!==r||e[37]!==G?(H=h.jsx(s.UserContext.Provider,{value:G,children:r}),e[36]=r,e[37]=G,e[38]=H):H=e[38],H};function ae(){}const K=()=>{const t=s.compilerRuntimeExports.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx("p",{children:"Redirecting..."}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=h.jsxs("div",{children:[e,h.jsxs("p",{children:["If you are not redirected within 10 seconds, please click"," ",h.jsx("a",{href:window.location.href.replace("/blank","/"),children:"here"})]})]}),t[1]=r):r=t[1],r},ce=({...t})=>{const{inProgress:e}=z.useMsal(),{cookieDomain:r}=p.useContext(s.LuminusComponentsContext),[,f]=s.useCookies(["Authorization"]),n=p.useMemo(()=>t.useMsal?t.msalInstance:null,[t.useMsal,t.useMsal?t.msalInstance:null]),i=p.useMemo(()=>t.useMsal?t.msalScopes:[],[t.useMsal,t.useMsal?t.msalScopes:null]),o=p.useMemo(()=>t.useMsal?t.msalExtraScopes:[],[t.useMsal,t.useMsal?t.msalExtraScopes:null]),a=p.useRef(null),v=p.useCallback(()=>{const c=localStorage.getItem("token");return c?{token:c,expiresOn:B.addYears(new Date(Date.now()),1)}:null},[]),C=p.useCallback(async()=>{if(console.log("getTokenMsal"),n==null)throw console.log("getTokenMsal throwing error because msalInstance is null"),new Error("getTokenMsal: msalInstance is null");if(a.current)return console.log("getTokenMsal returning tokenRequestPromise.current",a.current),a.current;const c=new Promise((l,u)=>{if(console.log("getTokenMsal promise"),e!==R.InteractionStatus.None){console.log("getTokenMsal rejecting because inProgress !== InteractionStatus.None",e),u(new Error("Authentication in progress"));return}n.handleRedirectPromise().then(d=>{console.log("getTokenMsal tokenResponse",d);const x=n==null?void 0:n.getActiveAccount(),y=n==null?void 0:n.getAllAccounts();console.log("getTokenMsal allAccounts",y);const g=x??(y==null?void 0:y.at(0))??void 0;if(console.log("getTokenMsal account",g),!g){console.log("getTokenMsal no account found. Redirecting to login"),n==null||n.loginRedirect({scopes:i,extraScopesToConsent:o});return}if(x||n==null||n.setActiveAccount(g),console.log("getTokenMsal account set"),!(d!=null&&d.accessToken)){n==null||n.acquireTokenSilent({scopes:i,account:g,redirectUri:t.useMsal?t.msalSilentRedirectUri:void 0}).then(k=>{l({token:k.accessToken,expiresOn:k.expiresOn??new Date(Date.now())})}).catch(k=>{console.error("Error acquiring token",k),k instanceof R.InteractionRequiredAuthError&&(console.log("Silent token acquisition failed. Acquiring token using redirect"),n==null||n.acquireTokenRedirect({scopes:i,extraScopesToConsent:o}),l(null)),u(k)}).finally(()=>{a.current=null,u(new Error("No access token returned from handleRedirectPromise"))});return}l({token:d.accessToken,expiresOn:d.expiresOn??new Date(Date.now())})})});return a.current=c,c},[e,o,n,i,t.msalSilentRedirectUri,t.useMsal]),m=p.useCallback(async()=>t.useMsal?C():v(),[v,C,t.useMsal]),S=p.useMemo(()=>({useMsal:t.useMsal??!1,msalInstance:n,msalScopes:i,msalExtraScopes:o,getToken:m}),[t.useMsal,n,i,o,m]);return p.useEffect(()=>{if(t.useMsal&&n){const c=n.addEventCallback(l=>{if(l.eventType===R.EventType.LOGIN_SUCCESS||l.eventType===R.EventType.ACQUIRE_TOKEN_SUCCESS&&l.payload){const u=l.payload,d=u.account;n.setActiveAccount(d);const x=u.accessToken,y=u.expiresOn;f("Authorization",x,{path:"/",secure:!0,sameSite:"none",domain:r,expires:y??void 0})}l.error&&console.error("AuthProvider MSAL Error",l)});return()=>{c&&n.removeEventCallback(c)}}return()=>{}},[t.useMsal,n,f,r]),h.jsx(s.AuthContext.Provider,{value:S,children:t.useMsal?h.jsx(z.MsalProvider,{instance:t.msalInstance,children:window.location.pathname==="/blank"?h.jsx(K,{}):t.children}):window.location.pathname==="/blank"?h.jsx(K,{}):t.children})},ue=t=>{const e=s.compilerRuntimeExports.c(18),{children:r,relativeEndpoint:f}=t,[n,i,o]=V.useLocalStorageState("user-delegation",null);let a;e:{if(!n){a=null;break e}const w=n.from?s.parseISO(n.from):Z(),E=n.to?s.parseISO(n.to):X();if(!Y(new Date(Date.now()),{start:w,end:E})){i(null),a=null;break e}a=n}const v=a;let C;e[0]===Symbol.for("react.memo_cache_sentinel")?(C={nullStateBeforeLoad:!1,nullStateOnFail:!0},e[0]=C):C=e[0];const{data:m,setData:S,reloadData:c}=V.useGetApiData(f,C),l=p.useRef(null);let u,d;e[1]!==c?(u=()=>{const w=()=>{c(),l.current=window.setTimeout(w,s.msToStartOfNextDay()+5e3)};return w(),()=>{l.current!==null&&window.clearTimeout(l.current)}},d=[c],e[1]=c,e[2]=u,e[3]=d):(u=e[2],d=e[3]),p.useEffect(u,d);let x;e[4]!==o?(x=()=>{const w=()=>{o()};return window.addEventListener("focus",w),()=>{window.removeEventListener("focus",w)}},e[4]=o,e[5]=x):x=e[5];let y;e[6]!==o||e[7]!==c?(y=[o,c],e[6]=o,e[7]=c,e[8]=y):y=e[8],p.useEffect(x,y);let g;e[9]!==m||e[10]!==c||e[11]!==S||e[12]!==i||e[13]!==v?(g={delegation:v,setDelegation:i,availableDelegations:m,setAvailableDelegations:S,refreshAvailableDelegations:c},e[9]=m,e[10]=c,e[11]=S,e[12]=i,e[13]=v,e[14]=g):g=e[14];const k=g;let T;return e[15]!==r||e[16]!==k?(T=h.jsx(s.DelegationContext.Provider,{value:k,children:r}),e[15]=r,e[16]=k,e[17]=T):T=e[17],T},J=(t,e)=>t?`${t} | ${e}`:e,de=t=>{const e=s.compilerRuntimeExports.c(18),{defaultHelmet:r,children:f,helmetPrefix:n}=t,i=n??"";let o;e[0]!==r||e[1]!==i?(o=J(i,r),e[0]=r,e[1]=i,e[2]=o):o=e[2];let a;e[3]!==o?(a=[o],e[3]=o,e[4]=a):a=e[4];const[v,C]=p.useState(a);let m;e[5]!==n?(m=T=>{C(w=>[...w,J(n??"",T)])},e[5]=n,e[6]=m):m=e[6];const S=m;let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{C(fe)},e[7]=c):c=e[7];const l=c;let u;e[8]!==v?(u=v.at(-1)??"",e[8]=v,e[9]=u):u=e[9];const d=u;let x;e[10]!==S?(x={addHelmet:S,removeHelmet:l},e[10]=S,e[11]=x):x=e[11];const y=x;let g;e[12]!==d?(g=h.jsx("title",{children:d}),e[12]=d,e[13]=g):g=e[13];let k;return e[14]!==f||e[15]!==y||e[16]!==g?(k=h.jsxs(s.HelmetContext.Provider,{value:y,children:[g,f]}),e[14]=f,e[15]=y,e[16]=g,e[17]=k):k=e[17],k};function fe(t){return t.length>1?t.slice(0,-1):t}const W=50,me=()=>{const t=s.compilerRuntimeExports.c(22),{texts:e}=p.useContext(s.LuminusComponentsContext),{confirm:r}=e,{onConfirm:f,onCancel:n,text:i,show:o,textSm:a}=s.useConfirm(),v=a===void 0?i.length>W:a,C=i.length>W;let m;t[0]!==n||t[1]!==f||t[2]!==o?(m=g=>{if(o)e:switch(g.key){case"Enter":{g.preventDefault(),g.stopPropagation(),f();break e}case"Escape":{g.preventDefault(),g.stopPropagation(),n();break e}}},t[0]=n,t[1]=f,t[2]=o,t[3]=m):m=t[3];const S=m;s.useKeyPress(S);const c=C?void 0:"sm";let l;t[4]!==v||t[5]!==i?(l=h.jsx(s.Modal.Header,{className:"justify-content-center",children:v?h.jsx(s.Typography,{variant:"body",children:i}):h.jsx(s.Modal.Title,{children:i})}),t[4]=v,t[5]=i,t[6]=l):l=t[6];let u;t[7]!==r.no||t[8]!==n?(u=h.jsx(s.PrimaryButton,{type:"button",variant:"outlined",color:"secondary",className:"w-100",onClick:n,children:r.no}),t[7]=r.no,t[8]=n,t[9]=u):u=t[9];let d;t[10]!==r.yes||t[11]!==f?(d=h.jsx(s.PrimaryButton,{type:"button",color:"primary",onClick:f,className:"w-100 ml",children:r.yes}),t[10]=r.yes,t[11]=f,t[12]=d):d=t[12];let x;t[13]!==u||t[14]!==d?(x=h.jsx(s.Modal.Body,{children:h.jsxs("div",{className:"w-100 d-flex gap-5",children:[u,d]})}),t[13]=u,t[14]=d,t[15]=x):x=t[15];let y;return t[16]!==n||t[17]!==o||t[18]!==c||t[19]!==l||t[20]!==x?(y=h.jsxs(s.Modal,{show:o,size:c,centered:!0,onHide:n,children:[l,x]}),t[16]=n,t[17]=o,t[18]=c,t[19]=l,t[20]=x,t[21]=y):y=t[21],y};exports.AuthContext=s.AuthContext;exports.DelegationContext=s.DelegationContext;exports.FormDisabledContext=s.FormDisabledContext;exports.HelmetContext=s.HelmetContext;exports.LoadingContext=s.LoadingContext;exports.LuminusComponentsContext=s.LuminusComponentsContext;exports.UserContext=s.UserContext;exports.useFormDisabledContext=s.useFormDisabledContext;exports.FormDisabledProvider=B.FormDisabledProvider;exports.AuthProvider=ce;exports.DelegationProvider=ue;exports.HelmetProvider=de;exports.LoadingProvider=re;exports.LuminusComponentsProvider=le;exports.UserProvider=ie;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./nivo-bar-C1VYGnTR.cjs"),h=require("react/jsx-runtime"),p=require("react"),R=require("@azure/msal-browser"),z=require("@azure/msal-react");require("react-router");require("react-dom");require("react-hook-form");require("react-flexmonster");const B=require("./FormDisabledProvider-CiGUtSf7.cjs"),V=require("./useLocalStorageState-AB4BFfn5.cjs");function Q(t){const e=s.toDate(t);return e.setHours(23,59,59,999),e}function X(){return Q(Date.now())}function Y(t,e){const i=+s.toDate(t),[f,n]=[+s.toDate(e.start),+s.toDate(e.end)].sort((a,o)=>a-o);return i>=f&&i<=n}function Z(){return s.startOfDay(Date.now())}const ee=t=>{const e=s.compilerRuntimeExports.c(10),{children:i}=t,[f,n]=p.useState(!1),[a,o]=p.useState(""),[r,v]=p.useState(void 0);let C;e[0]===Symbol.for("react.memo_cache_sentinel")?(C=(y,g)=>{n(!0),o(y),v(g)},e[0]=C):C=e[0];const m=C;let S;e[1]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{n(!1)},e[1]=S):S=e[1];const c=S;let l;e[2]!==f||e[3]!==a||e[4]!==r?(l={show:f,text:a,showConfirm:m,hideConfirm:c,textSm:r},e[2]=f,e[3]=a,e[4]=r,e[5]=l):l=e[5];const u=l;let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsx(me,{}),e[6]=d):d=e[6];let x;return e[7]!==i||e[8]!==u?(x=h.jsxs(s.ConfirmContext.Provider,{value:u,children:[d,i]}),e[7]=i,e[8]=u,e[9]=x):x=e[9],x},te=()=>{const t=s.compilerRuntimeExports.c(43),{texts:e}=p.useContext(s.LuminusComponentsContext),{confirm:i}=e,{isShown:f,text:n,onFinish:a}=s.usePrompt(),{options:o}=p.useContext(s.PromptContext),[r,v]=p.useState(o.defaultValue??"");let C;t[0]!==a?(C=()=>{a(null)},t[0]=a,t[1]=C):C=t[1];const m=C;let S;t[2]!==a||t[3]!==o.required||t[4]!==r?(S=A=>{A.preventDefault(),!(o.required&&!r)&&(a(r),v(""))},t[2]=a,t[3]=o.required,t[4]=r,t[5]=S):S=t[5];const c=S;let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=A=>v(A.currentTarget.value),t[6]=l):l=t[6];let u;t[7]!==r?(u={value:r,onChange:l,className:"w-100",autoFocus:!0,tabIndex:0},t[7]=r,t[8]=u):u=t[8];const d=u;let x,y;t[9]!==f||t[10]!==o.defaultValue?(x=()=>{f===!0&&v(o.defaultValue??"")},y=[f,o.defaultValue],t[9]=f,t[10]=o.defaultValue,t[11]=x,t[12]=y):(x=t[11],y=t[12]),p.useEffect(x,y);let g;t[13]!==n?(g=h.jsx(s.Modal.Header,{className:"justify-content-center",children:h.jsx(s.Modal.Title,{children:n})}),t[13]=n,t[14]=g):g=t[14];let k;t[15]!==d||t[16]!==o.input?(k=o.input==="textarea"?h.jsx("textarea",{...d,rows:5}):void 0,t[15]=d,t[16]=o.input,t[17]=k):k=t[17];let T;t[18]!==d||t[19]!==o.input||t[20]!==o.type?(T=o.input==="input"?h.jsx(s.FormControl,{...d,type:o.type}):void 0,t[18]=d,t[19]=o.input,t[20]=o.type,t[21]=T):T=t[21];let w;t[22]!==k||t[23]!==T?(w=h.jsxs(s.Modal.Body,{children:[k,T]}),t[22]=k,t[23]=T,t[24]=w):w=t[24];let E;t[25]!==i.cancel||t[26]!==m?(E=h.jsx(s.PrimaryButton,{variant:"outlined",color:"secondary",onClick:m,className:"flex-grow-1",children:i.cancel}),t[25]=i.cancel,t[26]=m,t[27]=E):E=t[27];const L=o.required&&!r;let b;t[28]!==i.confirm||t[29]!==L?(b=h.jsx(s.PrimaryButton,{color:"primary",disabled:L,type:"submit",className:"flex-grow-1",children:i.confirm}),t[28]=i.confirm,t[29]=L,t[30]=b):b=t[30];let M;t[31]!==E||t[32]!==b?(M=h.jsxs(s.Modal.Footer,{className:"w-100 d-flex gap-5",children:[E,b]}),t[31]=E,t[32]=b,t[33]=M):M=t[33];let D;t[34]!==c||t[35]!==w||t[36]!==M?(D=h.jsxs("form",{onSubmit:c,onKeyDown:ne,children:[w,M]}),t[34]=c,t[35]=w,t[36]=M,t[37]=D):D=t[37];let j;return t[38]!==f||t[39]!==m||t[40]!==D||t[41]!==g?(j=h.jsxs(s.Modal,{show:f,size:"sm",centered:!0,onHide:m,children:[g,D]}),t[38]=f,t[39]=m,t[40]=D,t[41]=g,t[42]=j):j=t[42],j};function ne(t){return t.stopPropagation()}const oe=t=>{const e=s.compilerRuntimeExports.c(11),{children:i}=t,[f,n]=p.useState(!1),[a,o]=p.useState("");let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={input:"textarea",type:"text"},e[0]=r):r=e[0];const[v,C]=p.useState(r),m=p.useRef(se);let S;e[1]===Symbol.for("react.memo_cache_sentinel")?(S=k=>{o(k),n(!0)},e[1]=S):S=e[1];const c=S;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{n(!1)},e[2]=l):l=e[2];const u=l;let d;e[3]!==f||e[4]!==v||e[5]!==a?(d={isShown:f,text:a,showPrompt:c,hidePrompt:u,resolveRef:m,options:v,setOptions:C},e[3]=f,e[4]=v,e[5]=a,e[6]=d):d=e[6];const x=d;let y;e[7]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(te,{}),e[7]=y):y=e[7];let g;return e[8]!==i||e[9]!==x?(g=h.jsxs(s.PromptContext.Provider,{value:x,children:[i,y]}),e[8]=i,e[9]=x,e[10]=g):g=e[10],g};function se(){}const le=t=>{const e=s.compilerRuntimeExports.c(14),{cookieDomain:i,axiosOptions:f,language:n,texts:a,ProjectIconComponent:o,localizationContext:r,chartColorPalette:v,children:C}=t;let m;e[0]!==o||e[1]!==f||e[2]!==v||e[3]!==i||e[4]!==n||e[5]!==r||e[6]!==a?(m={axiosOptions:f,cookieDomain:i,language:n,texts:a,ProjectIconComponent:o,localizationContext:r,chartColorPalette:v},e[0]=o,e[1]=f,e[2]=v,e[3]=i,e[4]=n,e[5]=r,e[6]=a,e[7]=m):m=e[7];const S=m;let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(s.Fe,{}),e[8]=c):c=e[8];let l;e[9]!==C?(l=h.jsx(ee,{children:h.jsxs(oe,{children:[c,C]})}),e[9]=C,e[10]=l):l=e[10];let u;return e[11]!==S||e[12]!==l?(u=h.jsx(s.LuminusComponentsContext.Provider,{value:S,children:l}),e[11]=S,e[12]=l,e[13]=u):u=e[13],u},re=t=>{const e=s.compilerRuntimeExports.c(15),{children:i}=t,[f,n]=p.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=new Set,e[0]=a):a=e[0];const[o]=p.useState(a);let r;e[1]!==o?(r=d=>{o.add(d),n(!0)},e[1]=o,e[2]=r):r=e[2];const v=r;let C;e[3]!==o?(C=d=>{o.delete(d),o.size===0&&n(!1)},e[3]=o,e[4]=C):C=e[4];const m=C;let S;e[5]!==f||e[6]!==v||e[7]!==m?(S={isLoading:f,startLoading:v,stopLoading:m},e[5]=f,e[6]=v,e[7]=m,e[8]=S):S=e[8];const c=S;let l;e[9]!==f?(l=f&&h.jsx(B.Loading,{}),e[9]=f,e[10]=l):l=e[10];let u;return e[11]!==i||e[12]!==c||e[13]!==l?(u=h.jsxs(s.LoadingContext.Provider,{value:c,children:[l,i]}),e[11]=i,e[12]=c,e[13]=l,e[14]=u):u=e[14],u},ie=t=>{const e=s.compilerRuntimeExports.c(39),{children:i}=t,f=s.useAxios(),{msalInstance:n,getToken:a}=p.useContext(s.AuthContext),{delegation:o,setDelegation:r,setAvailableDelegations:v,refreshAvailableDelegations:C}=p.useContext(s.DelegationContext),[m,S]=p.useState(null);let c;e[0]!==a?(c=async()=>{const P=await a();P&&S(P.token)},e[0]=a,e[1]=c):c=e[1];const l=c;let u,d;e[2]!==l?(u=()=>{l()},d=[l],e[2]=l,e[3]=u,e[4]=d):(u=e[3],d=e[4]),p.useEffect(u,d);let x;if(e[5]===Symbol.for("react.memo_cache_sentinel")){e:{const P=localStorage.getItem("user")??null;if(!P){x=null;break e}x=JSON.parse(P??"")}e[5]=x}else x=e[5];const y=x;let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g={state:y?s.LoginState.LOGGED_IN:s.LoginState.LOGGED_OUT,user:y},e[6]=g):g=e[6];const[k,T]=p.useState(g);let w;e[7]!==f?(w=async P=>{let _=null;return await f.get("/user/detail",P?{headers:{Authorization:`Bearer ${P}`}}:void 0).then(F=>{_=F.data}).catch(()=>{_=null}),_},e[7]=f,e[8]=w):w=e[8];const E=w;let L;e[9]!==v||e[10]!==r?(L=()=>{localStorage.removeItem("user"),T({state:s.LoginState.LOGGED_OUT,user:null}),r(null),v(null)},e[9]=v,e[10]=r,e[11]=L):L=e[11];const b=L;let M;e[12]!==E||e[13]!==C?(M=async P=>{T({state:s.LoginState.LOGGING_IN,user:null});const _=await E(P);return _?(T({state:s.LoginState.LOGGED_IN,user:_}),localStorage.setItem("user",JSON.stringify(_)),await C(),!0):(T({state:s.LoginState.LOGIN_FAILED,user:null}),!1)},e[12]=E,e[13]=C,e[14]=M):M=e[14];const D=M;let j;e[15]!==n?(j=()=>{if(n){const P=n.addEventCallback(_=>{if(_.eventType===R.EventType.LOGIN_SUCCESS&&_.payload){const F=_.payload;S(F.accessToken)}});return()=>{P&&n.removeEventCallback(P)}}return ae},e[15]=n,e[16]=j):j=e[16];let A;e[17]!==D||e[18]!==b||e[19]!==n?(A=[n,D,b],e[17]=D,e[18]=b,e[19]=n,e[20]=A):A=e[20],p.useEffect(j,A);let I;e[21]!==D||e[22]!==b||e[23]!==r?(I=async P=>{P&&await D(P).catch(()=>{b(),r(null)})},e[21]=D,e[22]=b,e[23]=r,e[24]=I):I=e[24];const O=I;let q;e[25]!==m||e[26]!==O?(q=()=>{O(m)},e[25]=m,e[26]=O,e[27]=q):q=e[27];const $=o==null?void 0:o.id;let N;e[28]!==m||e[29]!==O||e[30]!==$?(N=[m,$,O],e[28]=m,e[29]=O,e[30]=$,e[31]=N):N=e[31],p.useEffect(q,N);let U;e[32]!==D||e[33]!==b||e[34]!==k?(U={user:k.user,userLoginState:k,loginUser:D,logoutUser:b},e[32]=D,e[33]=b,e[34]=k,e[35]=U):U=e[35];const G=U;let H;return e[36]!==i||e[37]!==G?(H=h.jsx(s.UserContext.Provider,{value:G,children:i}),e[36]=i,e[37]=G,e[38]=H):H=e[38],H};function ae(){}const K=()=>{const t=s.compilerRuntimeExports.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx("p",{children:"Redirecting..."}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsxs("div",{children:[e,h.jsxs("p",{children:["If you are not redirected within 10 seconds, please click"," ",h.jsx("a",{href:window.location.href.replace("/blank","/"),children:"here"})]})]}),t[1]=i):i=t[1],i},ce=({...t})=>{const{inProgress:e}=z.useMsal(),{cookieDomain:i}=p.useContext(s.LuminusComponentsContext),[,f]=s.useCookies(["Authorization"]),n=p.useMemo(()=>t.useMsal?t.msalInstance:null,[t.useMsal,t.useMsal?t.msalInstance:null]),a=p.useMemo(()=>t.useMsal?t.msalScopes:[],[t.useMsal,t.useMsal?t.msalScopes:null]),o=p.useMemo(()=>t.useMsal?t.msalExtraScopes:[],[t.useMsal,t.useMsal?t.msalExtraScopes:null]),r=p.useRef(null),v=p.useCallback(()=>{const c=localStorage.getItem("token");return c?{token:c,expiresOn:B.addYears(new Date(Date.now()),1)}:null},[]),C=p.useCallback(async()=>{if(console.log("getTokenMsal"),n==null)throw console.log("getTokenMsal throwing error because msalInstance is null"),new Error("getTokenMsal: msalInstance is null");if(r.current)return console.log("getTokenMsal returning tokenRequestPromise.current",r.current),r.current;const c=new Promise((l,u)=>{if(console.log("getTokenMsal promise"),e!==R.InteractionStatus.None){console.log("getTokenMsal rejecting because inProgress !== InteractionStatus.None",e),u(new Error("Authentication in progress"));return}n.handleRedirectPromise().then(d=>{console.log("getTokenMsal tokenResponse",d);const x=n==null?void 0:n.getActiveAccount(),y=n==null?void 0:n.getAllAccounts();console.log("getTokenMsal allAccounts",y);const g=x??(y==null?void 0:y.at(0))??void 0;if(console.log("getTokenMsal account",g),!g){console.log("getTokenMsal no account found. Redirecting to login"),n==null||n.loginRedirect({scopes:a,extraScopesToConsent:o});return}if(x||n==null||n.setActiveAccount(g),console.log("getTokenMsal account set"),!(d!=null&&d.accessToken)){n==null||n.acquireTokenSilent({scopes:a,account:g,redirectUri:t.useMsal?t.msalSilentRedirectUri:void 0}).then(k=>{r.current=null,l({token:k.accessToken,expiresOn:k.expiresOn??new Date(Date.now())})}).catch(k=>{console.error("Error acquiring token",k),k instanceof R.InteractionRequiredAuthError&&(console.log("Silent token acquisition failed. Acquiring token using redirect"),n==null||n.acquireTokenRedirect({scopes:a,extraScopesToConsent:o}),r.current=null,l(null)),r.current=null,u(k)}).finally(()=>{r.current=null,u(new Error("No access token returned from handleRedirectPromise"))});return}l({token:d.accessToken,expiresOn:d.expiresOn??new Date(Date.now())})})});return r.current=c,c},[e,o,n,a,t.msalSilentRedirectUri,t.useMsal]),m=p.useCallback(async()=>t.useMsal?C():v(),[v,C,t.useMsal]),S=p.useMemo(()=>({useMsal:t.useMsal??!1,msalInstance:n,msalScopes:a,msalExtraScopes:o,getToken:m}),[t.useMsal,n,a,o,m]);return p.useEffect(()=>{if(t.useMsal&&n){const c=n.addEventCallback(l=>{if(l.eventType===R.EventType.LOGIN_SUCCESS||l.eventType===R.EventType.ACQUIRE_TOKEN_SUCCESS&&l.payload){const u=l.payload,d=u.account;n.setActiveAccount(d);const x=u.accessToken,y=u.expiresOn;f("Authorization",x,{path:"/",secure:!0,sameSite:"none",domain:i,expires:y??void 0})}l.error&&console.error("AuthProvider MSAL Error",l)});return()=>{c&&n.removeEventCallback(c)}}return()=>{}},[t.useMsal,n,f,i]),h.jsx(s.AuthContext.Provider,{value:S,children:t.useMsal?h.jsx(z.MsalProvider,{instance:t.msalInstance,children:window.location.pathname==="/blank"?h.jsx(K,{}):t.children}):window.location.pathname==="/blank"?h.jsx(K,{}):t.children})},ue=t=>{const e=s.compilerRuntimeExports.c(18),{children:i,relativeEndpoint:f}=t,[n,a,o]=V.useLocalStorageState("user-delegation",null);let r;e:{if(!n){r=null;break e}const w=n.from?s.parseISO(n.from):Z(),E=n.to?s.parseISO(n.to):X();if(!Y(new Date(Date.now()),{start:w,end:E})){a(null),r=null;break e}r=n}const v=r;let C;e[0]===Symbol.for("react.memo_cache_sentinel")?(C={nullStateBeforeLoad:!1,nullStateOnFail:!0},e[0]=C):C=e[0];const{data:m,setData:S,reloadData:c}=V.useGetApiData(f,C),l=p.useRef(null);let u,d;e[1]!==c?(u=()=>{const w=()=>{c(),l.current=window.setTimeout(w,s.msToStartOfNextDay()+5e3)};return w(),()=>{l.current!==null&&window.clearTimeout(l.current)}},d=[c],e[1]=c,e[2]=u,e[3]=d):(u=e[2],d=e[3]),p.useEffect(u,d);let x;e[4]!==o?(x=()=>{const w=()=>{o()};return window.addEventListener("focus",w),()=>{window.removeEventListener("focus",w)}},e[4]=o,e[5]=x):x=e[5];let y;e[6]!==o||e[7]!==c?(y=[o,c],e[6]=o,e[7]=c,e[8]=y):y=e[8],p.useEffect(x,y);let g;e[9]!==m||e[10]!==c||e[11]!==S||e[12]!==a||e[13]!==v?(g={delegation:v,setDelegation:a,availableDelegations:m,setAvailableDelegations:S,refreshAvailableDelegations:c},e[9]=m,e[10]=c,e[11]=S,e[12]=a,e[13]=v,e[14]=g):g=e[14];const k=g;let T;return e[15]!==i||e[16]!==k?(T=h.jsx(s.DelegationContext.Provider,{value:k,children:i}),e[15]=i,e[16]=k,e[17]=T):T=e[17],T},J=(t,e)=>t?`${t} | ${e}`:e,de=t=>{const e=s.compilerRuntimeExports.c(18),{defaultHelmet:i,children:f,helmetPrefix:n}=t,a=n??"";let o;e[0]!==i||e[1]!==a?(o=J(a,i),e[0]=i,e[1]=a,e[2]=o):o=e[2];let r;e[3]!==o?(r=[o],e[3]=o,e[4]=r):r=e[4];const[v,C]=p.useState(r);let m;e[5]!==n?(m=T=>{C(w=>[...w,J(n??"",T)])},e[5]=n,e[6]=m):m=e[6];const S=m;let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{C(fe)},e[7]=c):c=e[7];const l=c;let u;e[8]!==v?(u=v.at(-1)??"",e[8]=v,e[9]=u):u=e[9];const d=u;let x;e[10]!==S?(x={addHelmet:S,removeHelmet:l},e[10]=S,e[11]=x):x=e[11];const y=x;let g;e[12]!==d?(g=h.jsx("title",{children:d}),e[12]=d,e[13]=g):g=e[13];let k;return e[14]!==f||e[15]!==y||e[16]!==g?(k=h.jsxs(s.HelmetContext.Provider,{value:y,children:[g,f]}),e[14]=f,e[15]=y,e[16]=g,e[17]=k):k=e[17],k};function fe(t){return t.length>1?t.slice(0,-1):t}const W=50,me=()=>{const t=s.compilerRuntimeExports.c(22),{texts:e}=p.useContext(s.LuminusComponentsContext),{confirm:i}=e,{onConfirm:f,onCancel:n,text:a,show:o,textSm:r}=s.useConfirm(),v=r===void 0?a.length>W:r,C=a.length>W;let m;t[0]!==n||t[1]!==f||t[2]!==o?(m=g=>{if(o)e:switch(g.key){case"Enter":{g.preventDefault(),g.stopPropagation(),f();break e}case"Escape":{g.preventDefault(),g.stopPropagation(),n();break e}}},t[0]=n,t[1]=f,t[2]=o,t[3]=m):m=t[3];const S=m;s.useKeyPress(S);const c=C?void 0:"sm";let l;t[4]!==v||t[5]!==a?(l=h.jsx(s.Modal.Header,{className:"justify-content-center",children:v?h.jsx(s.Typography,{variant:"body",children:a}):h.jsx(s.Modal.Title,{children:a})}),t[4]=v,t[5]=a,t[6]=l):l=t[6];let u;t[7]!==i.no||t[8]!==n?(u=h.jsx(s.PrimaryButton,{type:"button",variant:"outlined",color:"secondary",className:"w-100",onClick:n,children:i.no}),t[7]=i.no,t[8]=n,t[9]=u):u=t[9];let d;t[10]!==i.yes||t[11]!==f?(d=h.jsx(s.PrimaryButton,{type:"button",color:"primary",onClick:f,className:"w-100 ml",children:i.yes}),t[10]=i.yes,t[11]=f,t[12]=d):d=t[12];let x;t[13]!==u||t[14]!==d?(x=h.jsx(s.Modal.Body,{children:h.jsxs("div",{className:"w-100 d-flex gap-5",children:[u,d]})}),t[13]=u,t[14]=d,t[15]=x):x=t[15];let y;return t[16]!==n||t[17]!==o||t[18]!==c||t[19]!==l||t[20]!==x?(y=h.jsxs(s.Modal,{show:o,size:c,centered:!0,onHide:n,children:[l,x]}),t[16]=n,t[17]=o,t[18]=c,t[19]=l,t[20]=x,t[21]=y):y=t[21],y};exports.AuthContext=s.AuthContext;exports.DelegationContext=s.DelegationContext;exports.FormDisabledContext=s.FormDisabledContext;exports.HelmetContext=s.HelmetContext;exports.LoadingContext=s.LoadingContext;exports.LuminusComponentsContext=s.LuminusComponentsContext;exports.UserContext=s.UserContext;exports.useFormDisabledContext=s.useFormDisabledContext;exports.FormDisabledProvider=B.FormDisabledProvider;exports.AuthProvider=ce;exports.DelegationProvider=ue;exports.HelmetProvider=de;exports.LoadingProvider=re;exports.LuminusComponentsProvider=le;exports.UserProvider=ie;
@@ -19,19 +19,19 @@ function Le() {
19
19
  return Ee(Date.now());
20
20
  }
21
21
  function Oe(t, e) {
22
- const l = +j(t), [f, n] = [
22
+ const r = +j(t), [f, n] = [
23
23
  +j(e.start),
24
24
  +j(e.end)
25
- ].sort((r, o) => r - o);
26
- return l >= f && l <= n;
25
+ ].sort((a, o) => a - o);
26
+ return r >= f && r <= n;
27
27
  }
28
28
  function Ae() {
29
29
  return ie(Date.now());
30
30
  }
31
31
  const Ne = (t) => {
32
32
  const e = L.c(10), {
33
- children: l
34
- } = t, [f, n] = _(!1), [r, o] = _(""), [a, x] = _(void 0);
33
+ children: r
34
+ } = t, [f, n] = _(!1), [a, o] = _(""), [l, x] = _(void 0);
35
35
  let g;
36
36
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (g = (y, h) => {
37
37
  n(!0), o(y), x(h);
@@ -43,53 +43,53 @@ const Ne = (t) => {
43
43
  }, e[1] = S) : S = e[1];
44
44
  const i = S;
45
45
  let s;
46
- e[2] !== f || e[3] !== r || e[4] !== a ? (s = {
46
+ e[2] !== f || e[3] !== a || e[4] !== l ? (s = {
47
47
  show: f,
48
- text: r,
48
+ text: a,
49
49
  showConfirm: d,
50
50
  hideConfirm: i,
51
- textSm: a
52
- }, e[2] = f, e[3] = r, e[4] = a, e[5] = s) : s = e[5];
51
+ textSm: l
52
+ }, e[2] = f, e[3] = a, e[4] = l, e[5] = s) : s = e[5];
53
53
  const c = s;
54
54
  let u;
55
55
  e[6] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ b(qe, {}), e[6] = u) : u = e[6];
56
56
  let m;
57
- return e[7] !== l || e[8] !== c ? (m = /* @__PURE__ */ D(ce.Provider, { value: c, children: [
57
+ return e[7] !== r || e[8] !== c ? (m = /* @__PURE__ */ D(ce.Provider, { value: c, children: [
58
58
  u,
59
- l
60
- ] }), e[7] = l, e[8] = c, e[9] = m) : m = e[9], m;
59
+ r
60
+ ] }), e[7] = r, e[8] = c, e[9] = m) : m = e[9], m;
61
61
  }, Ie = () => {
62
62
  const t = L.c(43), {
63
63
  texts: e
64
64
  } = G(Q), {
65
- confirm: l
65
+ confirm: r
66
66
  } = e, {
67
67
  isShown: f,
68
68
  text: n,
69
- onFinish: r
69
+ onFinish: a
70
70
  } = ue(), {
71
71
  options: o
72
- } = G(le), [a, x] = _(o.defaultValue ?? "");
72
+ } = G(le), [l, x] = _(o.defaultValue ?? "");
73
73
  let g;
74
- t[0] !== r ? (g = () => {
75
- r(null);
76
- }, t[0] = r, t[1] = g) : g = t[1];
74
+ t[0] !== a ? (g = () => {
75
+ a(null);
76
+ }, t[0] = a, t[1] = g) : g = t[1];
77
77
  const d = g;
78
78
  let S;
79
- t[2] !== r || t[3] !== o.required || t[4] !== a ? (S = (I) => {
80
- I.preventDefault(), !(o.required && !a) && (r(a), x(""));
81
- }, t[2] = r, t[3] = o.required, t[4] = a, t[5] = S) : S = t[5];
79
+ t[2] !== a || t[3] !== o.required || t[4] !== l ? (S = (I) => {
80
+ I.preventDefault(), !(o.required && !l) && (a(l), x(""));
81
+ }, t[2] = a, t[3] = o.required, t[4] = l, t[5] = S) : S = t[5];
82
82
  const i = S;
83
83
  let s;
84
84
  t[6] === Symbol.for("react.memo_cache_sentinel") ? (s = (I) => x(I.currentTarget.value), t[6] = s) : s = t[6];
85
85
  let c;
86
- t[7] !== a ? (c = {
87
- value: a,
86
+ t[7] !== l ? (c = {
87
+ value: l,
88
88
  onChange: s,
89
89
  className: "w-100",
90
90
  autoFocus: !0,
91
91
  tabIndex: 0
92
- }, t[7] = a, t[8] = c) : c = t[8];
92
+ }, t[7] = l, t[8] = c) : c = t[8];
93
93
  const u = c;
94
94
  let m, y;
95
95
  t[9] !== f || t[10] !== o.defaultValue ? (m = () => {
@@ -107,10 +107,10 @@ const Ne = (t) => {
107
107
  w
108
108
  ] }), t[22] = v, t[23] = w, t[24] = k) : k = t[24];
109
109
  let P;
110
- t[25] !== l.cancel || t[26] !== d ? (P = /* @__PURE__ */ b(V, { variant: "outlined", color: "secondary", onClick: d, className: "flex-grow-1", children: l.cancel }), t[25] = l.cancel, t[26] = d, t[27] = P) : P = t[27];
111
- const N = o.required && !a;
110
+ t[25] !== r.cancel || t[26] !== d ? (P = /* @__PURE__ */ b(V, { variant: "outlined", color: "secondary", onClick: d, className: "flex-grow-1", children: r.cancel }), t[25] = r.cancel, t[26] = d, t[27] = P) : P = t[27];
111
+ const N = o.required && !l;
112
112
  let T;
113
- t[28] !== l.confirm || t[29] !== N ? (T = /* @__PURE__ */ b(V, { color: "primary", disabled: N, type: "submit", className: "flex-grow-1", children: l.confirm }), t[28] = l.confirm, t[29] = N, t[30] = T) : T = t[30];
113
+ t[28] !== r.confirm || t[29] !== N ? (T = /* @__PURE__ */ b(V, { color: "primary", disabled: N, type: "submit", className: "flex-grow-1", children: r.confirm }), t[28] = r.confirm, t[29] = N, t[30] = T) : T = t[30];
114
114
  let M;
115
115
  t[31] !== P || t[32] !== T ? (M = /* @__PURE__ */ D(A.Footer, { className: "w-100 d-flex gap-5", children: [
116
116
  P,
@@ -132,14 +132,14 @@ function Ue(t) {
132
132
  }
133
133
  const Re = (t) => {
134
134
  const e = L.c(11), {
135
- children: l
136
- } = t, [f, n] = _(!1), [r, o] = _("");
137
- let a;
138
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = {
135
+ children: r
136
+ } = t, [f, n] = _(!1), [a, o] = _("");
137
+ let l;
138
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = {
139
139
  input: "textarea",
140
140
  type: "text"
141
- }, e[0] = a) : a = e[0];
142
- const [x, g] = _(a), d = ee($e);
141
+ }, e[0] = l) : l = e[0];
142
+ const [x, g] = _(l), d = ee($e);
143
143
  let S;
144
144
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (S = (v) => {
145
145
  o(v), n(!0);
@@ -151,47 +151,47 @@ const Re = (t) => {
151
151
  }, e[2] = s) : s = e[2];
152
152
  const c = s;
153
153
  let u;
154
- e[3] !== f || e[4] !== x || e[5] !== r ? (u = {
154
+ e[3] !== f || e[4] !== x || e[5] !== a ? (u = {
155
155
  isShown: f,
156
- text: r,
156
+ text: a,
157
157
  showPrompt: i,
158
158
  hidePrompt: c,
159
159
  resolveRef: d,
160
160
  options: x,
161
161
  setOptions: g
162
- }, e[3] = f, e[4] = x, e[5] = r, e[6] = u) : u = e[6];
162
+ }, e[3] = f, e[4] = x, e[5] = a, e[6] = u) : u = e[6];
163
163
  const m = u;
164
164
  let y;
165
165
  e[7] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ b(Ie, {}), e[7] = y) : y = e[7];
166
166
  let h;
167
- return e[8] !== l || e[9] !== m ? (h = /* @__PURE__ */ D(le.Provider, { value: m, children: [
168
- l,
167
+ return e[8] !== r || e[9] !== m ? (h = /* @__PURE__ */ D(le.Provider, { value: m, children: [
168
+ r,
169
169
  y
170
- ] }), e[8] = l, e[9] = m, e[10] = h) : h = e[10], h;
170
+ ] }), e[8] = r, e[9] = m, e[10] = h) : h = e[10], h;
171
171
  };
172
172
  function $e() {
173
173
  }
174
174
  const Ze = (t) => {
175
175
  const e = L.c(14), {
176
- cookieDomain: l,
176
+ cookieDomain: r,
177
177
  axiosOptions: f,
178
178
  language: n,
179
- texts: r,
179
+ texts: a,
180
180
  ProjectIconComponent: o,
181
- localizationContext: a,
181
+ localizationContext: l,
182
182
  chartColorPalette: x,
183
183
  children: g
184
184
  } = t;
185
185
  let d;
186
- e[0] !== o || e[1] !== f || e[2] !== x || e[3] !== l || e[4] !== n || e[5] !== a || e[6] !== r ? (d = {
186
+ e[0] !== o || e[1] !== f || e[2] !== x || e[3] !== r || e[4] !== n || e[5] !== l || e[6] !== a ? (d = {
187
187
  axiosOptions: f,
188
- cookieDomain: l,
188
+ cookieDomain: r,
189
189
  language: n,
190
- texts: r,
190
+ texts: a,
191
191
  ProjectIconComponent: o,
192
- localizationContext: a,
192
+ localizationContext: l,
193
193
  chartColorPalette: x
194
- }, e[0] = o, e[1] = f, e[2] = x, e[3] = l, e[4] = n, e[5] = a, e[6] = r, e[7] = d) : d = e[7];
194
+ }, e[0] = o, e[1] = f, e[2] = x, e[3] = r, e[4] = n, e[5] = l, e[6] = a, e[7] = d) : d = e[7];
195
195
  const S = d;
196
196
  let i;
197
197
  e[8] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ b(de, {}), e[8] = i) : i = e[8];
@@ -204,16 +204,16 @@ const Ze = (t) => {
204
204
  return e[11] !== S || e[12] !== s ? (c = /* @__PURE__ */ b(Q.Provider, { value: S, children: s }), e[11] = S, e[12] = s, e[13] = c) : c = e[13], c;
205
205
  }, et = (t) => {
206
206
  const e = L.c(15), {
207
- children: l
207
+ children: r
208
208
  } = t, [f, n] = _(!1);
209
- let r;
210
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ new Set(), e[0] = r) : r = e[0];
211
- const [o] = _(r);
212
209
  let a;
213
- e[1] !== o ? (a = (u) => {
210
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ new Set(), e[0] = a) : a = e[0];
211
+ const [o] = _(a);
212
+ let l;
213
+ e[1] !== o ? (l = (u) => {
214
214
  o.add(u), n(!0);
215
- }, e[1] = o, e[2] = a) : a = e[2];
216
- const x = a;
215
+ }, e[1] = o, e[2] = l) : l = e[2];
216
+ const x = l;
217
217
  let g;
218
218
  e[3] !== o ? (g = (u) => {
219
219
  o.delete(u), o.size === 0 && n(!1);
@@ -229,27 +229,27 @@ const Ze = (t) => {
229
229
  let s;
230
230
  e[9] !== f ? (s = f && /* @__PURE__ */ b(De, {}), e[9] = f, e[10] = s) : s = e[10];
231
231
  let c;
232
- return e[11] !== l || e[12] !== i || e[13] !== s ? (c = /* @__PURE__ */ D(me.Provider, { value: i, children: [
232
+ return e[11] !== r || e[12] !== i || e[13] !== s ? (c = /* @__PURE__ */ D(me.Provider, { value: i, children: [
233
233
  s,
234
- l
235
- ] }), e[11] = l, e[12] = i, e[13] = s, e[14] = c) : c = e[14], c;
234
+ r
235
+ ] }), e[11] = r, e[12] = i, e[13] = s, e[14] = c) : c = e[14], c;
236
236
  }, tt = (t) => {
237
237
  const e = L.c(39), {
238
- children: l
238
+ children: r
239
239
  } = t, f = he(), {
240
240
  msalInstance: n,
241
- getToken: r
241
+ getToken: a
242
242
  } = G(re), {
243
243
  delegation: o,
244
- setDelegation: a,
244
+ setDelegation: l,
245
245
  setAvailableDelegations: x,
246
246
  refreshAvailableDelegations: g
247
247
  } = G(ae), [d, S] = _(null);
248
248
  let i;
249
- e[0] !== r ? (i = async () => {
250
- const C = await r();
249
+ e[0] !== a ? (i = async () => {
250
+ const C = await a();
251
251
  C && S(C.token);
252
- }, e[0] = r, e[1] = i) : i = e[1];
252
+ }, e[0] = a, e[1] = i) : i = e[1];
253
253
  const s = i;
254
254
  let c, u;
255
255
  e[2] !== s ? (c = () => {
@@ -290,12 +290,12 @@ const Ze = (t) => {
290
290
  }, e[7] = f, e[8] = k) : k = e[8];
291
291
  const P = k;
292
292
  let N;
293
- e[9] !== x || e[10] !== a ? (N = () => {
293
+ e[9] !== x || e[10] !== l ? (N = () => {
294
294
  localStorage.removeItem("user"), w({
295
295
  state: $.LOGGED_OUT,
296
296
  user: null
297
- }), a(null), x(null);
298
- }, e[9] = x, e[10] = a, e[11] = N) : N = e[11];
297
+ }), l(null), x(null);
298
+ }, e[9] = x, e[10] = l, e[11] = N) : N = e[11];
299
299
  const T = N;
300
300
  let M;
301
301
  e[12] !== P || e[13] !== g ? (M = async (C) => {
@@ -331,11 +331,11 @@ const Ze = (t) => {
331
331
  let I;
332
332
  e[17] !== p || e[18] !== T || e[19] !== n ? (I = [n, p, T], e[17] = p, e[18] = T, e[19] = n, e[20] = I) : I = e[20], U(O, I);
333
333
  let H;
334
- e[21] !== p || e[22] !== T || e[23] !== a ? (H = async (C) => {
334
+ e[21] !== p || e[22] !== T || e[23] !== l ? (H = async (C) => {
335
335
  C && await p(C).catch(() => {
336
- T(), a(null);
336
+ T(), l(null);
337
337
  });
338
- }, e[21] = p, e[22] = T, e[23] = a, e[24] = H) : H = e[24];
338
+ }, e[21] = p, e[22] = T, e[23] = l, e[24] = H) : H = e[24];
339
339
  const R = H;
340
340
  let q;
341
341
  e[25] !== d || e[26] !== R ? (q = () => {
@@ -353,7 +353,7 @@ const Ze = (t) => {
353
353
  }, e[32] = p, e[33] = T, e[34] = v, e[35] = z) : z = e[35];
354
354
  const W = z;
355
355
  let B;
356
- return e[36] !== l || e[37] !== W ? (B = /* @__PURE__ */ b(ge.Provider, { value: W, children: l }), e[36] = l, e[37] = W, e[38] = B) : B = e[38], B;
356
+ return e[36] !== r || e[37] !== W ? (B = /* @__PURE__ */ b(ge.Provider, { value: W, children: r }), e[36] = r, e[37] = W, e[38] = B) : B = e[38], B;
357
357
  };
358
358
  function Ge() {
359
359
  }
@@ -361,27 +361,27 @@ const ne = () => {
361
361
  const t = L.c(2);
362
362
  let e;
363
363
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b("p", { children: "Redirecting..." }), t[0] = e) : e = t[0];
364
- let l;
365
- return t[1] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ D("div", { children: [
364
+ let r;
365
+ return t[1] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ D("div", { children: [
366
366
  e,
367
367
  /* @__PURE__ */ D("p", { children: [
368
368
  "If you are not redirected within 10 seconds, please click",
369
369
  " ",
370
370
  /* @__PURE__ */ b("a", { href: window.location.href.replace("/blank", "/"), children: "here" })
371
371
  ] })
372
- ] }), t[1] = l) : l = t[1], l;
372
+ ] }), t[1] = r) : r = t[1], r;
373
373
  }, nt = ({
374
374
  ...t
375
375
  }) => {
376
376
  const {
377
377
  inProgress: e
378
378
  } = pe(), {
379
- cookieDomain: l
379
+ cookieDomain: r
380
380
  } = G(Q), [, f] = Se(["Authorization"]), n = K(
381
381
  () => t.useMsal ? t.msalInstance : null,
382
382
  // eslint-disable-next-line react-hooks/exhaustive-deps
383
383
  [t.useMsal, t.useMsal ? t.msalInstance : null]
384
- ), r = K(
384
+ ), a = K(
385
385
  () => t.useMsal ? t.msalScopes : [],
386
386
  // eslint-disable-next-line react-hooks/exhaustive-deps
387
387
  [t.useMsal, t.useMsal ? t.msalScopes : null]
@@ -389,7 +389,7 @@ const ne = () => {
389
389
  () => t.useMsal ? t.msalExtraScopes : [],
390
390
  // eslint-disable-next-line react-hooks/exhaustive-deps
391
391
  [t.useMsal, t.useMsal ? t.msalExtraScopes : null]
392
- ), a = ee(null), x = Y(() => {
392
+ ), l = ee(null), x = Y(() => {
393
393
  const i = localStorage.getItem("token");
394
394
  return i ? {
395
395
  token: i,
@@ -398,8 +398,8 @@ const ne = () => {
398
398
  }, []), g = Y(async () => {
399
399
  if (console.log("getTokenMsal"), n == null)
400
400
  throw console.log("getTokenMsal throwing error because msalInstance is null"), new Error("getTokenMsal: msalInstance is null");
401
- if (a.current)
402
- return console.log("getTokenMsal returning tokenRequestPromise.current", a.current), a.current;
401
+ if (l.current)
402
+ return console.log("getTokenMsal returning tokenRequestPromise.current", l.current), l.current;
403
403
  const i = new Promise((s, c) => {
404
404
  if (console.log("getTokenMsal promise"), e !== we.None) {
405
405
  console.log("getTokenMsal rejecting because inProgress !== InteractionStatus.None", e), c(new Error("Authentication in progress"));
@@ -412,28 +412,28 @@ const ne = () => {
412
412
  const h = m ?? (y == null ? void 0 : y.at(0)) ?? void 0;
413
413
  if (console.log("getTokenMsal account", h), !h) {
414
414
  console.log("getTokenMsal no account found. Redirecting to login"), n == null || n.loginRedirect({
415
- scopes: r,
415
+ scopes: a,
416
416
  extraScopesToConsent: o
417
417
  });
418
418
  return;
419
419
  }
420
420
  if (m || n == null || n.setActiveAccount(h), console.log("getTokenMsal account set"), !(u != null && u.accessToken)) {
421
421
  n == null || n.acquireTokenSilent({
422
- scopes: r,
422
+ scopes: a,
423
423
  account: h,
424
424
  redirectUri: t.useMsal ? t.msalSilentRedirectUri : void 0
425
425
  }).then((v) => {
426
- s({
426
+ l.current = null, s({
427
427
  token: v.accessToken,
428
428
  expiresOn: v.expiresOn ?? new Date(Date.now())
429
429
  });
430
430
  }).catch((v) => {
431
431
  console.error("Error acquiring token", v), v instanceof Te && (console.log("Silent token acquisition failed. Acquiring token using redirect"), n == null || n.acquireTokenRedirect({
432
- scopes: r,
432
+ scopes: a,
433
433
  extraScopesToConsent: o
434
- }), s(null)), c(v);
434
+ }), l.current = null, s(null)), l.current = null, c(v);
435
435
  }).finally(() => {
436
- a.current = null, c(new Error("No access token returned from handleRedirectPromise"));
436
+ l.current = null, c(new Error("No access token returned from handleRedirectPromise"));
437
437
  });
438
438
  return;
439
439
  }
@@ -443,14 +443,14 @@ const ne = () => {
443
443
  });
444
444
  });
445
445
  });
446
- return a.current = i, i;
447
- }, [e, o, n, r, t.msalSilentRedirectUri, t.useMsal]), d = Y(async () => t.useMsal ? g() : x(), [x, g, t.useMsal]), S = K(() => ({
446
+ return l.current = i, i;
447
+ }, [e, o, n, a, t.msalSilentRedirectUri, t.useMsal]), d = Y(async () => t.useMsal ? g() : x(), [x, g, t.useMsal]), S = K(() => ({
448
448
  useMsal: t.useMsal ?? !1,
449
449
  msalInstance: n,
450
- msalScopes: r,
450
+ msalScopes: a,
451
451
  msalExtraScopes: o,
452
452
  getToken: d
453
- }), [t.useMsal, n, r, o, d]);
453
+ }), [t.useMsal, n, a, o, d]);
454
454
  return U(() => {
455
455
  if (t.useMsal && n) {
456
456
  const i = n.addEventCallback((s) => {
@@ -462,7 +462,7 @@ const ne = () => {
462
462
  path: "/",
463
463
  secure: !0,
464
464
  sameSite: "none",
465
- domain: l,
465
+ domain: r,
466
466
  expires: y ?? void 0
467
467
  });
468
468
  }
@@ -474,16 +474,16 @@ const ne = () => {
474
474
  }
475
475
  return () => {
476
476
  };
477
- }, [t.useMsal, n, f, l]), /* @__PURE__ */ b(re.Provider, { value: S, children: t.useMsal ? /* @__PURE__ */ b(Ce, { instance: t.msalInstance, children: window.location.pathname === "/blank" ? /* @__PURE__ */ b(ne, {}) : t.children }) : window.location.pathname === "/blank" ? /* @__PURE__ */ b(ne, {}) : t.children });
477
+ }, [t.useMsal, n, f, r]), /* @__PURE__ */ b(re.Provider, { value: S, children: t.useMsal ? /* @__PURE__ */ b(Ce, { instance: t.msalInstance, children: window.location.pathname === "/blank" ? /* @__PURE__ */ b(ne, {}) : t.children }) : window.location.pathname === "/blank" ? /* @__PURE__ */ b(ne, {}) : t.children });
478
478
  }, ot = (t) => {
479
479
  const e = L.c(18), {
480
- children: l,
480
+ children: r,
481
481
  relativeEndpoint: f
482
- } = t, [n, r, o] = _e("user-delegation", null);
483
- let a;
482
+ } = t, [n, a, o] = _e("user-delegation", null);
483
+ let l;
484
484
  e: {
485
485
  if (!n) {
486
- a = null;
486
+ l = null;
487
487
  break e;
488
488
  }
489
489
  const k = n.from ? te(n.from) : Ae(), P = n.to ? te(n.to) : Le();
@@ -491,12 +491,12 @@ const ne = () => {
491
491
  start: k,
492
492
  end: P
493
493
  })) {
494
- r(null), a = null;
494
+ a(null), l = null;
495
495
  break e;
496
496
  }
497
- a = n;
497
+ l = n;
498
498
  }
499
- const x = a;
499
+ const x = l;
500
500
  let g;
501
501
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (g = {
502
502
  nullStateBeforeLoad: !1,
@@ -528,27 +528,27 @@ const ne = () => {
528
528
  let y;
529
529
  e[6] !== o || e[7] !== i ? (y = [o, i], e[6] = o, e[7] = i, e[8] = y) : y = e[8], U(m, y);
530
530
  let h;
531
- e[9] !== d || e[10] !== i || e[11] !== S || e[12] !== r || e[13] !== x ? (h = {
531
+ e[9] !== d || e[10] !== i || e[11] !== S || e[12] !== a || e[13] !== x ? (h = {
532
532
  delegation: x,
533
- setDelegation: r,
533
+ setDelegation: a,
534
534
  availableDelegations: d,
535
535
  setAvailableDelegations: S,
536
536
  refreshAvailableDelegations: i
537
- }, e[9] = d, e[10] = i, e[11] = S, e[12] = r, e[13] = x, e[14] = h) : h = e[14];
537
+ }, e[9] = d, e[10] = i, e[11] = S, e[12] = a, e[13] = x, e[14] = h) : h = e[14];
538
538
  const v = h;
539
539
  let w;
540
- return e[15] !== l || e[16] !== v ? (w = /* @__PURE__ */ b(ae.Provider, { value: v, children: l }), e[15] = l, e[16] = v, e[17] = w) : w = e[17], w;
540
+ return e[15] !== r || e[16] !== v ? (w = /* @__PURE__ */ b(ae.Provider, { value: v, children: r }), e[15] = r, e[16] = v, e[17] = w) : w = e[17], w;
541
541
  }, oe = (t, e) => t ? `${t} | ${e}` : e, st = (t) => {
542
542
  const e = L.c(18), {
543
- defaultHelmet: l,
543
+ defaultHelmet: r,
544
544
  children: f,
545
545
  helmetPrefix: n
546
- } = t, r = n ?? "";
546
+ } = t, a = n ?? "";
547
547
  let o;
548
- e[0] !== l || e[1] !== r ? (o = oe(r, l), e[0] = l, e[1] = r, e[2] = o) : o = e[2];
549
- let a;
550
- e[3] !== o ? (a = [o], e[3] = o, e[4] = a) : a = e[4];
551
- const [x, g] = _(a);
548
+ e[0] !== r || e[1] !== a ? (o = oe(a, r), e[0] = r, e[1] = a, e[2] = o) : o = e[2];
549
+ let l;
550
+ e[3] !== o ? (l = [o], e[3] = o, e[4] = l) : l = e[4];
551
+ const [x, g] = _(l);
552
552
  let d;
553
553
  e[5] !== n ? (d = (w) => {
554
554
  g((k) => [...k, oe(n ?? "", w)]);
@@ -583,14 +583,14 @@ const se = 50, qe = () => {
583
583
  const t = L.c(22), {
584
584
  texts: e
585
585
  } = G(Q), {
586
- confirm: l
586
+ confirm: r
587
587
  } = e, {
588
588
  onConfirm: f,
589
589
  onCancel: n,
590
- text: r,
590
+ text: a,
591
591
  show: o,
592
- textSm: a
593
- } = ve(), x = a === void 0 ? r.length > se : a, g = r.length > se;
592
+ textSm: l
593
+ } = ve(), x = l === void 0 ? a.length > se : l, g = a.length > se;
594
594
  let d;
595
595
  t[0] !== n || t[1] !== f || t[2] !== o ? (d = (h) => {
596
596
  if (o)
@@ -607,11 +607,11 @@ const se = 50, qe = () => {
607
607
  }, t[0] = n, t[1] = f, t[2] = o, t[3] = d) : d = t[3], be(d);
608
608
  const i = g ? void 0 : "sm";
609
609
  let s;
610
- t[4] !== x || t[5] !== r ? (s = /* @__PURE__ */ b(A.Header, { className: "justify-content-center", children: x ? /* @__PURE__ */ b(ke, { variant: "body", children: r }) : /* @__PURE__ */ b(A.Title, { children: r }) }), t[4] = x, t[5] = r, t[6] = s) : s = t[6];
610
+ t[4] !== x || t[5] !== a ? (s = /* @__PURE__ */ b(A.Header, { className: "justify-content-center", children: x ? /* @__PURE__ */ b(ke, { variant: "body", children: a }) : /* @__PURE__ */ b(A.Title, { children: a }) }), t[4] = x, t[5] = a, t[6] = s) : s = t[6];
611
611
  let c;
612
- t[7] !== l.no || t[8] !== n ? (c = /* @__PURE__ */ b(V, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: n, children: l.no }), t[7] = l.no, t[8] = n, t[9] = c) : c = t[9];
612
+ t[7] !== r.no || t[8] !== n ? (c = /* @__PURE__ */ b(V, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: n, children: r.no }), t[7] = r.no, t[8] = n, t[9] = c) : c = t[9];
613
613
  let u;
614
- t[10] !== l.yes || t[11] !== f ? (u = /* @__PURE__ */ b(V, { type: "button", color: "primary", onClick: f, className: "w-100 ml", children: l.yes }), t[10] = l.yes, t[11] = f, t[12] = u) : u = t[12];
614
+ t[10] !== r.yes || t[11] !== f ? (u = /* @__PURE__ */ b(V, { type: "button", color: "primary", onClick: f, className: "w-100 ml", children: r.yes }), t[10] = r.yes, t[11] = f, t[12] = u) : u = t[12];
615
615
  let m;
616
616
  t[13] !== c || t[14] !== u ? (m = /* @__PURE__ */ b(A.Body, { children: /* @__PURE__ */ D("div", { className: "w-100 d-flex gap-5", children: [
617
617
  c,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-luminus-components",
3
- "version": "2.0.5-beta.r19-22",
3
+ "version": "2.0.5-beta.r19-23",
4
4
  "description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
5
5
  "type": "module",
6
6
  "repository": {