react-luminus-components 1.3.242 → 1.3.244

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";var ae=Object.defineProperty;var ie=(e,t,r)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var C=(e,t,r)=>ie(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./nivo-bar.es-CLm92c93.cjs"),c=require("react"),F=require("@azure/msal-browser"),le=require("@azure/msal-react");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");const ue=require("./Loading-CRtrgGNp.cjs"),ce=require("./useGetApiData-DIAzAaPZ.cjs"),fe=require("./useLocalStorageState-BFc8Gc8H.cjs");function de(e){const t=o.toDate(e);return t.setHours(23,59,59,999),t}function me(){return de(Date.now())}function pe(e,t){const r=+o.toDate(e),[n,s]=[+o.toDate(t.start),+o.toDate(t.end)].sort((a,u)=>a-u);return r>=n&&r<=s}function he(){return o.startOfDay(Date.now())}const xe=({children:e})=>{const[t,r]=c.useState(!1),[n,s]=c.useState(""),a=c.useCallback(f=>{r(!0),s(f)},[]),u=c.useCallback(()=>{r(!1)},[]),i=c.useMemo(()=>({show:t,text:n,showConfirm:a,hideConfirm:u}),[t,n,a,u]);return o.jsxRuntimeExports.jsxs(o.ConfirmContext.Provider,{value:i,children:[o.jsxRuntimeExports.jsx(Xe,{}),e]})},ge=()=>{const{texts:{confirm:e}}=c.useContext(o.LuminusComponentsContext),{isShown:t,text:r,onFinish:n}=o.usePrompt(),{options:s}=c.useContext(o.PromptContext),[a,u]=c.useState(s.defaultValue??""),i=c.useCallback(()=>{n(null)},[n]),f=c.useCallback(d=>{d.preventDefault(),!(s.required&&!a)&&n(a)},[n,s.required,a]);c.useEffect(()=>{t===!0&&u(s.defaultValue??"")},[t,s.defaultValue]);const l=c.useMemo(()=>({value:a,onChange:d=>u(d.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[a]);return o.jsxRuntimeExports.jsxs(o.Modal,{show:t,size:"sm",centered:!0,onHide:i,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:o.jsxRuntimeExports.jsx(o.Modal.Title,{children:r})}),o.jsxRuntimeExports.jsxs("form",{onSubmit:f,children:[o.jsxRuntimeExports.jsxs(o.Modal.Body,{children:[s.input==="textarea"?o.jsxRuntimeExports.jsx("textarea",{...l,rows:5}):void 0,s.input==="input"?o.jsxRuntimeExports.jsx(o.FormControl,{...l,type:s.type}):void 0]}),o.jsxRuntimeExports.jsxs(o.Modal.Footer,{className:"w-100 d-flex gap-5",children:[o.jsxRuntimeExports.jsx(o.PrimaryButton,{variant:"outlined",color:"secondary",onClick:i,className:"flex-grow-1",children:e.cancel}),o.jsxRuntimeExports.jsx(o.PrimaryButton,{color:"primary",disabled:s.required&&!a,type:"submit",className:"flex-grow-1",children:e.confirm})]})]})]})},ye=({children:e})=>{const[t,r]=c.useState(!1),[n,s]=c.useState(""),[a,u]=c.useState({input:"textarea",type:"text"}),i=c.useRef(()=>{}),f=c.useCallback(m=>{s(m),r(!0)},[]),l=c.useCallback(()=>{r(!1)},[]),d=c.useMemo(()=>({isShown:t,text:n,showPrompt:f,hidePrompt:l,resolveRef:i,options:a,setOptions:u}),[t,n,f,l,a]);return o.jsxRuntimeExports.jsxs(o.PromptContext.Provider,{value:d,children:[e,o.jsxRuntimeExports.jsx(ge,{})]})},ve=({cookieDomain:e,axiosOptions:t,language:r,texts:n,ProjectIconComponent:s,localizationContext:a,chartColorPalette:u,children:i})=>{const f=c.useMemo(()=>({axiosOptions:t,cookieDomain:e,language:r,texts:n,ProjectIconComponent:s,localizationContext:a,chartColorPalette:u}),[t,e,r,s,a,n,u]);return o.jsxRuntimeExports.jsx(o.LuminusComponentsContext.Provider,{value:f,children:o.jsxRuntimeExports.jsx(xe,{children:o.jsxRuntimeExports.jsxs(ye,{children:[o.jsxRuntimeExports.jsx(o.Ie,{}),i]})})})},Te=({children:e})=>{const[t,r]=c.useState(!1),[n]=c.useState(new Set),s=c.useCallback(i=>{n.add(i),r(!0)},[n]),a=c.useCallback(i=>{n.delete(i),n.size===0&&r(!1)},[n]),u=c.useMemo(()=>({isLoading:t,startLoading:s,stopLoading:a}),[t,s,a]);return o.jsxRuntimeExports.jsxs(o.LoadingContext.Provider,{value:u,children:[t&&o.jsxRuntimeExports.jsx(ue.Loading,{}),e]})},Ce=({children:e})=>{const t=o.useAxios(),{msalInstance:r}=c.useContext(o.AuthContext),{delegation:n,setDelegation:s,setAvailableDelegations:a,refreshAvailableDelegations:u}=c.useContext(o.DelegationContext),{getToken:i}=o.useAuth(),[f,l]=c.useState(null),d=c.useCallback(async()=>{const x=await i();x&&l(x.token)},[i]);c.useEffect(()=>{d()},[d]);const h=c.useCallback(()=>{const x=localStorage.getItem("user")??null;return x?JSON.parse(x??""):null},[])(),[p,g]=c.useState({state:h?o.LoginState.LOGGED_IN:o.LoginState.LOGGING_IN,user:h}),P=c.useCallback(async x=>{let v=null;return await t.get("/user/detail",x?{headers:{Authorization:`Bearer ${x}`}}:void 0).then(M=>{v=M.data}).catch(()=>{v=null}),v},[t]),S=c.useCallback(()=>{localStorage.removeItem("user"),g({state:o.LoginState.LOGGED_OUT,user:null}),s(null),a(null)},[a,s]),E=c.useCallback(async x=>{g({state:o.LoginState.LOGGING_IN,user:null});const v=await P(x);return v?(g({state:o.LoginState.LOGGED_IN,user:v}),localStorage.setItem("user",JSON.stringify(v)),await u(),!0):(g({state:o.LoginState.LOGIN_FAILED,user:null}),!1)},[P,u]),b=c.useCallback(()=>{S()},[S]);c.useEffect(()=>{if(r){const x=r.addEventCallback(v=>{if(v.eventType===F.EventType.LOGIN_SUCCESS&&v.payload){const M=v.payload;l(M.accessToken)}});return()=>{x&&r.removeEventCallback(x)}}return()=>{}},[r,E,b]);const B=c.useCallback(async x=>{x&&await E(x).catch(()=>{b(),s(null)})},[E,b,s]);c.useEffect(()=>{B(f)},[f,n==null?void 0:n.id,B]);const oe=c.useMemo(()=>({user:p.user,userLoginState:p,loginUser:E,logoutUser:b}),[p,E,b]);return o.jsxRuntimeExports.jsx(o.UserContext.Provider,{value:oe,children:e})},Ee=({...e})=>{const{cookieDomain:t}=c.useContext(o.LuminusComponentsContext),[,r]=o.useCookies(["Authorization"]),n=c.useMemo(()=>({useMsal:e.useMsal??!1,msalInstance:e.useMsal?e.msalInstance??null:null,msalScopes:e.useMsal?e.msalScopes??[]:[],msalExtraScopes:e.useMsal?e.msalExtraScopes??[]:[]}),[e]);return c.useEffect(()=>{if(e.useMsal){const s=e.msalInstance.addEventCallback(a=>{if(a.eventType===F.EventType.LOGIN_SUCCESS||a.eventType===F.EventType.ACQUIRE_TOKEN_SUCCESS&&a.payload){const u=a.payload,i=u.account;e.msalInstance.setActiveAccount(i);const f=u.accessToken,l=u.expiresOn;r("Authorization",f,{path:"/",secure:!0,sameSite:"none",domain:t,expires:l??void 0})}a.error&&console.error("AuthProvider MSAL Error",a)});return()=>{s&&e.msalInstance.removeEventCallback(s)}}return()=>{}},[e,r,t]),o.jsxRuntimeExports.jsx(o.AuthContext.Provider,{value:n,children:e.useMsal?o.jsxRuntimeExports.jsx(le.MsalProvider,{instance:e.msalInstance,children:e.children}):e.children})},Se=({children:e,relativeEndpoint:t})=>{const[r,n,s]=fe.useLocalStorageState("user-delegation",null),a=c.useMemo(()=>{if(!r)return null;const m=r.from?o.parseISO(r.from):he(),h=r.to?o.parseISO(r.to):me();return pe(new Date(Date.now()),{start:m,end:h})?r:(n(null),null)},[r,n]),{data:u,setData:i,reloadData:f}=ce.useGetApiData(t,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),l=c.useRef(null);c.useEffect(()=>{const m=()=>{f(),l.current=window.setTimeout(m,o.msToStartOfNextDay()+5e3)};return m(),()=>{l.current!==null&&window.clearTimeout(l.current)}},[f]),c.useEffect(()=>{const m=()=>{s()};return window.addEventListener("focus",m),()=>{window.removeEventListener("focus",m)}},[s,f]);const d=c.useMemo(()=>({delegation:a,setDelegation:n,availableDelegations:u,setAvailableDelegations:i,refreshAvailableDelegations:f}),[a,n,u,i,f]);return o.jsxRuntimeExports.jsx(o.DelegationContext.Provider,{value:d,children:e})};var be=typeof Element<"u",Ae=typeof Map=="function",je=typeof Set=="function",Oe=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function I(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!I(e[n],t[n]))return!1;return!0}var a;if(Ae&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!I(n.value[1],t.get(n.value[0])))return!1;return!0}if(je&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Oe&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;if(be&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((s[n]==="_owner"||s[n]==="__v"||s[n]==="__o")&&e.$$typeof)&&!I(e[s[n]],t[s[n]]))return!1;return!0}return e!==e&&t!==t}var we=function(t,r){try{return I(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Pe=o.getDefaultExportFromCjs(we);var De=function(t,r,n,s){var a=n?n.call(s,t,r):void 0;if(a!==void 0)return!!a;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var u=Object.keys(t),i=Object.keys(r);if(u.length!==i.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(r),l=0;l<u.length;l++){var d=u[l];if(!f(d))return!1;var m=t[d],h=r[d];if(a=n?n.call(s,m,h,d):void 0,a===!1||a===void 0&&m!==h)return!1}return!0};const ke=o.getDefaultExportFromCjs(De);var Q=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Q||{}),H={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},V=Object.values(Q),K={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Re=Object.entries(K).reduce((e,[t,r])=>(e[r]=t,e),{}),T="data-rh",O={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},w=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},Ie=e=>{let t=w(e,"title");const r=w(e,O.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=w(e,O.DEFAULT_TITLE);return t||n||void 0},Le=e=>w(e,O.ON_CHANGE_CLIENT_STATE)||(()=>{}),$=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),Me=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const s=Object.keys(n);for(let a=0;a<s.length;a+=1){const i=s[a].toLowerCase();if(e.indexOf(i)!==-1&&n[i])return r.concat(n)}}return r},[]),He=e=>console&&typeof console.warn=="function"&&console.warn(e),D=(e,t,r)=>{const n={};return r.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&He(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,a)=>{const u={};a.filter(f=>{let l;const d=Object.keys(f);for(let h=0;h<d.length;h+=1){const p=d[h],g=p.toLowerCase();t.indexOf(g)!==-1&&!(l==="rel"&&f[l].toLowerCase()==="canonical")&&!(g==="rel"&&f[g].toLowerCase()==="stylesheet")&&(l=g),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(l=p)}if(!l||!f[l])return!1;const m=f[l].toLowerCase();return n[l]||(n[l]={}),u[l]||(u[l]={}),n[l][m]?!1:(u[l][m]=!0,!0)}).reverse().forEach(f=>s.push(f));const i=Object.keys(u);for(let f=0;f<i.length;f+=1){const l=i[f],d={...n[l],...u[l]};n[l]=d}return s},[]).reverse()},$e=(e,t)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},_e=e=>({baseTag:Me(["href"],e),bodyAttributes:$("bodyAttributes",e),defer:w(e,O.DEFER),encode:w(e,O.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:$("htmlAttributes",e),linkTags:D("link",["rel","href"],e),metaTags:D("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:D("noscript",["innerHTML"],e),onChangeClientState:Le(e),scriptTags:D("script",["src","innerHTML"],e),styleTags:D("style",["cssText"],e),title:Ie(e),titleAttributes:$("titleAttributes",e),prioritizeSeoTags:$e(e,O.PRIORITIZE_SEO_TAGS)}),X=e=>Array.isArray(e)?e.join(""):e,Ue=(e,t)=>{const r=Object.keys(e);for(let n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1},_=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(Ue(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},Y=(e,t)=>({...e,[t]:void 0}),Fe=["noscript","script","style"],N=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),ee=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),Ne=(e,t,r,n)=>{const s=ee(r),a=X(t);return s?`<${e} ${T}="true" ${s}>${N(a,n)}</${e}>`:`<${e} ${T}="true">${N(a,n)}</${e}>`},qe=(e,t,r=!0)=>t.reduce((n,s)=>{const a=s,u=Object.keys(a).filter(l=>!(l==="innerHTML"||l==="cssText")).reduce((l,d)=>{const m=typeof a[d]>"u"?d:`${d}="${N(a[d],r)}"`;return l?`${l} ${m}`:m},""),i=a.innerHTML||a.cssText||"",f=Fe.indexOf(e)===-1;return`${n}<${e} ${T}="true" ${u}${f?"/>":`>${i}</${e}>`}`},""),te=(e,t={})=>Object.keys(e).reduce((r,n)=>{const s=K[n];return r[s||n]=e[n],r},t),Ge=(e,t,r)=>{const n={key:t,[T]:!0},s=te(r,n);return[c.createElement("title",s,t)]},L=(e,t)=>t.map((r,n)=>{const s={key:n,[T]:!0};return Object.keys(r).forEach(a=>{const i=K[a]||a;if(i==="innerHTML"||i==="cssText"){const f=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:f}}else s[i]=r[a]}),c.createElement(e,s)}),y=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>Ge(e,t.title,t.titleAttributes),toString:()=>Ne(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>te(t),toString:()=>ee(t)};default:return{toComponent:()=>L(e,t),toString:()=>qe(e,t,r)}}},ze=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const s=_(e,H.meta),a=_(t,H.link),u=_(r,H.script);return{priorityMethods:{toComponent:()=>[...L("meta",s.priority),...L("link",a.priority),...L("script",u.priority)],toString:()=>`${y("meta",s.priority,n)} ${y("link",a.priority,n)} ${y("script",u.priority,n)}`},metaTags:s.default,linkTags:a.default,scriptTags:u.default}},Ke=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:a,styleTags:u,title:i="",titleAttributes:f,prioritizeSeoTags:l}=e;let{linkTags:d,metaTags:m,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return l&&({priorityMethods:p,linkTags:d,metaTags:m,scriptTags:h}=ze(e)),{priority:p,base:y("base",t,n),bodyAttributes:y("bodyAttributes",r,n),htmlAttributes:y("htmlAttributes",s,n),link:y("link",d,n),meta:y("meta",m,n),noscript:y("noscript",a,n),script:y("script",h,n),style:y("style",u,n),title:y("title",{title:i,titleAttributes:f},n)}},q=Ke,R=[],re=!!(typeof window<"u"&&window.document&&window.document.createElement),G=class{constructor(e,t){C(this,"instances",[]);C(this,"canUseDOM",re);C(this,"context");C(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?R:this.instances,add:e=>{(this.canUseDOM?R:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?R:this.instances).indexOf(e);(this.canUseDOM?R:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=q({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Be={},ne=c.createContext(Be),A,se=(A=class extends c.Component{constructor(r){super(r);C(this,"helmetData");this.helmetData=new G(this.props.context||{},A.canUseDOM)}render(){return c.createElement(ne.Provider,{value:this.helmetData.value},this.props.children)}},C(A,"canUseDOM",re),A),j=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${T}]`),s=[].slice.call(n),a=[];let u;return t&&t.length&&t.forEach(i=>{const f=document.createElement(e);for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l))if(l==="innerHTML")f.innerHTML=i.innerHTML;else if(l==="cssText")f.styleSheet?f.styleSheet.cssText=i.cssText:f.appendChild(document.createTextNode(i.cssText));else{const d=l,m=typeof i[d]>"u"?"":i[d];f.setAttribute(l,m)}f.setAttribute(T,"true"),s.some((l,d)=>(u=d,f.isEqualNode(l)))?s.splice(u,1):a.push(f)}),s.forEach(i=>{var f;return(f=i.parentNode)==null?void 0:f.removeChild(i)}),a.forEach(i=>r.appendChild(i)),{oldTags:s,newTags:a}},z=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(T),s=n?n.split(","):[],a=[...s],u=Object.keys(t);for(const i of u){const f=t[i]||"";r.getAttribute(i)!==f&&r.setAttribute(i,f),s.indexOf(i)===-1&&s.push(i);const l=a.indexOf(i);l!==-1&&a.splice(l,1)}for(let i=a.length-1;i>=0;i-=1)r.removeAttribute(a[i]);s.length===a.length?r.removeAttribute(T):r.getAttribute(T)!==u.join(",")&&r.setAttribute(T,u.join(","))},Ve=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=X(e)),z("title",t)},J=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:a,metaTags:u,noscriptTags:i,onChangeClientState:f,scriptTags:l,styleTags:d,title:m,titleAttributes:h}=e;z("body",n),z("html",s),Ve(m,h);const p={baseTag:j("base",r),linkTags:j("link",a),metaTags:j("meta",u),noscriptTags:j("noscript",i),scriptTags:j("script",l),styleTags:j("style",d)},g={},P={};Object.keys(p).forEach(S=>{const{newTags:E,oldTags:b}=p[S];E.length&&(g[S]=E),b.length&&(P[S]=p[S].oldTags)}),t&&t(),f(e,g,P)},k=null,Ye=e=>{k&&cancelAnimationFrame(k),e.defer?k=requestAnimationFrame(()=>{J(e,()=>{k=null})}):(J(e),k=null)},Je=Ye,W=class extends c.Component{constructor(){super(...arguments);C(this,"rendered",!1)}shouldComponentUpdate(t){return!ke(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const s=_e(t.get().map(a=>{const u={...a.props};return delete u.context,u}));se.canUseDOM?Je(s):q&&(n=q(s)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},U,We=(U=class extends c.Component{shouldComponentUpdate(e){return!Pe(Y(this.props,"helmetData"),Y(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return o.invariant(V.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${V.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),o.invariant(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return c.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:s,...a}=n.props,u=Object.keys(a).reduce((f,l)=>(f[Re[l]||l]=a[l],f),{});let{type:i}=n;switch(typeof i=="symbol"?i=i.toString():this.warnOnInvalidChildren(n,s),i){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,u,s);break;default:t=this.mapObjectTypeChildren(n,t,u,s);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof G)){const s=n;n=new G(s.context,!0),delete r.helmetData}return n?c.createElement(W,{...r,context:n.value}):c.createElement(ne.Consumer,null,s=>c.createElement(W,{...r,context:s}))}},C(U,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),U);const Z=(e,t)=>e?`${e} | ${t}`:t,Ze=({defaultHelmet:e,children:t,helmetPrefix:r})=>{const[n,s]=c.useState([Z(r??"",e)]),a=c.useCallback(l=>{s(d=>[...d,Z(r??"",l)])},[r]),u=c.useCallback(()=>{s(l=>l.length>1?l.slice(0,-1):l)},[s]),i=c.useMemo(()=>n.at(-1)??"",[n]),f=c.useMemo(()=>({addHelmet:a,removeHelmet:u}),[a,u]);return o.jsxRuntimeExports.jsx(o.HelmetContext.Provider,{value:f,children:o.jsxRuntimeExports.jsxs(se,{children:[o.jsxRuntimeExports.jsx(We,{defer:!1,children:o.jsxRuntimeExports.jsx("title",{children:i})}),t]})})},Qe=({children:e,disabled:t})=>o.jsxRuntimeExports.jsx(o.FormDisabledContext.Provider,{value:t,children:e}),Xe=()=>{const{texts:{confirm:e}}=c.useContext(o.LuminusComponentsContext),{onConfirm:t,onCancel:r,text:n,show:s}=o.useConfirm(),a=c.useCallback(u=>{switch(u.key){case"Enter":u.stopPropagation(),t();break;case"Escape":u.stopPropagation(),r();break}},[t,r]);return o.useKeyPress(a),o.jsxRuntimeExports.jsxs(o.Modal,{show:s,size:"sm",centered:!0,onHide:r,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:o.jsxRuntimeExports.jsx(o.Modal.Title,{children:n})}),o.jsxRuntimeExports.jsx(o.Modal.Body,{children:o.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[o.jsxRuntimeExports.jsx(o.PrimaryButton,{type:"button",variant:"outlined",color:"secondary",className:"w-100",onClick:r,children:e.no}),o.jsxRuntimeExports.jsx(o.PrimaryButton,{type:"button",color:"primary",onClick:t,className:"w-100 ml",children:e.yes})]})})]})};exports.AuthContext=o.AuthContext;exports.DelegationContext=o.DelegationContext;exports.FormDisabledContext=o.FormDisabledContext;exports.HelmetContext=o.HelmetContext;exports.LoadingContext=o.LoadingContext;exports.LuminusComponentsContext=o.LuminusComponentsContext;exports.UserContext=o.UserContext;exports.useFormDisabledContext=o.useFormDisabledContext;exports.AuthProvider=Ee;exports.DelegationProvider=Se;exports.FormDisabledProvider=Qe;exports.HelmetProvider=Ze;exports.LoadingProvider=Te;exports.LuminusComponentsProvider=ve;exports.UserProvider=Ce;
1
+ "use strict";var ae=Object.defineProperty;var ie=(e,t,r)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var C=(e,t,r)=>ie(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ShortcutLinksContext-XWzSJK1D.cjs"),c=require("react"),F=require("@azure/msal-browser"),le=require("@azure/msal-react");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");const ue=require("./Loading-DM-nzYkv.cjs"),ce=require("./useGetApiData-DiZBuir2.cjs"),fe=require("./useLocalStorageState-BFc8Gc8H.cjs");function de(e){const t=o.toDate(e);return t.setHours(23,59,59,999),t}function me(){return de(Date.now())}function pe(e,t){const r=+o.toDate(e),[n,s]=[+o.toDate(t.start),+o.toDate(t.end)].sort((a,u)=>a-u);return r>=n&&r<=s}function he(){return o.startOfDay(Date.now())}const xe=({children:e})=>{const[t,r]=c.useState(!1),[n,s]=c.useState(""),a=c.useCallback(f=>{r(!0),s(f)},[]),u=c.useCallback(()=>{r(!1)},[]),i=c.useMemo(()=>({show:t,text:n,showConfirm:a,hideConfirm:u}),[t,n,a,u]);return o.jsxRuntimeExports.jsxs(o.ConfirmContext.Provider,{value:i,children:[o.jsxRuntimeExports.jsx(Xe,{}),e]})},ge=()=>{const{texts:{confirm:e}}=c.useContext(o.LuminusComponentsContext),{isShown:t,text:r,onFinish:n}=o.usePrompt(),{options:s}=c.useContext(o.PromptContext),[a,u]=c.useState(s.defaultValue??""),i=c.useCallback(()=>{n(null)},[n]),f=c.useCallback(d=>{d.preventDefault(),!(s.required&&!a)&&n(a)},[n,s.required,a]);c.useEffect(()=>{t===!0&&u(s.defaultValue??"")},[t,s.defaultValue]);const l=c.useMemo(()=>({value:a,onChange:d=>u(d.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[a]);return o.jsxRuntimeExports.jsxs(o.Modal,{show:t,size:"sm",centered:!0,onHide:i,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:o.jsxRuntimeExports.jsx(o.Modal.Title,{children:r})}),o.jsxRuntimeExports.jsxs("form",{onSubmit:f,children:[o.jsxRuntimeExports.jsxs(o.Modal.Body,{children:[s.input==="textarea"?o.jsxRuntimeExports.jsx("textarea",{...l,rows:5}):void 0,s.input==="input"?o.jsxRuntimeExports.jsx(o.FormControl,{...l,type:s.type}):void 0]}),o.jsxRuntimeExports.jsxs(o.Modal.Footer,{className:"w-100 d-flex gap-5",children:[o.jsxRuntimeExports.jsx(o.PrimaryButton,{variant:"outlined",color:"secondary",onClick:i,className:"flex-grow-1",children:e.cancel}),o.jsxRuntimeExports.jsx(o.PrimaryButton,{color:"primary",disabled:s.required&&!a,type:"submit",className:"flex-grow-1",children:e.confirm})]})]})]})},ye=({children:e})=>{const[t,r]=c.useState(!1),[n,s]=c.useState(""),[a,u]=c.useState({input:"textarea",type:"text"}),i=c.useRef(()=>{}),f=c.useCallback(m=>{s(m),r(!0)},[]),l=c.useCallback(()=>{r(!1)},[]),d=c.useMemo(()=>({isShown:t,text:n,showPrompt:f,hidePrompt:l,resolveRef:i,options:a,setOptions:u}),[t,n,f,l,a]);return o.jsxRuntimeExports.jsxs(o.PromptContext.Provider,{value:d,children:[e,o.jsxRuntimeExports.jsx(ge,{})]})},ve=({cookieDomain:e,axiosOptions:t,language:r,texts:n,ProjectIconComponent:s,localizationContext:a,chartColorPalette:u,children:i})=>{const f=c.useMemo(()=>({axiosOptions:t,cookieDomain:e,language:r,texts:n,ProjectIconComponent:s,localizationContext:a,chartColorPalette:u}),[t,e,r,s,a,n,u]);return o.jsxRuntimeExports.jsx(o.LuminusComponentsContext.Provider,{value:f,children:o.jsxRuntimeExports.jsx(xe,{children:o.jsxRuntimeExports.jsxs(ye,{children:[o.jsxRuntimeExports.jsx(o.Ie,{}),i]})})})},Te=({children:e})=>{const[t,r]=c.useState(!1),[n]=c.useState(new Set),s=c.useCallback(i=>{n.add(i),r(!0)},[n]),a=c.useCallback(i=>{n.delete(i),n.size===0&&r(!1)},[n]),u=c.useMemo(()=>({isLoading:t,startLoading:s,stopLoading:a}),[t,s,a]);return o.jsxRuntimeExports.jsxs(o.LoadingContext.Provider,{value:u,children:[t&&o.jsxRuntimeExports.jsx(ue.Loading,{}),e]})},Ce=({children:e})=>{const t=o.useAxios(),{msalInstance:r}=c.useContext(o.AuthContext),{delegation:n,setDelegation:s,setAvailableDelegations:a,refreshAvailableDelegations:u}=c.useContext(o.DelegationContext),{getToken:i}=o.useAuth(),[f,l]=c.useState(null),d=c.useCallback(async()=>{const x=await i();x&&l(x.token)},[i]);c.useEffect(()=>{d()},[d]);const h=c.useCallback(()=>{const x=localStorage.getItem("user")??null;return x?JSON.parse(x??""):null},[])(),[p,g]=c.useState({state:h?o.LoginState.LOGGED_IN:o.LoginState.LOGGING_IN,user:h}),P=c.useCallback(async x=>{let v=null;return await t.get("/user/detail",x?{headers:{Authorization:`Bearer ${x}`}}:void 0).then(M=>{v=M.data}).catch(()=>{v=null}),v},[t]),S=c.useCallback(()=>{localStorage.removeItem("user"),g({state:o.LoginState.LOGGED_OUT,user:null}),s(null),a(null)},[a,s]),E=c.useCallback(async x=>{g({state:o.LoginState.LOGGING_IN,user:null});const v=await P(x);return v?(g({state:o.LoginState.LOGGED_IN,user:v}),localStorage.setItem("user",JSON.stringify(v)),await u(),!0):(g({state:o.LoginState.LOGIN_FAILED,user:null}),!1)},[P,u]),b=c.useCallback(()=>{S()},[S]);c.useEffect(()=>{if(r){const x=r.addEventCallback(v=>{if(v.eventType===F.EventType.LOGIN_SUCCESS&&v.payload){const M=v.payload;l(M.accessToken)}});return()=>{x&&r.removeEventCallback(x)}}return()=>{}},[r,E,b]);const B=c.useCallback(async x=>{x&&await E(x).catch(()=>{b(),s(null)})},[E,b,s]);c.useEffect(()=>{B(f)},[f,n==null?void 0:n.id,B]);const oe=c.useMemo(()=>({user:p.user,userLoginState:p,loginUser:E,logoutUser:b}),[p,E,b]);return o.jsxRuntimeExports.jsx(o.UserContext.Provider,{value:oe,children:e})},Ee=({...e})=>{const{cookieDomain:t}=c.useContext(o.LuminusComponentsContext),[,r]=o.useCookies(["Authorization"]),n=c.useMemo(()=>({useMsal:e.useMsal??!1,msalInstance:e.useMsal?e.msalInstance??null:null,msalScopes:e.useMsal?e.msalScopes??[]:[],msalExtraScopes:e.useMsal?e.msalExtraScopes??[]:[]}),[e]);return c.useEffect(()=>{if(e.useMsal){const s=e.msalInstance.addEventCallback(a=>{if(a.eventType===F.EventType.LOGIN_SUCCESS||a.eventType===F.EventType.ACQUIRE_TOKEN_SUCCESS&&a.payload){const u=a.payload,i=u.account;e.msalInstance.setActiveAccount(i);const f=u.accessToken,l=u.expiresOn;r("Authorization",f,{path:"/",secure:!0,sameSite:"none",domain:t,expires:l??void 0})}a.error&&console.error("AuthProvider MSAL Error",a)});return()=>{s&&e.msalInstance.removeEventCallback(s)}}return()=>{}},[e,r,t]),o.jsxRuntimeExports.jsx(o.AuthContext.Provider,{value:n,children:e.useMsal?o.jsxRuntimeExports.jsx(le.MsalProvider,{instance:e.msalInstance,children:e.children}):e.children})},Se=({children:e,relativeEndpoint:t})=>{const[r,n,s]=fe.useLocalStorageState("user-delegation",null),a=c.useMemo(()=>{if(!r)return null;const m=r.from?o.parseISO(r.from):he(),h=r.to?o.parseISO(r.to):me();return pe(new Date(Date.now()),{start:m,end:h})?r:(n(null),null)},[r,n]),{data:u,setData:i,reloadData:f}=ce.useGetApiData(t,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),l=c.useRef(null);c.useEffect(()=>{const m=()=>{f(),l.current=window.setTimeout(m,o.msToStartOfNextDay()+5e3)};return m(),()=>{l.current!==null&&window.clearTimeout(l.current)}},[f]),c.useEffect(()=>{const m=()=>{s()};return window.addEventListener("focus",m),()=>{window.removeEventListener("focus",m)}},[s,f]);const d=c.useMemo(()=>({delegation:a,setDelegation:n,availableDelegations:u,setAvailableDelegations:i,refreshAvailableDelegations:f}),[a,n,u,i,f]);return o.jsxRuntimeExports.jsx(o.DelegationContext.Provider,{value:d,children:e})};var be=typeof Element<"u",Ae=typeof Map=="function",je=typeof Set=="function",Oe=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function I(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!I(e[n],t[n]))return!1;return!0}var a;if(Ae&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!I(n.value[1],t.get(n.value[0])))return!1;return!0}if(je&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Oe&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;if(be&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((s[n]==="_owner"||s[n]==="__v"||s[n]==="__o")&&e.$$typeof)&&!I(e[s[n]],t[s[n]]))return!1;return!0}return e!==e&&t!==t}var we=function(t,r){try{return I(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Pe=o.getDefaultExportFromCjs(we);var De=function(t,r,n,s){var a=n?n.call(s,t,r):void 0;if(a!==void 0)return!!a;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var u=Object.keys(t),i=Object.keys(r);if(u.length!==i.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(r),l=0;l<u.length;l++){var d=u[l];if(!f(d))return!1;var m=t[d],h=r[d];if(a=n?n.call(s,m,h,d):void 0,a===!1||a===void 0&&m!==h)return!1}return!0};const ke=o.getDefaultExportFromCjs(De);var Q=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Q||{}),H={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},V=Object.values(Q),K={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Re=Object.entries(K).reduce((e,[t,r])=>(e[r]=t,e),{}),T="data-rh",O={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},w=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},Ie=e=>{let t=w(e,"title");const r=w(e,O.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=w(e,O.DEFAULT_TITLE);return t||n||void 0},Le=e=>w(e,O.ON_CHANGE_CLIENT_STATE)||(()=>{}),$=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),Me=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const s=Object.keys(n);for(let a=0;a<s.length;a+=1){const i=s[a].toLowerCase();if(e.indexOf(i)!==-1&&n[i])return r.concat(n)}}return r},[]),He=e=>console&&typeof console.warn=="function"&&console.warn(e),D=(e,t,r)=>{const n={};return r.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&He(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,a)=>{const u={};a.filter(f=>{let l;const d=Object.keys(f);for(let h=0;h<d.length;h+=1){const p=d[h],g=p.toLowerCase();t.indexOf(g)!==-1&&!(l==="rel"&&f[l].toLowerCase()==="canonical")&&!(g==="rel"&&f[g].toLowerCase()==="stylesheet")&&(l=g),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(l=p)}if(!l||!f[l])return!1;const m=f[l].toLowerCase();return n[l]||(n[l]={}),u[l]||(u[l]={}),n[l][m]?!1:(u[l][m]=!0,!0)}).reverse().forEach(f=>s.push(f));const i=Object.keys(u);for(let f=0;f<i.length;f+=1){const l=i[f],d={...n[l],...u[l]};n[l]=d}return s},[]).reverse()},$e=(e,t)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},_e=e=>({baseTag:Me(["href"],e),bodyAttributes:$("bodyAttributes",e),defer:w(e,O.DEFER),encode:w(e,O.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:$("htmlAttributes",e),linkTags:D("link",["rel","href"],e),metaTags:D("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:D("noscript",["innerHTML"],e),onChangeClientState:Le(e),scriptTags:D("script",["src","innerHTML"],e),styleTags:D("style",["cssText"],e),title:Ie(e),titleAttributes:$("titleAttributes",e),prioritizeSeoTags:$e(e,O.PRIORITIZE_SEO_TAGS)}),X=e=>Array.isArray(e)?e.join(""):e,Ue=(e,t)=>{const r=Object.keys(e);for(let n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1},_=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(Ue(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},Y=(e,t)=>({...e,[t]:void 0}),Fe=["noscript","script","style"],N=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),ee=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),Ne=(e,t,r,n)=>{const s=ee(r),a=X(t);return s?`<${e} ${T}="true" ${s}>${N(a,n)}</${e}>`:`<${e} ${T}="true">${N(a,n)}</${e}>`},qe=(e,t,r=!0)=>t.reduce((n,s)=>{const a=s,u=Object.keys(a).filter(l=>!(l==="innerHTML"||l==="cssText")).reduce((l,d)=>{const m=typeof a[d]>"u"?d:`${d}="${N(a[d],r)}"`;return l?`${l} ${m}`:m},""),i=a.innerHTML||a.cssText||"",f=Fe.indexOf(e)===-1;return`${n}<${e} ${T}="true" ${u}${f?"/>":`>${i}</${e}>`}`},""),te=(e,t={})=>Object.keys(e).reduce((r,n)=>{const s=K[n];return r[s||n]=e[n],r},t),Ge=(e,t,r)=>{const n={key:t,[T]:!0},s=te(r,n);return[c.createElement("title",s,t)]},L=(e,t)=>t.map((r,n)=>{const s={key:n,[T]:!0};return Object.keys(r).forEach(a=>{const i=K[a]||a;if(i==="innerHTML"||i==="cssText"){const f=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:f}}else s[i]=r[a]}),c.createElement(e,s)}),y=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>Ge(e,t.title,t.titleAttributes),toString:()=>Ne(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>te(t),toString:()=>ee(t)};default:return{toComponent:()=>L(e,t),toString:()=>qe(e,t,r)}}},ze=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const s=_(e,H.meta),a=_(t,H.link),u=_(r,H.script);return{priorityMethods:{toComponent:()=>[...L("meta",s.priority),...L("link",a.priority),...L("script",u.priority)],toString:()=>`${y("meta",s.priority,n)} ${y("link",a.priority,n)} ${y("script",u.priority,n)}`},metaTags:s.default,linkTags:a.default,scriptTags:u.default}},Ke=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:a,styleTags:u,title:i="",titleAttributes:f,prioritizeSeoTags:l}=e;let{linkTags:d,metaTags:m,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return l&&({priorityMethods:p,linkTags:d,metaTags:m,scriptTags:h}=ze(e)),{priority:p,base:y("base",t,n),bodyAttributes:y("bodyAttributes",r,n),htmlAttributes:y("htmlAttributes",s,n),link:y("link",d,n),meta:y("meta",m,n),noscript:y("noscript",a,n),script:y("script",h,n),style:y("style",u,n),title:y("title",{title:i,titleAttributes:f},n)}},q=Ke,R=[],re=!!(typeof window<"u"&&window.document&&window.document.createElement),G=class{constructor(e,t){C(this,"instances",[]);C(this,"canUseDOM",re);C(this,"context");C(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?R:this.instances,add:e=>{(this.canUseDOM?R:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?R:this.instances).indexOf(e);(this.canUseDOM?R:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=q({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Be={},ne=c.createContext(Be),A,se=(A=class extends c.Component{constructor(r){super(r);C(this,"helmetData");this.helmetData=new G(this.props.context||{},A.canUseDOM)}render(){return c.createElement(ne.Provider,{value:this.helmetData.value},this.props.children)}},C(A,"canUseDOM",re),A),j=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${T}]`),s=[].slice.call(n),a=[];let u;return t&&t.length&&t.forEach(i=>{const f=document.createElement(e);for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l))if(l==="innerHTML")f.innerHTML=i.innerHTML;else if(l==="cssText")f.styleSheet?f.styleSheet.cssText=i.cssText:f.appendChild(document.createTextNode(i.cssText));else{const d=l,m=typeof i[d]>"u"?"":i[d];f.setAttribute(l,m)}f.setAttribute(T,"true"),s.some((l,d)=>(u=d,f.isEqualNode(l)))?s.splice(u,1):a.push(f)}),s.forEach(i=>{var f;return(f=i.parentNode)==null?void 0:f.removeChild(i)}),a.forEach(i=>r.appendChild(i)),{oldTags:s,newTags:a}},z=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(T),s=n?n.split(","):[],a=[...s],u=Object.keys(t);for(const i of u){const f=t[i]||"";r.getAttribute(i)!==f&&r.setAttribute(i,f),s.indexOf(i)===-1&&s.push(i);const l=a.indexOf(i);l!==-1&&a.splice(l,1)}for(let i=a.length-1;i>=0;i-=1)r.removeAttribute(a[i]);s.length===a.length?r.removeAttribute(T):r.getAttribute(T)!==u.join(",")&&r.setAttribute(T,u.join(","))},Ve=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=X(e)),z("title",t)},J=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:a,metaTags:u,noscriptTags:i,onChangeClientState:f,scriptTags:l,styleTags:d,title:m,titleAttributes:h}=e;z("body",n),z("html",s),Ve(m,h);const p={baseTag:j("base",r),linkTags:j("link",a),metaTags:j("meta",u),noscriptTags:j("noscript",i),scriptTags:j("script",l),styleTags:j("style",d)},g={},P={};Object.keys(p).forEach(S=>{const{newTags:E,oldTags:b}=p[S];E.length&&(g[S]=E),b.length&&(P[S]=p[S].oldTags)}),t&&t(),f(e,g,P)},k=null,Ye=e=>{k&&cancelAnimationFrame(k),e.defer?k=requestAnimationFrame(()=>{J(e,()=>{k=null})}):(J(e),k=null)},Je=Ye,W=class extends c.Component{constructor(){super(...arguments);C(this,"rendered",!1)}shouldComponentUpdate(t){return!ke(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const s=_e(t.get().map(a=>{const u={...a.props};return delete u.context,u}));se.canUseDOM?Je(s):q&&(n=q(s)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},U,We=(U=class extends c.Component{shouldComponentUpdate(e){return!Pe(Y(this.props,"helmetData"),Y(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return o.invariant(V.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${V.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),o.invariant(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return c.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:s,...a}=n.props,u=Object.keys(a).reduce((f,l)=>(f[Re[l]||l]=a[l],f),{});let{type:i}=n;switch(typeof i=="symbol"?i=i.toString():this.warnOnInvalidChildren(n,s),i){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,u,s);break;default:t=this.mapObjectTypeChildren(n,t,u,s);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof G)){const s=n;n=new G(s.context,!0),delete r.helmetData}return n?c.createElement(W,{...r,context:n.value}):c.createElement(ne.Consumer,null,s=>c.createElement(W,{...r,context:s}))}},C(U,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),U);const Z=(e,t)=>e?`${e} | ${t}`:t,Ze=({defaultHelmet:e,children:t,helmetPrefix:r})=>{const[n,s]=c.useState([Z(r??"",e)]),a=c.useCallback(l=>{s(d=>[...d,Z(r??"",l)])},[r]),u=c.useCallback(()=>{s(l=>l.length>1?l.slice(0,-1):l)},[s]),i=c.useMemo(()=>n.at(-1)??"",[n]),f=c.useMemo(()=>({addHelmet:a,removeHelmet:u}),[a,u]);return o.jsxRuntimeExports.jsx(o.HelmetContext.Provider,{value:f,children:o.jsxRuntimeExports.jsxs(se,{children:[o.jsxRuntimeExports.jsx(We,{defer:!1,children:o.jsxRuntimeExports.jsx("title",{children:i})}),t]})})},Qe=({children:e,disabled:t})=>o.jsxRuntimeExports.jsx(o.FormDisabledContext.Provider,{value:t,children:e}),Xe=()=>{const{texts:{confirm:e}}=c.useContext(o.LuminusComponentsContext),{onConfirm:t,onCancel:r,text:n,show:s}=o.useConfirm(),a=c.useCallback(u=>{switch(u.key){case"Enter":u.stopPropagation(),t();break;case"Escape":u.stopPropagation(),r();break}},[t,r]);return o.useKeyPress(a),o.jsxRuntimeExports.jsxs(o.Modal,{show:s,size:"sm",centered:!0,onHide:r,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:o.jsxRuntimeExports.jsx(o.Modal.Title,{children:n})}),o.jsxRuntimeExports.jsx(o.Modal.Body,{children:o.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[o.jsxRuntimeExports.jsx(o.PrimaryButton,{type:"button",variant:"outlined",color:"secondary",className:"w-100",onClick:r,children:e.no}),o.jsxRuntimeExports.jsx(o.PrimaryButton,{type:"button",color:"primary",onClick:t,className:"w-100 ml",children:e.yes})]})})]})};exports.AuthContext=o.AuthContext;exports.DelegationContext=o.DelegationContext;exports.FormDisabledContext=o.FormDisabledContext;exports.HelmetContext=o.HelmetContext;exports.LoadingContext=o.LoadingContext;exports.LuminusComponentsContext=o.LuminusComponentsContext;exports.UserContext=o.UserContext;exports.useFormDisabledContext=o.useFormDisabledContext;exports.AuthProvider=Ee;exports.DelegationProvider=Se;exports.FormDisabledProvider=Qe;exports.HelmetProvider=Ze;exports.LoadingProvider=Te;exports.LuminusComponentsProvider=ve;exports.UserProvider=Ce;
@@ -1,26 +1,26 @@
1
1
  var Se = Object.defineProperty;
2
2
  var Ee = (e, t, r) => t in e ? Se(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var A = (e, t, r) => Ee(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { t as N, bs as Oe, j as f, bt as we, P as q, ah as Ie, bu as fe, an as S, ae as Pe, Q as G, bv as je, al as De, aj as ke, a_ as de, bw as me, a$ as Le, b0 as D, ak as He, bx as _e, az as se, by as $e, aR as pe, bz as oe, bA as Me, bB as Re, ai as Ue, aV as Ne } from "./nivo-bar.es-6lsCp0u9.js";
5
- import { ac as Bt } from "./nivo-bar.es-6lsCp0u9.js";
6
- import O, { useState as C, useCallback as m, useMemo as b, useContext as _, useEffect as j, useRef as he, Component as te } from "react";
7
- import { EventType as Q } from "@azure/msal-browser";
4
+ import { t as N, bs as Oe, j as f, bt as we, P as q, bd as Ie, bu as fe, a3 as S, bc as Pe, Q as G, bv as je, aX as De, aj as ke, az as de, bw as me, aA as Le, aC as D, aB as He, bx as _e, aT as se, by as $e, ao as pe, bz as oe, bA as Me, bB as Re, aZ as Ue, as as Ne } from "./ShortcutLinksContext-Cwe_su3H.js";
5
+ import { ba as Vt } from "./ShortcutLinksContext-Cwe_su3H.js";
6
+ import O, { useState as b, useCallback as m, useMemo as C, useContext as _, useEffect as j, useRef as he, Component as te } from "react";
7
+ import { EventType as J } from "@azure/msal-browser";
8
8
  import { MsalProvider as Fe } from "@azure/msal-react";
9
9
  import "react-router-dom";
10
10
  import "react-dom";
11
11
  import "react-hook-form";
12
12
  import "react-flexmonster";
13
- import { L as ze } from "./Loading-DURDhdEz.js";
14
- import { u as Ge } from "./useGetApiData-CxOk371O.js";
13
+ import { L as ze } from "./Loading-B_K3LUbw.js";
14
+ import { u as Ge } from "./useGetApiData-Cm6IXU3J.js";
15
15
  import { u as qe } from "./useLocalStorageState-Bt99kkCr.js";
16
16
  function Ke(e) {
17
17
  const t = N(e);
18
18
  return t.setHours(23, 59, 59, 999), t;
19
19
  }
20
- function Ve() {
20
+ function Be() {
21
21
  return Ke(Date.now());
22
22
  }
23
- function Be(e, t) {
23
+ function Ve(e, t) {
24
24
  const r = +N(e), [n, s] = [
25
25
  +N(t.start),
26
26
  +N(t.end)
@@ -30,18 +30,18 @@ function Be(e, t) {
30
30
  function Ye() {
31
31
  return Oe(Date.now());
32
32
  }
33
- const Je = ({ children: e }) => {
34
- const [t, r] = C(!1), [n, s] = C(""), o = m((c) => {
33
+ const Ze = ({ children: e }) => {
34
+ const [t, r] = b(!1), [n, s] = b(""), o = m((c) => {
35
35
  r(!0), s(c);
36
36
  }, []), l = m(() => {
37
37
  r(!1);
38
- }, []), a = b(() => ({ show: t, text: n, showConfirm: o, hideConfirm: l }), [t, n, o, l]);
38
+ }, []), a = C(() => ({ show: t, text: n, showConfirm: o, hideConfirm: l }), [t, n, o, l]);
39
39
  return /* @__PURE__ */ f.jsxs(we.Provider, { value: a, children: [
40
40
  /* @__PURE__ */ f.jsx(Et, {}),
41
41
  e
42
42
  ] });
43
- }, Qe = () => {
44
- const { texts: { confirm: e } } = _(q), { isShown: t, text: r, onFinish: n } = Ie(), { options: s } = _(fe), [o, l] = C(s.defaultValue ?? ""), a = m(() => {
43
+ }, Je = () => {
44
+ const { texts: { confirm: e } } = _(q), { isShown: t, text: r, onFinish: n } = Ie(), { options: s } = _(fe), [o, l] = b(s.defaultValue ?? ""), a = m(() => {
45
45
  n(null);
46
46
  }, [n]), c = m((u) => {
47
47
  u.preventDefault(), !(s.required && !o) && n(o);
@@ -49,7 +49,7 @@ const Je = ({ children: e }) => {
49
49
  j(() => {
50
50
  t === !0 && l(s.defaultValue ?? "");
51
51
  }, [t, s.defaultValue]);
52
- const i = b(() => ({
52
+ const i = C(() => ({
53
53
  value: o,
54
54
  onChange: (u) => l(u.currentTarget.value),
55
55
  className: "w-100",
@@ -69,13 +69,13 @@ const Je = ({ children: e }) => {
69
69
  ] })
70
70
  ] })
71
71
  ] });
72
- }, We = ({ children: e }) => {
73
- const [t, r] = C(!1), [n, s] = C(""), [o, l] = C({ input: "textarea", type: "text" }), a = he(() => {
72
+ }, Qe = ({ children: e }) => {
73
+ const [t, r] = b(!1), [n, s] = b(""), [o, l] = b({ input: "textarea", type: "text" }), a = he(() => {
74
74
  }), c = m((d) => {
75
75
  s(d), r(!0);
76
76
  }, []), i = m(() => {
77
77
  r(!1);
78
- }, []), u = b(() => ({
78
+ }, []), u = C(() => ({
79
79
  isShown: t,
80
80
  text: n,
81
81
  showPrompt: c,
@@ -86,10 +86,10 @@ const Je = ({ children: e }) => {
86
86
  }), [t, n, c, i, o]);
87
87
  return /* @__PURE__ */ f.jsxs(fe.Provider, { value: u, children: [
88
88
  e,
89
- /* @__PURE__ */ f.jsx(Qe, {})
89
+ /* @__PURE__ */ f.jsx(Je, {})
90
90
  ] });
91
91
  }, Rt = ({ cookieDomain: e, axiosOptions: t, language: r, texts: n, ProjectIconComponent: s, localizationContext: o, chartColorPalette: l, children: a }) => {
92
- const c = b(() => ({
92
+ const c = C(() => ({
93
93
  axiosOptions: t,
94
94
  cookieDomain: e,
95
95
  language: r,
@@ -106,22 +106,22 @@ const Je = ({ children: e }) => {
106
106
  n,
107
107
  l
108
108
  ]);
109
- return /* @__PURE__ */ f.jsx(q.Provider, { value: c, children: /* @__PURE__ */ f.jsx(Je, { children: /* @__PURE__ */ f.jsxs(We, { children: [
109
+ return /* @__PURE__ */ f.jsx(q.Provider, { value: c, children: /* @__PURE__ */ f.jsx(Ze, { children: /* @__PURE__ */ f.jsxs(Qe, { children: [
110
110
  /* @__PURE__ */ f.jsx(je, {}),
111
111
  a
112
112
  ] }) }) });
113
113
  }, Ut = ({ children: e }) => {
114
- const [t, r] = C(!1), [n] = C(/* @__PURE__ */ new Set()), s = m((a) => {
114
+ const [t, r] = b(!1), [n] = b(/* @__PURE__ */ new Set()), s = m((a) => {
115
115
  n.add(a), r(!0);
116
116
  }, [n]), o = m((a) => {
117
117
  n.delete(a), n.size === 0 && r(!1);
118
- }, [n]), l = b(() => ({ isLoading: t, startLoading: s, stopLoading: o }), [t, s, o]);
118
+ }, [n]), l = C(() => ({ isLoading: t, startLoading: s, stopLoading: o }), [t, s, o]);
119
119
  return /* @__PURE__ */ f.jsxs(De.Provider, { value: l, children: [
120
120
  t && /* @__PURE__ */ f.jsx(ze, {}),
121
121
  e
122
122
  ] });
123
123
  }, Nt = ({ children: e }) => {
124
- const t = ke(), { msalInstance: r } = _(de), { delegation: n, setDelegation: s, setAvailableDelegations: o, refreshAvailableDelegations: l } = _(me), { getToken: a } = Le(), [c, i] = C(null), u = m(async () => {
124
+ const t = ke(), { msalInstance: r } = _(de), { delegation: n, setDelegation: s, setAvailableDelegations: o, refreshAvailableDelegations: l } = _(me), { getToken: a } = Le(), [c, i] = b(null), u = m(async () => {
125
125
  const y = await a();
126
126
  y && i(y.token);
127
127
  }, [a]);
@@ -131,7 +131,7 @@ const Je = ({ children: e }) => {
131
131
  const h = m(() => {
132
132
  const y = localStorage.getItem("user") ?? null;
133
133
  return y ? JSON.parse(y ?? "") : null;
134
- }, [])(), [p, g] = C({
134
+ }, [])(), [p, g] = b({
135
135
  state: h ? D.LOGGED_IN : D.LOGGING_IN,
136
136
  user: h
137
137
  }), $ = m(async (y) => {
@@ -165,7 +165,7 @@ const Je = ({ children: e }) => {
165
165
  j(() => {
166
166
  if (r) {
167
167
  const y = r.addEventCallback((v) => {
168
- if (v.eventType === Q.LOGIN_SUCCESS && v.payload) {
168
+ if (v.eventType === J.LOGIN_SUCCESS && v.payload) {
169
169
  const K = v.payload;
170
170
  i(K.accessToken);
171
171
  }
@@ -185,7 +185,7 @@ const Je = ({ children: e }) => {
185
185
  j(() => {
186
186
  ne(c);
187
187
  }, [c, n == null ? void 0 : n.id, ne]);
188
- const Ae = b(() => ({
188
+ const Ae = C(() => ({
189
189
  user: p.user,
190
190
  userLoginState: p,
191
191
  loginUser: E,
@@ -193,7 +193,7 @@ const Je = ({ children: e }) => {
193
193
  }), [p, E, I]);
194
194
  return /* @__PURE__ */ f.jsx(He.Provider, { value: Ae, children: e });
195
195
  }, Ft = ({ ...e }) => {
196
- const { cookieDomain: t } = _(q), [, r] = _e(["Authorization"]), n = b(() => ({
196
+ const { cookieDomain: t } = _(q), [, r] = _e(["Authorization"]), n = C(() => ({
197
197
  useMsal: e.useMsal ?? !1,
198
198
  msalInstance: e.useMsal ? e.msalInstance ?? null : null,
199
199
  msalScopes: e.useMsal ? e.msalScopes ?? [] : [],
@@ -202,7 +202,7 @@ const Je = ({ children: e }) => {
202
202
  return j(() => {
203
203
  if (e.useMsal) {
204
204
  const s = e.msalInstance.addEventCallback((o) => {
205
- if (o.eventType === Q.LOGIN_SUCCESS || o.eventType === Q.ACQUIRE_TOKEN_SUCCESS && o.payload) {
205
+ if (o.eventType === J.LOGIN_SUCCESS || o.eventType === J.ACQUIRE_TOKEN_SUCCESS && o.payload) {
206
206
  const l = o.payload, a = l.account;
207
207
  e.msalInstance.setActiveAccount(a);
208
208
  const c = l.accessToken, i = l.expiresOn;
@@ -224,11 +224,11 @@ const Je = ({ children: e }) => {
224
224
  };
225
225
  }, [e, r, t]), /* @__PURE__ */ f.jsx(de.Provider, { value: n, children: e.useMsal ? /* @__PURE__ */ f.jsx(Fe, { instance: e.msalInstance, children: e.children }) : e.children });
226
226
  }, zt = ({ children: e, relativeEndpoint: t }) => {
227
- const [r, n, s] = qe("user-delegation", null), o = b(() => {
227
+ const [r, n, s] = qe("user-delegation", null), o = C(() => {
228
228
  if (!r)
229
229
  return null;
230
- const d = r.from ? se(r.from) : Ye(), h = r.to ? se(r.to) : Ve();
231
- return Be(new Date(Date.now()), { start: d, end: h }) ? r : (n(null), null);
230
+ const d = r.from ? se(r.from) : Ye(), h = r.to ? se(r.to) : Be();
231
+ return Ve(new Date(Date.now()), { start: d, end: h }) ? r : (n(null), null);
232
232
  }, [r, n]), { data: l, setData: a, reloadData: c } = Ge(t, {
233
233
  nullStateBeforeLoad: !1,
234
234
  nullStateOnFail: !0
@@ -248,7 +248,7 @@ const Je = ({ children: e }) => {
248
248
  window.removeEventListener("focus", d);
249
249
  };
250
250
  }, [s, c]);
251
- const u = b(() => ({
251
+ const u = C(() => ({
252
252
  delegation: o,
253
253
  setDelegation: n,
254
254
  availableDelegations: l,
@@ -263,7 +263,7 @@ const Je = ({ children: e }) => {
263
263
  ]);
264
264
  return /* @__PURE__ */ f.jsx(me.Provider, { value: u, children: e });
265
265
  };
266
- var Ze = typeof Element < "u", Xe = typeof Map == "function", et = typeof Set == "function", tt = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
266
+ var We = typeof Element < "u", Xe = typeof Map == "function", et = typeof Set == "function", tt = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
267
267
  function F(e, t) {
268
268
  if (e === t) return !0;
269
269
  if (e && t && typeof e == "object" && typeof t == "object") {
@@ -302,7 +302,7 @@ function F(e, t) {
302
302
  if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
303
303
  for (n = r; n-- !== 0; )
304
304
  if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
305
- if (Ze && e instanceof Element) return !1;
305
+ if (We && e instanceof Element) return !1;
306
306
  for (n = r; n-- !== 0; )
307
307
  if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !F(e[s[n]], t[s[n]]))
308
308
  return !1;
@@ -342,7 +342,7 @@ var st = function(t, r, n, s) {
342
342
  return !0;
343
343
  };
344
344
  const ot = /* @__PURE__ */ pe(st);
345
- var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(ye || {}), V = {
345
+ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(ye || {}), B = {
346
346
  link: { rel: ["amphtml", "canonical", "alternate"] },
347
347
  script: { type: ["application/ld+json"] },
348
348
  meta: {
@@ -402,7 +402,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
402
402
  const n = H(e, L.DEFAULT_TITLE);
403
403
  return t || n || void 0;
404
404
  }, lt = (e) => H(e, L.ON_CHANGE_CLIENT_STATE) || (() => {
405
- }), B = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), ct = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
405
+ }), V = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), ct = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
406
406
  if (!r.length) {
407
407
  const s = Object.keys(n);
408
408
  for (let o = 0; o < s.length; o += 1) {
@@ -452,10 +452,10 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
452
452
  "href"
453
453
  /* HREF */
454
454
  ], e),
455
- bodyAttributes: B("bodyAttributes", e),
455
+ bodyAttributes: V("bodyAttributes", e),
456
456
  defer: H(e, L.DEFER),
457
457
  encode: H(e, L.ENCODE_SPECIAL_CHARACTERS),
458
- htmlAttributes: B("htmlAttributes", e),
458
+ htmlAttributes: V("htmlAttributes", e),
459
459
  linkTags: M(
460
460
  "link",
461
461
  [
@@ -496,7 +496,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
496
496
  /* CSS_TEXT */
497
497
  ], e),
498
498
  title: it(e),
499
- titleAttributes: B("titleAttributes", e),
499
+ titleAttributes: V("titleAttributes", e),
500
500
  prioritizeSeoTags: ft(e, L.PRIORITIZE_SEO_TAGS)
501
501
  }), ge = (e) => Array.isArray(e) ? e.join("") : e, mt = (e, t) => {
502
502
  const r = Object.keys(e);
@@ -515,15 +515,15 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
515
515
  "script",
516
516
  "style"
517
517
  /* STYLE */
518
- ], W = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), Te = (e) => Object.keys(e).reduce((t, r) => {
518
+ ], Q = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), Te = (e) => Object.keys(e).reduce((t, r) => {
519
519
  const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
520
520
  return t ? `${t} ${n}` : n;
521
521
  }, ""), ht = (e, t, r, n) => {
522
522
  const s = Te(r), o = ge(t);
523
- return s ? `<${e} ${x}="true" ${s}>${W(
523
+ return s ? `<${e} ${x}="true" ${s}>${Q(
524
524
  o,
525
525
  n
526
- )}</${e}>` : `<${e} ${x}="true">${W(
526
+ )}</${e}>` : `<${e} ${x}="true">${Q(
527
527
  o,
528
528
  n
529
529
  )}</${e}>`;
@@ -531,7 +531,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
531
531
  const o = s, l = Object.keys(o).filter(
532
532
  (i) => !(i === "innerHTML" || i === "cssText")
533
533
  ).reduce((i, u) => {
534
- const d = typeof o[u] > "u" ? u : `${u}="${W(o[u], r)}"`;
534
+ const d = typeof o[u] > "u" ? u : `${u}="${Q(o[u], r)}"`;
535
535
  return i ? `${i} ${d}` : d;
536
536
  }, ""), a = o.innerHTML || o.cssText || "", c = pt.indexOf(e) === -1;
537
537
  return `${n}<${e} ${x}="true" ${l}${c ? "/>" : `>${a}</${e}>`}`;
@@ -577,7 +577,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
577
577
  };
578
578
  }
579
579
  }, Tt = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
580
- const s = Y(e, V.meta), o = Y(t, V.link), l = Y(r, V.script);
580
+ const s = Y(e, B.meta), o = Y(t, B.link), l = Y(r, B.script);
581
581
  return {
582
582
  priorityMethods: {
583
583
  toComponent: () => [
@@ -627,7 +627,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
627
627
  style: T("style", l, n),
628
628
  title: T("title", { title: a, titleAttributes: c }, n)
629
629
  };
630
- }, Z = vt, U = [], xe = !!(typeof window < "u" && window.document && window.document.createElement), X = class {
630
+ }, W = vt, U = [], xe = !!(typeof window < "u" && window.document && window.document.createElement), X = class {
631
631
  constructor(e, t) {
632
632
  A(this, "instances", []);
633
633
  A(this, "canUseDOM", xe);
@@ -647,7 +647,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
647
647
  }
648
648
  }
649
649
  });
650
- this.context = e, this.canUseDOM = t || !1, t || (e.helmet = Z({
650
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = W({
651
651
  baseTag: [],
652
652
  bodyAttributes: {},
653
653
  encodeSpecialCharacters: !0,
@@ -661,14 +661,14 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
661
661
  titleAttributes: {}
662
662
  }));
663
663
  }
664
- }, xt = {}, Ce = O.createContext(xt), P, be = (P = class extends te {
664
+ }, xt = {}, be = O.createContext(xt), P, Ce = (P = class extends te {
665
665
  constructor(r) {
666
666
  super(r);
667
667
  A(this, "helmetData");
668
668
  this.helmetData = new X(this.props.context || {}, P.canUseDOM);
669
669
  }
670
670
  render() {
671
- return /* @__PURE__ */ O.createElement(Ce.Provider, { value: this.helmetData.value }, this.props.children);
671
+ return /* @__PURE__ */ O.createElement(be.Provider, { value: this.helmetData.value }, this.props.children);
672
672
  }
673
673
  }, A(P, "canUseDOM", xe), P), k = (e, t) => {
674
674
  const r = document.head || document.querySelector(
@@ -710,7 +710,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
710
710
  for (let a = o.length - 1; a >= 0; a -= 1)
711
711
  r.removeAttribute(o[a]);
712
712
  s.length === o.length ? r.removeAttribute(x) : r.getAttribute(x) !== l.join(",") && r.setAttribute(x, l.join(","));
713
- }, Ct = (e, t) => {
713
+ }, bt = (e, t) => {
714
714
  typeof e < "u" && document.title !== e && (document.title = ge(e)), ee("title", t);
715
715
  }, le = (e, t) => {
716
716
  const {
@@ -726,7 +726,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
726
726
  title: d,
727
727
  titleAttributes: h
728
728
  } = e;
729
- ee("body", n), ee("html", s), Ct(d, h);
729
+ ee("body", n), ee("html", s), bt(d, h);
730
730
  const p = {
731
731
  baseTag: k("base", r),
732
732
  linkTags: k("link", o),
@@ -739,13 +739,13 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
739
739
  const { newTags: E, oldTags: I } = p[w];
740
740
  E.length && (g[w] = E), I.length && ($[w] = p[w].oldTags);
741
741
  }), t && t(), c(e, g, $);
742
- }, R = null, bt = (e) => {
742
+ }, R = null, Ct = (e) => {
743
743
  R && cancelAnimationFrame(R), e.defer ? R = requestAnimationFrame(() => {
744
744
  le(e, () => {
745
745
  R = null;
746
746
  });
747
747
  }) : (le(e), R = null);
748
- }, At = bt, ce = class extends te {
748
+ }, At = Ct, ce = class extends te {
749
749
  constructor() {
750
750
  super(...arguments);
751
751
  A(this, "rendered", !1);
@@ -769,7 +769,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
769
769
  return delete l.context, l;
770
770
  })
771
771
  );
772
- be.canUseDOM ? At(s) : Z && (n = Z(s)), r(n);
772
+ Ce.canUseDOM ? At(s) : W && (n = W(s)), r(n);
773
773
  }
774
774
  // componentWillMount will be deprecated
775
775
  // for SSR, initialize on first render
@@ -784,7 +784,7 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
784
784
  render() {
785
785
  return this.init(), null;
786
786
  }
787
- }, J, St = (J = class extends te {
787
+ }, Z, St = (Z = class extends te {
788
788
  shouldComponentUpdate(e) {
789
789
  return !nt(ie(this.props, "helmetData"), ie(e, "helmetData"));
790
790
  }
@@ -900,22 +900,22 @@ var ye = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
900
900
  const s = n;
901
901
  n = new X(s.context, !0), delete r.helmetData;
902
902
  }
903
- return n ? /* @__PURE__ */ O.createElement(ce, { ...r, context: n.value }) : /* @__PURE__ */ O.createElement(Ce.Consumer, null, (s) => /* @__PURE__ */ O.createElement(ce, { ...r, context: s }));
903
+ return n ? /* @__PURE__ */ O.createElement(ce, { ...r, context: n.value }) : /* @__PURE__ */ O.createElement(be.Consumer, null, (s) => /* @__PURE__ */ O.createElement(ce, { ...r, context: s }));
904
904
  }
905
- }, A(J, "defaultProps", {
905
+ }, A(Z, "defaultProps", {
906
906
  defer: !0,
907
907
  encodeSpecialCharacters: !0,
908
908
  prioritizeSeoTags: !1
909
- }), J);
909
+ }), Z);
910
910
  const ue = (e, t) => e ? `${e} | ${t}` : t, Gt = ({ defaultHelmet: e, children: t, helmetPrefix: r }) => {
911
- const [n, s] = C([
911
+ const [n, s] = b([
912
912
  ue(r ?? "", e)
913
913
  ]), o = m((i) => {
914
914
  s((u) => [...u, ue(r ?? "", i)]);
915
915
  }, [r]), l = m(() => {
916
916
  s((i) => i.length > 1 ? i.slice(0, -1) : i);
917
- }, [s]), a = b(() => n.at(-1) ?? "", [n]), c = b(() => ({ addHelmet: o, removeHelmet: l }), [o, l]);
918
- return /* @__PURE__ */ f.jsx(Me.Provider, { value: c, children: /* @__PURE__ */ f.jsxs(be, { children: [
917
+ }, [s]), a = C(() => n.at(-1) ?? "", [n]), c = C(() => ({ addHelmet: o, removeHelmet: l }), [o, l]);
918
+ return /* @__PURE__ */ f.jsx(Me.Provider, { value: c, children: /* @__PURE__ */ f.jsxs(Ce, { children: [
919
919
  /* @__PURE__ */ f.jsx(St, { defer: !1, children: /* @__PURE__ */ f.jsx("title", { children: a }) }),
920
920
  t
921
921
  ] }) });
@@ -953,5 +953,5 @@ export {
953
953
  Rt as LuminusComponentsProvider,
954
954
  He as UserContext,
955
955
  Nt as UserProvider,
956
- Bt as useFormDisabledContext
956
+ Vt as useFormDisabledContext
957
957
  };
package/dist/hooks.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-bar.es-CLm92c93.cjs"),k=require("./usePermissions-dNr08Ag7.cjs"),T=require("./useGetApiData-DIAzAaPZ.cjs"),c=require("react"),x=require("./useLocalStorageState-BFc8Gc8H.cjs"),f=require("./useRenderDraggableInPortal-QPCaw-E_.cjs");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");const B=r=>{let t="pending",u;const s=r.then(a=>{t="success",u=a},a=>{t="error",u=a});return()=>{switch(t){case"pending":throw s;case"success":return u;case"error":throw u;default:throw new Error("Unknown status")}}};function G(r,t){const u=e.useAxios({silent:!0,differentBaseUrl:t==null?void 0:t.customBaseUrl,customToken:t==null?void 0:t.customToken}),[s,a]=c.useState(null);return c.useEffect(()=>{(async()=>{const n=u.get(r).then(o=>o.data);a(B(n))})()},[u,r]),s}const L=(r,t,u)=>{let s="pending",a;const i=r.then(n=>{s="success",a=n},n=>{const o=n==null?void 0:n.response;(o==null?void 0:o.status)===404&&u?(s="error-404",a=n):(s="error",a=n)});return()=>{switch(s){case"pending":throw i;case"success":return a;case"error":return null;case"error-404":throw new Error("404");default:throw new Error("Unknown status")}}},l={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},E=(r,{loadOnInit:t=l.loadOnInit,enabled:u=l.enabled,silent:s=l.silent,nullStateBeforeLoad:a=l.nullStateBeforeLoad,nullStateOnFail:i=l.nullStateOnFail,customApiUrl:n,customBearerToken:o,dataTransformer:h,errorBoundaryOn404:S}=l)=>{const p=e.useAxios({silent:s,customToken:o,differentBaseUrl:n,noToastOnStatus:S?[404]:void 0}),{startLoading:D,stopLoading:w}=c.useContext(e.LoadingContext),C=c.useRef(0),{isAuthenticated:P}=e.useAuth(),[b,g]=c.useState(null),m=c.useCallback(async(d,y)=>{if(!P()||u===!1)return;!s&&D(`loadData-${r}-${y}`),a&&g(null);const q=p.get(r,{signal:d}).then(A=>h?h(A.data):A.data).finally(()=>!s&&w(`loadData-${r}-${y}`));g(L(q,i??!1,S??!1))},[P,u,s,D,r,a,p,h,w,i,S]);return c.useEffect(()=>{if(t===!1)return;const d=new AbortController;return m(d.signal,++C.current),()=>{d.abort()}},[m,t]),{data:b,setData:g,reloadData:m}};exports.cancelToken=e.cancelToken;exports.useAuth=e.useAuth;exports.useAxios=e.useAxios;exports.useClickOutside=e.useClickOutside;exports.useClipboard=e.useClipboard;exports.useConfirm=e.useConfirm;exports.useFormControlType=e.useFormControlType;exports.useKeyPress=e.useKeyPress;exports.useNotifications=e.useNotifications;exports.usePrompt=e.usePrompt;exports.useWindowSize=e.useWindowSize;exports.useZodSchemaTypes=e.useZodSchemaTypes;exports.usePermissions=k.usePermissions;exports.useGetApiData=T.useGetApiData;exports.useLocalStorageState=x.useLocalStorageState;exports.useEmployeePhotoPath=f.useEmployeePhotoPath;exports.useRenderDraggableInPortal=f.useRenderDraggableInPortal;exports.useSearchQuery=f.useSearchQuery;exports.useSearchQueryState=f.useSearchQueryState;exports.useGetApiDataBound=E;exports.useGetDataBound=G;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ShortcutLinksContext-XWzSJK1D.cjs"),k=require("./usePermissions-nqCQHj93.cjs"),x=require("./useGetApiData-DiZBuir2.cjs"),c=require("react"),T=require("./useLocalStorageState-BFc8Gc8H.cjs"),f=require("./useRenderDraggableInPortal-QPCaw-E_.cjs");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");const L=r=>{let t="pending",u;const s=r.then(a=>{t="success",u=a},a=>{t="error",u=a});return()=>{switch(t){case"pending":throw s;case"success":return u;case"error":throw u;default:throw new Error("Unknown status")}}};function G(r,t){const u=e.useAxios({silent:!0,differentBaseUrl:t==null?void 0:t.customBaseUrl,customToken:t==null?void 0:t.customToken}),[s,a]=c.useState(null);return c.useEffect(()=>{(async()=>{const n=u.get(r).then(o=>o.data);a(L(n))})()},[u,r]),s}const B=(r,t,u)=>{let s="pending",a;const i=r.then(n=>{s="success",a=n},n=>{const o=n==null?void 0:n.response;(o==null?void 0:o.status)===404&&u?(s="error-404",a=n):(s="error",a=n)});return()=>{switch(s){case"pending":throw i;case"success":return a;case"error":return null;case"error-404":throw new Error("404");default:throw new Error("Unknown status")}}},l={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},E=(r,{loadOnInit:t=l.loadOnInit,enabled:u=l.enabled,silent:s=l.silent,nullStateBeforeLoad:a=l.nullStateBeforeLoad,nullStateOnFail:i=l.nullStateOnFail,customApiUrl:n,customBearerToken:o,dataTransformer:h,errorBoundaryOn404:S}=l)=>{const p=e.useAxios({silent:s,customToken:o,differentBaseUrl:n,noToastOnStatus:S?[404]:void 0}),{startLoading:D,stopLoading:w}=c.useContext(e.LoadingContext),C=c.useRef(0),{isAuthenticated:P}=e.useAuth(),[b,g]=c.useState(null),m=c.useCallback(async(d,y)=>{if(!P()||u===!1)return;!s&&D(`loadData-${r}-${y}`),a&&g(null);const q=p.get(r,{signal:d}).then(A=>h?h(A.data):A.data).finally(()=>!s&&w(`loadData-${r}-${y}`));g(B(q,i??!1,S??!1))},[P,u,s,D,r,a,p,h,w,i,S]);return c.useEffect(()=>{if(t===!1)return;const d=new AbortController;return m(d.signal,++C.current),()=>{d.abort()}},[m,t]),{data:b,setData:g,reloadData:m}};exports.cancelToken=e.cancelToken;exports.useAuth=e.useAuth;exports.useAxios=e.useAxios;exports.useClickOutside=e.useClickOutside;exports.useClipboard=e.useClipboard;exports.useConfirm=e.useConfirm;exports.useFormControlType=e.useFormControlType;exports.useKeyPress=e.useKeyPress;exports.useNotifications=e.useNotifications;exports.usePrompt=e.usePrompt;exports.useWindowSize=e.useWindowSize;exports.useZodSchemaTypes=e.useZodSchemaTypes;exports.usePermissions=k.usePermissions;exports.useGetApiData=x.useGetApiData;exports.useLocalStorageState=T.useLocalStorageState;exports.useEmployeePhotoPath=f.useEmployeePhotoPath;exports.useRenderDraggableInPortal=f.useRenderDraggableInPortal;exports.useSearchQuery=f.useSearchQuery;exports.useSearchQueryState=f.useSearchQueryState;exports.useGetApiDataBound=E;exports.useGetDataBound=G;