react-luminus-components 1.4.11 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +26 -26
- package/dist/{FormDisabledProvider-wjVU-UDj.js → FormDisabledProvider-M9P4Qmd7.js} +1 -1
- package/dist/{FormDisabledProvider-CzIIP5iK.cjs → FormDisabledProvider-obA9soBx.cjs} +1 -1
- package/dist/{ShortcutLinksContext-DQUAaAAE.cjs → ShortcutLinksContext-BtI3NfVP.cjs} +2 -2
- package/dist/{ShortcutLinksContext-NemA5txI.js → ShortcutLinksContext-b-GyjKck.js} +27 -27
- package/dist/components/ResponsiveContextDropdown/components/ResponsiveContextDropdownItem/ResponsiveContextDropdownItem.d.ts +2 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +3 -3
- package/dist/layout/PageContainer/PageContainer.d.ts +1 -1
- package/dist/layout/SideContentBar/SideContentBar.d.ts +2 -1
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +4 -4
- package/dist/models/prop-types/ContainerProps.d.ts +1 -0
- package/dist/{useGetApiData-Du9VtAkX.cjs → useGetApiData-2ImsUo6s.cjs} +1 -1
- package/dist/{useGetApiData-DiyaoMek.js → useGetApiData-DJmqCWl6.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +2 -2
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ShortcutLinksContext-DQUAaAAE.cjs"),m=require("react"),Se=require("./FormDisabledProvider-CzIIP5iK.cjs"),Gs=require("@azure/msal-browser"),Ws=require("@azure/msal-react"),ce=require("react-router-dom"),gt=require("react-dom"),Te=require("react-hook-form"),Us=require("react-flexmonster"),Yt=require("./useRenderDraggableInPortal-QPCaw-E_.cjs"),We=require("./useGetApiData-Du9VtAkX.cjs"),Tt=require("./numberUtils-BY7ziQF8.cjs");function Hs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const me=Hs(m),zs=({fileLoader:e,fileName:t,children:r})=>{const o=m.useCallback(async()=>{var l,c;const a=await e();if(!a)return;const i=window.URL.createObjectURL(new Blob([a])),s=document.createElement("a");s.href=i,s.setAttribute("download",t),(l=document.body)==null||l.appendChild(s),s.click(),(c=document.body)==null||c.removeChild(s)},[e,t]);return n.jsxRuntimeExports.jsx("div",{role:"button",onClick:o,children:r})},Ba=({className:e,size:t,...r})=>n.jsxRuntimeExports.jsxs("div",{className:n.classNames("luminus-loading",Se.classes.loading,Se.classes.loadingBlock,t==="line"?Se.classes.sizeLine:void 0,t==="fill"?Se.classes.sizeFill:void 0,e),...r,children:[n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",Se.classes.spinnerGrow,"text-primary"),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",Se.classes.spinnerGrow,"text-primary",Se.classes.second),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",Se.classes.spinnerGrow,"text-primary",Se.classes.third),role:"status"})]});function qs(e,t){const r=n.toDate(e),o=n.toDate(t),a=r.getTime()-o.getTime();return a<0?-1:a>0?1:a}function oo(e,t){const r=n.toDate(e),o=n.toDate(t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function ao(e){const t=n.toDate(e);return Math.trunc(t.getMonth()/3)+1}function Ir(e,t){const r=n.toDate(e),o=n.toDate(t),a=r.getFullYear()-o.getFullYear(),i=ao(r)-ao(o);return a*4+i}function io(e,t,r){const o=n.startOfWeek(e,r),a=n.startOfWeek(t,r),i=+o-n.getTimezoneOffsetInMilliseconds(o),s=+a-n.getTimezoneOffsetInMilliseconds(a);return Math.round((i-s)/n.millisecondsInWeek)}function Or(e,t){const r=n.toDate(e),o=n.toDate(t);return r.getFullYear()-o.getFullYear()}function Ys(e,t){const r=n.toDate(e),o=n.toDate(t),a=so(r,o),i=Math.abs(n.differenceInCalendarDays(r,o));r.setDate(r.getDate()-a*i);const s=+(so(r,o)===-a),l=a*(i-s);return l===0?0:l}function so(e,t){const r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function bn(e){return t=>{const o=(e?Math[e]:Math.trunc)(t);return o===0?0:o}}function En(e,t){return+n.toDate(e)-+n.toDate(t)}function lo(e,t,r){const o=En(e,t)/n.millisecondsInHour;return bn(r==null?void 0:r.roundingMethod)(o)}function co(e,t,r){const o=En(e,t)/n.millisecondsInMinute;return bn(r==null?void 0:r.roundingMethod)(o)}function _r(e,t,r){const o=En(e,t)/1e3;return bn(r==null?void 0:r.roundingMethod)(o)}function rn(e,t){const r=n.toDate(e);if(isNaN(r.getTime()))throw new RangeError("Invalid time value");const o=(t==null?void 0:t.format)??"extended",a=(t==null?void 0:t.representation)??"complete";let i="",s="";const l=o==="extended"?"-":"",c=o==="extended"?":":"";if(a!=="time"){const p=n.addLeadingZeros(r.getDate(),2),u=n.addLeadingZeros(r.getMonth()+1,2);i=`${n.addLeadingZeros(r.getFullYear(),4)}${l}${u}${l}${p}`}if(a!=="date"){const p=r.getTimezoneOffset();if(p!==0){const b=Math.abs(p),h=n.addLeadingZeros(Math.trunc(b/60),2),v=n.addLeadingZeros(b%60,2);s=`${p<0?"+":"-"}${h}:${v}`}else s="Z";const u=n.addLeadingZeros(r.getHours(),2),d=n.addLeadingZeros(r.getMinutes(),2),f=n.addLeadingZeros(r.getSeconds(),2),x=i===""?"":"T",g=[u,d,f].join(c);i=`${i}${x}${g}${s}`}return i}function Ks(e){const t=n.toDate(e),r=t.getFullYear(),o=t.getMonth(),a=n.constructFrom(e,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Xs(e,t,r){let o=0,a;const i=n.toDate(e),s=n.toDate(t);if(r!=null&&r.unit)a=r==null?void 0:r.unit,a==="second"?o=_r(i,s):a==="minute"?o=co(i,s):a==="hour"?o=lo(i,s):a==="day"?o=n.differenceInCalendarDays(i,s):a==="week"?o=io(i,s):a==="month"?o=oo(i,s):a==="quarter"?o=Ir(i,s):a==="year"&&(o=Or(i,s));else{const c=_r(i,s);Math.abs(c)<n.secondsInMinute?(o=_r(i,s),a="second"):Math.abs(c)<n.secondsInHour?(o=co(i,s),a="minute"):Math.abs(c)<n.secondsInDay&&Math.abs(n.differenceInCalendarDays(i,s))<1?(o=lo(i,s),a="hour"):Math.abs(c)<n.secondsInWeek&&(o=n.differenceInCalendarDays(i,s))&&Math.abs(o)<7?a="day":Math.abs(c)<n.secondsInMonth?(o=io(i,s),a="week"):Math.abs(c)<n.secondsInQuarter?(o=oo(i,s),a="month"):Math.abs(c)<n.secondsInYear&&Ir(i,s)<4?(o=Ir(i,s),a="quarter"):(o=Or(i,s),a="year")}return new Intl.RelativeTimeFormat(r==null?void 0:r.locale,{localeMatcher:r==null?void 0:r.localeMatcher,numeric:(r==null?void 0:r.numeric)||"auto",style:r==null?void 0:r.style}).format(o,a)}function Js(e,t){const r=n.toDate(e),o=r.getFullYear(),a=r.getDate(),i=n.constructFrom(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=Ks(i);return r.setMonth(t,Math.min(a,s)),r}function nn(e,t){const r=n.toDate(e);return isNaN(+r)?n.constructFrom(e,NaN):(r.setFullYear(t),r)}function St(...e){return e.filter(t=>t!=null).reduce((t,r)=>{if(typeof r!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?r:function(...a){t.apply(this,a),r.apply(this,a)}},null)}const Zs={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Qs(e,t){const r=`offset${e[0].toUpperCase()}${e.slice(1)}`,o=t[r],a=Zs[e];return o+parseInt(n.style(t,a[0]),10)+parseInt(n.style(t,a[1]),10)}const el={[n.EXITED]:"collapse",[n.EXITING]:"collapsing",[n.ENTERING]:"collapsing",[n.ENTERED]:"collapse show"},Ma=m.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:o,onExiting:a,className:i,children:s,dimension:l="height",in:c=!1,timeout:p=300,mountOnEnter:u=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:x=Qs,...g},b)=>{const h=typeof l=="function"?l():l,v=m.useMemo(()=>St(w=>{w.style[h]="0"},e),[h,e]),E=m.useMemo(()=>St(w=>{const S=`scroll${h[0].toUpperCase()}${h.slice(1)}`;w.style[h]=`${w[S]}px`},t),[h,t]),R=m.useMemo(()=>St(w=>{w.style[h]=null},r),[h,r]),C=m.useMemo(()=>St(w=>{w.style[h]=`${x(h,w)}px`,n.triggerBrowserReflow(w)},o),[o,x,h]),j=m.useMemo(()=>St(w=>{w.style[h]=null},a),[h,a]);return n.jsxRuntimeExports.jsx(n.TransitionWrapper,{ref:b,addEndListener:n.transitionEndListener,...g,"aria-expanded":g.role?c:null,onEnter:v,onEntering:E,onEntered:R,onExit:C,onExiting:j,childRef:s.ref,in:c,timeout:p,mountOnEnter:u,unmountOnExit:d,appear:f,children:(w,S)=>m.cloneElement(s,{...S,className:n.classNames(i,s.props.className,el[w],h==="width"&&"collapse-horizontal")})})}),jn=me.forwardRef(({className:e,bsPrefix:t,as:r="div",...o},a)=>(t=n.useBootstrapPrefix(t,"card-body"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));jn.displayName="CardBody";const La=me.forwardRef(({className:e,bsPrefix:t,as:r="div",...o},a)=>(t=n.useBootstrapPrefix(t,"card-footer"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));La.displayName="CardFooter";const Fa=me.createContext(null);Fa.displayName="CardHeaderContext";const Va=me.forwardRef(({bsPrefix:e,className:t,as:r="div",...o},a)=>{const i=n.useBootstrapPrefix(e,"card-header"),s=m.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return n.jsxRuntimeExports.jsx(Fa.Provider,{value:s,children:n.jsxRuntimeExports.jsx(r,{ref:a,...o,className:n.classNames(t,i)})})});Va.displayName="CardHeader";const $a=me.forwardRef(({bsPrefix:e,className:t,variant:r,as:o="img",...a},i)=>{const s=n.useBootstrapPrefix(e,"card-img");return n.jsxRuntimeExports.jsx(o,{ref:i,className:n.classNames(r?`${s}-${r}`:s,t),...a})});$a.displayName="CardImg";const Ga=me.forwardRef(({className:e,bsPrefix:t,as:r="div",...o},a)=>(t=n.useBootstrapPrefix(t,"card-img-overlay"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Ga.displayName="CardImgOverlay";const Wa=me.forwardRef(({className:e,bsPrefix:t,as:r="a",...o},a)=>(t=n.useBootstrapPrefix(t,"card-link"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Wa.displayName="CardLink";const tl=n.divWithClassName("h6"),Ua=me.forwardRef(({className:e,bsPrefix:t,as:r=tl,...o},a)=>(t=n.useBootstrapPrefix(t,"card-subtitle"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Ua.displayName="CardSubtitle";const Ha=me.forwardRef(({className:e,bsPrefix:t,as:r="p",...o},a)=>(t=n.useBootstrapPrefix(t,"card-text"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Ha.displayName="CardText";const rl=n.divWithClassName("h5"),za=me.forwardRef(({className:e,bsPrefix:t,as:r=rl,...o},a)=>(t=n.useBootstrapPrefix(t,"card-title"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));za.displayName="CardTitle";const qa=me.forwardRef(({bsPrefix:e,className:t,bg:r,text:o,border:a,body:i=!1,children:s,as:l="div",...c},p)=>{const u=n.useBootstrapPrefix(e,"card");return n.jsxRuntimeExports.jsx(l,{ref:p,...c,className:n.classNames(t,u,r&&`bg-${r}`,o&&`text-${o}`,a&&`border-${a}`),children:i?n.jsxRuntimeExports.jsx(jn,{children:s}):s})});qa.displayName="Card";const uo=Object.assign(qa,{Img:$a,Title:za,Subtitle:Ua,Body:jn,Link:Wa,Text:Ha,Header:Va,Footer:La,ImgOverlay:Ga}),Er=me.forwardRef(({className:e,bsPrefix:t,as:r="span",...o},a)=>(t=n.useBootstrapPrefix(t,"input-group-text"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Er.displayName="InputGroupText";const nl=e=>n.jsxRuntimeExports.jsx(Er,{children:n.jsxRuntimeExports.jsx(n.FormCheckInput,{type:"checkbox",...e})}),ol=e=>n.jsxRuntimeExports.jsx(Er,{children:n.jsxRuntimeExports.jsx(n.FormCheckInput,{type:"radio",...e})}),Ya=me.forwardRef(({bsPrefix:e,size:t,hasValidation:r,className:o,as:a="div",...i},s)=>{e=n.useBootstrapPrefix(e,"input-group");const l=m.useMemo(()=>({}),[]);return n.jsxRuntimeExports.jsx(n.context.Provider,{value:l,children:n.jsxRuntimeExports.jsx(a,{ref:s,...i,className:n.classNames(o,e,t&&`${e}-${t}`,r&&"has-validation")})})});Ya.displayName="InputGroup";const ur=Object.assign(Ya,{Text:Er,Radio:ol,Checkbox:nl}),on=new WeakMap,po=(e,t)=>{if(!e||!t)return;const r=on.get(t)||new Map;on.set(t,r);let o=r.get(e);return o||(o=t.matchMedia(e),o.refCount=0,r.set(o.media,o)),o};function al(e,t=typeof window>"u"?void 0:window){const r=po(e,t),[o,a]=m.useState(()=>r?r.matches:!1);return n.useIsomorphicEffect(()=>{let i=po(e,t);if(!i)return a(!1);let s=on.get(t);const l=()=>{a(i.matches)};return i.refCount++,i.addListener(l),l(),()=>{i.removeListener(l),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),o}function il(e){const t=Object.keys(e);function r(l,c){return l===c?c:l?`${l} and ${c}`:c}function o(l){return t[Math.min(t.indexOf(l)+1,t.length-1)]}function a(l){const c=o(l);let p=e[c];return typeof p=="number"?p=`${p-.2}px`:p=`calc(${p} - 0.2px)`,`(max-width: ${p})`}function i(l){let c=e[l];return typeof c=="number"&&(c=`${c}px`),`(min-width: ${c})`}function s(l,c,p){let u;typeof l=="object"?(u=l,p=c,c=!0):(c=c||!0,u={[l]:c});let d=m.useMemo(()=>Object.entries(u).reduce((f,[x,g])=>((g==="up"||g===!0)&&(f=r(f,i(x))),(g==="down"||g===!0)&&(f=r(f,a(x))),f),""),[JSON.stringify(u)]);return al(d,p)}return s}const sl=il({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),Ka=me.forwardRef(({className:e,bsPrefix:t,as:r="div",...o},a)=>(t=n.useBootstrapPrefix(t,"offcanvas-body"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Ka.displayName="OffcanvasBody";const ll={[n.ENTERING]:"show",[n.ENTERED]:"show"},Xa=me.forwardRef(({bsPrefix:e,className:t,children:r,in:o=!1,mountOnEnter:a=!1,unmountOnExit:i=!1,appear:s=!1,...l},c)=>(e=n.useBootstrapPrefix(e,"offcanvas"),n.jsxRuntimeExports.jsx(n.TransitionWrapper,{ref:c,addEndListener:n.transitionEndListener,in:o,mountOnEnter:a,unmountOnExit:i,appear:s,...l,childRef:r.ref,children:(p,u)=>me.cloneElement(r,{...u,className:n.classNames(t,r.props.className,(p===n.ENTERING||p===n.EXITING)&&`${e}-toggling`,ll[p])})})));Xa.displayName="OffcanvasToggling";const Ja=me.forwardRef(({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:o=!1,...a},i)=>(e=n.useBootstrapPrefix(e,"offcanvas-header"),n.jsxRuntimeExports.jsx(n.AbstractModalHeader,{ref:i,...a,className:n.classNames(t,e),closeLabel:r,closeButton:o})));Ja.displayName="OffcanvasHeader";const cl=n.divWithClassName("h5"),Za=me.forwardRef(({className:e,bsPrefix:t,as:r=cl,...o},a)=>(t=n.useBootstrapPrefix(t,"offcanvas-title"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Za.displayName="OffcanvasTitle";function ul(e){return n.jsxRuntimeExports.jsx(Xa,{...e})}function dl(e){return n.jsxRuntimeExports.jsx(n.Fade,{...e})}const Qa=me.forwardRef(({bsPrefix:e,className:t,children:r,"aria-labelledby":o,placement:a="start",responsive:i,show:s=!1,backdrop:l=!0,keyboard:c=!0,scroll:p=!1,onEscapeKeyDown:u,onShow:d,onHide:f,container:x,autoFocus:g=!0,enforceFocus:b=!0,restoreFocus:h=!0,restoreFocusOptions:v,onEntered:E,onExit:R,onExiting:C,onEnter:j,onEntering:w,onExited:S,backdropClassName:I,manager:D,renderStaticNode:_=!1,...k},B)=>{const N=m.useRef();e=n.useBootstrapPrefix(e,"offcanvas");const[q,W]=m.useState(!1),A=n.useEventCallback(f),P=sl(i||"xs","up");m.useEffect(()=>{W(i?s&&!P:s)},[s,i,P]);const L=m.useMemo(()=>({onHide:A}),[A]);function M(){return D||(p?(N.current||(N.current=new n.BootstrapModalManager({handleContainerOverflow:!1})),N.current):n.getSharedManager())}const G=(J,...$)=>{J&&(J.style.visibility="visible"),j==null||j(J,...$)},U=(J,...$)=>{J&&(J.style.visibility=""),S==null||S(...$)},Y=m.useCallback(J=>n.jsxRuntimeExports.jsx("div",{...J,className:n.classNames(`${e}-backdrop`,I)}),[I,e]),X=J=>n.jsxRuntimeExports.jsx("div",{...J,...k,className:n.classNames(t,i?`${e}-${i}`:e,`${e}-${a}`),"aria-labelledby":o,children:r});return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[!q&&(i||_)&&X({}),n.jsxRuntimeExports.jsx(n.ModalContext.Provider,{value:L,children:n.jsxRuntimeExports.jsx(n.BaseModal,{show:q,ref:B,backdrop:l,container:x,keyboard:c,autoFocus:g,enforceFocus:b&&!p,restoreFocus:h,restoreFocusOptions:v,onEscapeKeyDown:u,onShow:d,onHide:A,onEnter:G,onEntering:w,onEntered:E,onExit:R,onExiting:C,onExited:U,manager:M(),transition:ul,backdropTransition:dl,renderBackdrop:Y,renderDialog:X})})]})});Qa.displayName="Offcanvas";const mo=Object.assign(Qa,{Body:Ka,Header:Ja,Title:Za});function ei({animation:e,bg:t,bsPrefix:r,size:o,...a}){r=n.useBootstrapPrefix(r,"placeholder");const[{className:i,...s}]=n.useCol(a);return{...s,className:n.classNames(i,e?`${r}-${e}`:r,o&&`${r}-${o}`,t&&`bg-${t}`)}}const ti=me.forwardRef((e,t)=>{const r=ei(e);return n.jsxRuntimeExports.jsx(n.Button,{...r,ref:t,disabled:!0,tabIndex:-1})});ti.displayName="PlaceholderButton";const ri=me.forwardRef(({as:e="span",...t},r)=>{const o=ei(t);return n.jsxRuntimeExports.jsx(e,{...o,ref:r})});ri.displayName="Placeholder";const qe=Object.assign(ri,{Button:ti}),yn=me.forwardRef(({bsPrefix:e,className:t,as:r="div",...o},a)=>{const i=n.useBootstrapPrefix(e,"row"),s=n.useBootstrapBreakpoints(),l=n.useBootstrapMinBreakpoint(),c=`${i}-cols`,p=[];return s.forEach(u=>{const d=o[u];delete o[u];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const x=u!==l?`-${u}`:"";f!=null&&p.push(`${c}${x}-${f}`)}),n.jsxRuntimeExports.jsx(r,{ref:a,...o,className:n.classNames(t,i,...p)})});yn.displayName="Row";const pl=me.forwardRef(({bsPrefix:e,className:t,striped:r,bordered:o,borderless:a,hover:i,size:s,variant:l,responsive:c,...p},u)=>{const d=n.useBootstrapPrefix(e,"table"),f=n.classNames(t,d,l&&`${d}-${l}`,s&&`${d}-${s}`,r&&`${d}-${typeof r=="string"?`striped-${r}`:"striped"}`,o&&`${d}-bordered`,a&&`${d}-borderless`,i&&`${d}-hover`),x=n.jsxRuntimeExports.jsx("table",{...p,className:f,ref:u});if(c){let g=`${d}-responsive`;return typeof c=="string"&&(g=`${g}-${c}`),n.jsxRuntimeExports.jsx("div",{className:g,children:x})}return x}),ni=({children:e,onStorno:t,noSpacer:r,disabled:o})=>{const{texts:{formSubmit:a}}=m.useContext(n.LuminusComponentsContext);return n.jsxRuntimeExports.jsxs(ws,{noSpacer:r,children:[n.jsxRuntimeExports.jsxs(n.PrimaryButton,{as:"button",color:"primary",size:"lg",type:"submit",disabled:o,children:[n.jsxRuntimeExports.jsx(n.MdCheck,{}),e]}),t&&n.jsxRuntimeExports.jsxs(n.PrimaryButton,{as:"button",color:"secondary",variant:"outlined",size:"lg",onClick:t,children:[n.jsxRuntimeExports.jsx(n.MdOutlineClose,{}),a.storno]})]})},ml=({onUpload:e,accept:t,children:r,className:o,size:a="md"})=>{const i=m.useCallback(async l=>{if(l.target.files)try{await e(l.target.files)}finally{l.target.value=""}},[e]),s=m.useId();return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx("label",{htmlFor:s,className:n.classNames("btn luminus-context-button text-primary",`btn-${a}`,o),children:r}),n.jsxRuntimeExports.jsx("input",{id:s,type:"file",accept:t,onChange:i,hidden:!0})]})},fl="_select_14f33_1",xl="_sm_14f33_11",gl="_lg_14f33_23",rr={select:fl,sm:xl,lg:gl},oi=({month:e,onChangeMonth:t,locale:r,yearMin:o=2e3,yearMax:a=2050,className:i,monthClassName:s,yearClassName:l,size:c})=>{const p=m.useCallback(f=>{const x=n.addMonths(e,f);x.getFullYear()<o||x.getFullYear()>a||t(x)},[e,t,o,a]),u=m.useMemo(()=>{const f=[];for(let x=o;x<=a;x++)f.push(x);return f},[o,a]),d=m.useMemo(()=>{const g=[];for(let b=0;b<=11;b++)g.push({id:b,name:n.format(new Date(2024,b,1),"LLLL",{locale:r})});return g},[r]);return n.jsxRuntimeExports.jsxs("div",{className:n.classNames("card d-flex flex-row align-items-center justify-content-center m-0 p-1 gap-2",i,{[rr[c]]:c}),children:[n.jsxRuntimeExports.jsx(n.IconButton,{onClick:()=>p(-1),disabled:e.getFullYear()<o||e.getFullYear()===o&&e.getMonth()<=0,children:n.jsxRuntimeExports.jsx(n.MdOutlineKeyboardArrowLeft,{})}),n.jsxRuntimeExports.jsx(n.Form.Select,{value:e.getMonth(),onChange:f=>{var x;return((x=f.target)==null?void 0:x.value)&&t(Js(e,Number(f.target.value)))},className:n.classNames(rr.select,rr.month,s),children:d.map(f=>n.jsxRuntimeExports.jsx("option",{value:f.id,children:f.name},f.id))}),n.jsxRuntimeExports.jsx(n.Form.Select,{value:e.getFullYear(),onChange:f=>{var x;return((x=f.target)==null?void 0:x.value)&&t(nn(e,Number(f.target.value)))},className:n.classNames(rr.select,l),children:u.map(f=>n.jsxRuntimeExports.jsx("option",{value:f,children:f},f))}),n.jsxRuntimeExports.jsx(n.IconButton,{onClick:()=>p(1),disabled:e.getFullYear()>a||e.getFullYear()===a&&e.getMonth()>=11,children:n.jsxRuntimeExports.jsx(n.MdOutlineKeyboardArrowRight,{})})]})},vl="_select_pywmr_1",hl={select:vl},fo=2e3,xo=2050,ai=({year:e,onChangeYear:t,className:r,variant:o="standart",...a})=>{const i=m.useMemo(()=>{var p;return a.manualOptions?((p=a.options)==null?void 0:p.at(0))??fo:a.optionMin??fo},[a]),s=m.useMemo(()=>{var p;return a.manualOptions?((p=a.options)==null?void 0:p.at(-1))??xo:a.optionMax??xo},[a]),l=m.useMemo(()=>{if(a.manualOptions)return a.options;const p=[];for(let u=i;u<=s;u++)p.push(u);return p},[a,s,i]),c=m.useCallback(p=>{if(a.manualOptions){const u=l.findIndex(d=>d===e.getFullYear());if(u!==-1){const d=l.at(u+p)??null;d&&t(nn(e,d))}}else{const u=e.getFullYear()+p;u>=i&&u<=s&&t(n.addYears(e,p))}},[e,t,s,i,a,l]);return n.jsxRuntimeExports.jsxs("div",{className:n.classNames("d-flex flex-row align-items-center m-0",o==="standart"?"card p-1 gap-2":void 0,o==="minimalist"?"p-0 gap-0":void 0,r??""),children:[n.jsxRuntimeExports.jsx(n.IconButton,{onClick:()=>c(-1),disabled:e.getFullYear()<=i,children:n.jsxRuntimeExports.jsx(n.MdOutlineKeyboardArrowLeft,{})}),n.jsxRuntimeExports.jsx(n.Form.Select,{value:e.getFullYear(),onChange:p=>{var u;return((u=p.target)==null?void 0:u.value)&&t(nn(e,Number(p.target.value)))},className:n.classNames(hl.select,"bg-transparent"),children:l.map(p=>n.jsxRuntimeExports.jsx("option",{value:p,children:p},p))}),n.jsxRuntimeExports.jsx(n.IconButton,{onClick:()=>c(1),disabled:e.getFullYear()>=s,children:n.jsxRuntimeExports.jsx(n.MdOutlineKeyboardArrowRight,{})})]})};class bl extends m.Component{constructor(t){super(t),this.state={hasError:!1,is404Error:!1},this.reload=this.reload.bind(this)}static getDerivedStateFromError(t){return{hasError:!0,is404Error:t.message==="404"}}componentDidUpdate(t){this.state.hasError&&t.keyForErrorState!==this.props.keyForErrorState&&this.setState({hasError:!1,is404Error:!1})}componentDidCatch(t,r){console.error("Error:",t,r)}reload(){this.setState({hasError:!1,is404Error:!1})}render(){const{fallback:t,fallbackOn404:r,children:o,texts:a,reloadButtonDisplay:i="append-after-child"}=this.props;return this.state.hasError?i==="inject-to-child"&&!this.state.is404Error&&m.isValidElement(t)?m.cloneElement(t,{...t.props},n.jsxRuntimeExports.jsxs("div",{className:"translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2",children:[...t.props.children,n.jsxRuntimeExports.jsx("div",{className:"d-flex gap-2 justify-content-center",children:n.jsxRuntimeExports.jsx(n.ContextButton,{type:"button",onClick:this.reload,children:a.reloadButtonContent})})]})):i==="inject-to-child"&&this.state.is404Error&&m.isValidElement(r)?m.cloneElement(r,{...r.props},n.jsxRuntimeExports.jsxs("div",{className:"translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2",children:[...r.props.children,n.jsxRuntimeExports.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[n.jsxRuntimeExports.jsx(n.ContextButton,{type:"button",onClick:this.reload,children:a.reloadButtonContent}),n.jsxRuntimeExports.jsx(n.ContextButton,{type:"button",onClick:this.props.navigateBack,children:a.navigateBackButtonContent})]})]})):n.jsxRuntimeExports.jsxs("div",{className:"translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2",children:[this.state.is404Error?r:t,n.jsxRuntimeExports.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[i==="none"?null:n.jsxRuntimeExports.jsx(n.ContextButton,{type:"button",onClick:this.reload,children:a.reloadButtonContent}),this.state.is404Error&&n.jsxRuntimeExports.jsx(n.ContextButton,{type:"button",onClick:this.props.navigateBack,children:a.navigateBackButtonContent})]})]}):o}}const El=e=>r=>{const{texts:{errorBoundary:o}}=m.useContext(n.LuminusComponentsContext);return n.jsxRuntimeExports.jsx(e,{texts:o,...r})},ii=El(bl),jl="_widget-card_e9tsb_1",yl={"widget-card":"_widget-card_e9tsb_1",widgetCard:jl},an=({children:e,title:t,headerContent:r})=>n.jsxRuntimeExports.jsx(Mt,{className:n.classNames(yl.widgetCard,"luminus-widget"),title:t,headerContent:r,contentClassName:"h-100 overflow-auto",children:e}),Rl=({children:e,title:t})=>{const{texts:{widget:r}}=m.useContext(n.LuminusComponentsContext),o=ce.useNavigate();return n.jsxRuntimeExports.jsx(ii,{fallback:n.jsxRuntimeExports.jsx(an,{title:t,children:r.fallbackError}),reloadButtonDisplay:"inject-to-child",navigateBack:()=>o(-1),children:n.jsxRuntimeExports.jsx(m.Suspense,{fallback:n.jsxRuntimeExports.jsx(an,{title:t,children:n.jsxRuntimeExports.jsx(Ba,{})}),children:e})})},Cl="_widgets-row_13gg1_1",wl="_widget_13gg1_1",Nl="_widget-img_13gg1_5",Dl="_widget-title-spacer_13gg1_14",Sl="_widget-title_13gg1_14",Il="_title_13gg1_28",ke={"widgets-row":"_widgets-row_13gg1_1",widgetsRow:Cl,widget:wl,"widget-img":"_widget-img_13gg1_5",widgetImg:Nl,"widget-title-spacer":"_widget-title-spacer_13gg1_14",widgetTitleSpacer:Dl,"widget-title":"_widget-title_13gg1_14",widgetTitle:Sl,title:Il},Ol=({show:e,widgetGroups:t,widgets:r,handleClose:o,onWidgetPicked:a,texts:i})=>{const[s,l]=m.useState(""),c=m.useMemo(()=>r.filter(u=>u.id!==-1&&n.stringSearchWithin(u.name,s)),[r,s]),p=m.useMemo(()=>t.filter(u=>c.some(d=>d.group===u.id)),[t,c]);return n.jsxRuntimeExports.jsxs(n.Modal,{show:e,onHide:()=>o(),size:"lg",children:[n.jsxRuntimeExports.jsxs(n.Modal.Header,{closeButton:!0,children:[n.jsxRuntimeExports.jsx(n.Modal.Title,{className:"w-100",children:i.pickWidgetToAdd}),n.jsxRuntimeExports.jsx(n.Form.Control,{type:"search",size:"sm",value:s,placeholder:i.searchPlaceholder,onChange:u=>{var d;return l(((d=u.target)==null?void 0:d.value)??"")},className:"me-3",style:{maxWidth:"200px"}})]}),n.jsxRuntimeExports.jsx(n.Modal.Body,{className:"flex-column gap-3",children:c.length===0?n.jsxRuntimeExports.jsx(n.Alert,{variant:"warning",children:i.noWidgets}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[p.map(u=>n.jsxRuntimeExports.jsx(Bt,{defaultOpen:!0,title:u.name??"",children:n.jsxRuntimeExports.jsx("div",{className:"p-1",children:n.jsxRuntimeExports.jsx("div",{className:n.classNames("row gx-3 gy-3",ke.widgetsRow),children:c.filter(d=>d.group===u.id).map(d=>n.jsxRuntimeExports.jsx("div",{className:"col col-4",children:n.jsxRuntimeExports.jsxs("div",{role:"button",className:n.classNames("p-0 pt-2 bg-white rounded shadow-sm",ke.widget),onClick:()=>a(d.id),children:[n.jsxRuntimeExports.jsx("div",{className:ke.widgetImg,style:{backgroundImage:d.img?`url(${d.img})`:void 0}}),n.jsxRuntimeExports.jsx("div",{className:ke.widgetTitleSpacer}),n.jsxRuntimeExports.jsx("div",{className:n.classNames(ke.widgetTitle,"rounded"),children:n.jsxRuntimeExports.jsx(n.Typography,{variant:"body",className:n.classNames(ke.title,"text-white text-truncate"),children:d.name})})]},d.id)}))})})},u.id)),c.some(u=>u.group===void 0)&&n.jsxRuntimeExports.jsx(Bt,{defaultOpen:!0,title:i.otherWidgets,children:n.jsxRuntimeExports.jsx("div",{className:"p-1",children:n.jsxRuntimeExports.jsx("div",{className:n.classNames("row gx-3 gy-3",ke.widgetsRow),children:c.filter(u=>u.group===void 0).map(u=>n.jsxRuntimeExports.jsx("div",{className:"col col-4",children:n.jsxRuntimeExports.jsxs("div",{role:"button",className:n.classNames("p-0 pt-2 bg-white rounded shadow-sm",ke.widget),onClick:()=>a(u.id),children:[n.jsxRuntimeExports.jsx("div",{className:ke.widgetImg,style:{backgroundImage:u.img?`url(${u.img})`:void 0}}),n.jsxRuntimeExports.jsx("div",{className:ke.widgetTitleSpacer}),n.jsxRuntimeExports.jsx("div",{className:n.classNames(ke.widgetTitle,"rounded"),children:n.jsxRuntimeExports.jsx(n.Typography,{variant:"body",className:n.classNames(ke.title,"text-white text-truncate"),children:u.name})})]},u.id)}))})})})]})})]})},_l="_widget_19xgl_1",Tl="_mobile_19xgl_7",go={widget:_l,mobile:Tl},vo=({widgetGroups:e,availableWidgets:t,onAdd:r,texts:o})=>{const[a,i]=m.useState(!1),{isMobile:s}=n.useWindowSize();return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx("div",{className:n.classNames("luminus-empty-widget",go.widget,{[go.mobile]:s}),children:n.jsxRuntimeExports.jsx(n.IconButton,{onClick:()=>i(!0),children:n.jsxRuntimeExports.jsx(n.MdOutlineAddCircleOutline,{})})}),n.jsxRuntimeExports.jsx(Ol,{show:a,widgetGroups:e,widgets:t,handleClose:()=>i(!1),onWidgetPicked:l=>{i(!1),r(l)},texts:o})]})},Pl="_dashboard_1gf59_1",kl="_widgets-grid_1gf59_1",Al="_widget-wrapper_1gf59_8",Bl="_full-width_1gf59_13",Ml="_widget-edit_1gf59_16",Ll="_remove-icon_1gf59_19",Fl="_full-width-icon_1gf59_26",Vl="_widget-edit-overlay_1gf59_36",$l="_mobile_1gf59_45",Ge={dashboard:Pl,"widgets-grid":"_widgets-grid_1gf59_1",widgetsGrid:kl,"widget-wrapper":"_widget-wrapper_1gf59_8",widgetWrapper:Al,"full-width":"_full-width_1gf59_13",fullWidth:Bl,"widget-edit":"_widget-edit_1gf59_16",widgetEdit:Ml,"remove-icon":"_remove-icon_1gf59_19",removeIcon:Ll,"full-width-icon":"_full-width-icon_1gf59_26",fullWidthIcon:Fl,"widget-edit-overlay":"_widget-edit-overlay_1gf59_36",widgetEditOverlay:Vl,mobile:$l},Gl=(e,t="dashboardConfig")=>{const[r,o]=m.useState({widgets:[]});m.useEffect(()=>{const i=localStorage.getItem(t);i?o(JSON.parse(i)):e&&o(e)},[e,t]);const a=m.useCallback(i=>{o(i),localStorage.setItem(t,JSON.stringify(i))},[t]);return{dashboardConfig:r,onChangeDashboardConfig:a}},Wl=({widgetGroups:e,availableWidgets:t,editMode:r,defaultDashboardConfig:o,dashboardConfigKey:a})=>{var x;const{texts:{homeDashboard:i}}=m.useContext(n.LuminusComponentsContext),{dashboardConfig:s,onChangeDashboardConfig:l}=Gl(o,a),c=m.useCallback((g,b)=>{var h,v;g===((h=s.widgets)==null?void 0:h.length)?l({...s,widgets:[...s.widgets,{widgetId:b,fullWidth:!1}]}):l({...s,widgets:((v=s.widgets)==null?void 0:v.map((E,R)=>R===g?{widgetId:b,fullWidth:!1}:E))??[]})},[s,l]),p=m.useCallback(g=>{var b,h;((b=s.widgets[g])==null?void 0:b.widgetId)===-1?l({...s,widgets:((h=s.widgets)==null?void 0:h.filter((v,E)=>E!==g))??[]}):c(g,-1)},[s,l,c]),u=m.useCallback(g=>{var b;l({...s,widgets:((b=s.widgets)==null?void 0:b.map((h,v)=>v===g?{...h,fullWidth:!h.fullWidth}:h))??[]})},[s,l]),d=m.useCallback((g,b,h)=>g?n.jsxRuntimeExports.jsxs("div",{className:n.classNames(Ge.widgetWrapper,{[Ge.widgetEdit]:r&&g.id!==-1},{[Ge.fullWidth]:h}),children:[r&&n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(n.IconButton,{color:"danger",onClick:()=>p(b),className:n.classNames(Ge.removeIcon),children:n.jsxRuntimeExports.jsx(n.MdOutlineDelete,{})}),n.jsxRuntimeExports.jsx(n.IconButton,{color:h?"danger":"primary",onClick:()=>u(b),className:n.classNames(Ge.fullWidthIcon),children:n.jsxRuntimeExports.jsx(n.MdOutlineExpand,{})})]}),g.id===-1?r&&n.jsxRuntimeExports.jsx("div",{className:Ge.widgetWrapper,children:n.jsxRuntimeExports.jsx(vo,{widgetGroups:e,availableWidgets:t,onAdd:v=>c(b,v),texts:i})}):n.jsxRuntimeExports.jsx(Rl,{title:g.title,children:n.jsxRuntimeExports.jsx(g.WidgetElement,{title:g.title})}),g.id>-1&&r&&n.jsxRuntimeExports.jsx("div",{className:Ge.widgetEditOverlay})]},b):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),[r,e,c,p,u,t,i]),{isMobile:f}=n.useWindowSize();return n.jsxRuntimeExports.jsx("div",{className:n.classNames(Ge.dashboard,{[Ge.mobile]:f}),children:n.jsxRuntimeExports.jsxs("div",{className:n.classNames(Ge.widgetsGrid),children:[(x=s.widgets)==null?void 0:x.map((g,b)=>d(t.find(h=>h.id===g.widgetId),b,g.fullWidth)),r&&n.jsxRuntimeExports.jsx(vo,{widgetGroups:e,availableWidgets:t,onAdd:g=>{var b;return c((b=s.widgets)==null?void 0:b.length,g)},texts:i})]})})},Ul="_badge_193ci_1",Hl="_sm_193ci_6",zl="_md_193ci_10",ql="_lg_193ci_14",Yl="_light_193ci_18",Tr={badge:Ul,sm:Hl,md:zl,lg:ql,light:Yl},Kl=({children:e,color:t="primary",size:r="md",rounded:o,className:a,variant:i="filled",...s})=>{const l=m.useMemo(()=>i==="filled"?n.classNames(`bg-${t}`):i==="outline"?n.classNames(`text-${t} border-${t} border bg-white`):"",[t,i]);return n.jsxRuntimeExports.jsx("span",{className:n.classNames("luminus-badge badge",l,a,{"rounded-pill":o},{"text-dark":t==="light"},{[Tr.light]:t==="light"},Tr.badge,Tr[r]),...s,children:e})},Xl="_collapse-icon_1ahhn_1",Jl="_collapsed_1ahhn_6",ho={"collapse-icon":"_collapse-icon_1ahhn_1",collapseIcon:Xl,collapsed:Jl},Bt=({title:e,children:t,className:r,...o})=>{const a=o.controlled?!1:o.defaultOpen??!1,[i,s]=m.useState(a),l=o.controlled?o.isOpen:i;return m.useEffect(()=>{s(a)},[a]),n.jsxRuntimeExports.jsxs("div",{className:r??"",children:[n.jsxRuntimeExports.jsxs("div",{role:"button",className:"d-flex align-items-center justify-content-between pb-3 pt-2",onClick:()=>o.controlled?o.onToggle(!o.isOpen):s(!i),children:[n.jsxRuntimeExports.jsx(n.Typography,{variant:"h6",children:e}),n.jsxRuntimeExports.jsx(n.MdOutlineChevronRight,{className:n.classNames(ho.collapseIcon,{[ho.collapsed]:l})})]}),n.jsxRuntimeExports.jsx(Ma,{in:l,children:n.jsxRuntimeExports.jsx("div",{children:t})}),n.jsxRuntimeExports.jsx("hr",{className:`my-0 ${l?"mt-3":""}`})]})},Zl=({color:e="primary",icon:t=n.jsxRuntimeExports.jsx(n.MdOutlineFileUpload,{size:12}),inputId:r="context-file-input",accept:o="*",onUpload:a,multiple:i,className:s,children:l,...c})=>{const p=u=>{u.target.files&&(a(u.target.files),u.target.value="")};return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs("label",{htmlFor:r,className:n.classNames(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${s??""}`,n.classes.item),...c,children:[t,l]}),n.jsxRuntimeExports.jsx("input",{id:r,type:"file",accept:o,onChange:p,hidden:!0,multiple:i})]})},Ql="_input-group_1hcpm_1",ec="_input-group-text_1hcpm_5",tc="_left_1hcpm_9",rc="_right_1hcpm_13",nc="_input_1hcpm_1",oc="_submit-button_1hcpm_20",et={"input-group":"_input-group_1hcpm_1",inputGroup:Ql,"input-group-text":"_input-group-text_1hcpm_5",inputGroupText:ec,left:tc,right:rc,input:nc,"submit-button":"_submit-button_1hcpm_20",submitButton:oc},ac=({searchTypes:e,selectedType:t,setSelectedType:r})=>n.jsxRuntimeExports.jsx(n.Dropdown,{toggle:n.jsxRuntimeExports.jsx(n.DropdownToggle,{as:n.SimpleDropdownToggle,icon:null,text:t==null?void 0:t.text}),children:e.map(o=>n.jsxRuntimeExports.jsx(n.DropdownItem,{icon:null,onClick:()=>r(o.key),children:o.text},o.key))}),ic="_dropdown_1ddrg_1",sc="_open_1ddrg_12",lc="_loading-container_1ddrg_15",cc="_groups-container_1ddrg_22",uc="_group_1ddrg_22",dc="_header_1ddrg_26",pc="_item_1ddrg_33",tt={dropdown:ic,open:sc,"loading-container":"_loading-container_1ddrg_15",loadingContainer:lc,"groups-container":"_groups-container_1ddrg_22",groupsContainer:cc,group:uc,header:dc,item:pc},mc=({show:e,query:t,onCancel:r,groups:o,isLoading:a,searchTypes:i})=>{const{texts:{appSearch:s}}=m.useContext(n.LuminusComponentsContext),l=m.useRef(null),c=m.useCallback(p=>{var d;const u=(d=i.find(f=>f.key===p.type))==null?void 0:d.toPath;return u?`${u}/${p.searchKey}`:"/not-found"},[i]);return n.useClickOutside([l],r),n.jsxRuntimeExports.jsx("div",{ref:l,className:n.classNames("luminus-app-search-dropdown shadow rounded",tt.dropdown,{[tt.open]:e}),children:a?n.jsxRuntimeExports.jsx("div",{className:tt.loadingContainer,children:n.jsxRuntimeExports.jsx(n.Spinner,{animation:"border",variant:"primary"})}):n.jsxRuntimeExports.jsx("div",{className:tt.groupsContainer,children:o==null?void 0:o.map(p=>{var u;return n.jsxRuntimeExports.jsxs("div",{className:n.classNames(tt.group),children:[n.jsxRuntimeExports.jsxs(ce.Link,{to:`/search?query=${t}&type=${p.key.category}`,className:n.classNames("group-header",tt.header),onClick:r,children:[n.jsxRuntimeExports.jsx(n.Typography,{variant:"body",className:"text-primary",children:p.key.categoryName}),n.jsxRuntimeExports.jsxs(n.Typography,{variant:"caption",children:[p.items.length," ",s.amountFrom," ",p.key.totalCount]})]}),(u=p.items)==null?void 0:u.map((d,f)=>n.jsxRuntimeExports.jsxs(ce.Link,{to:c(d),className:n.classNames("search-item d-flex gap-3 align-items-center justify-content-between",tt.item),onClick:r,children:[n.jsxRuntimeExports.jsx(n.Typography,{variant:"body2",className:"text-nowrap text-truncate",children:d.name}),n.jsxRuntimeExports.jsx(n.Typography,{variant:"caption",className:"text-primary",children:n.jsxRuntimeExports.jsx(n.MdOutlineArrowOutward,{})})]},f))]},p.key.category)})})})},fc=(e,t)=>{const r=n.useAxios(),[o,a]=m.useState(!1),[i,s]=m.useState([]),l=!e||!e.key,c=m.useCallback(()=>{if(t.length<3){s([]);return}a(!0),r.get(`/search/${t}?count=${l?5:20}${l?"":`&type=${e.key}`}`).then(({data:p})=>{s(p),a(!1)}).catch(()=>{a(!1)})},[e,t,r,l]);return m.useEffect(()=>{c()},[c]),{isLoading:o,searchItems:i}},xc=({searchTypes:e,navigateFunction:t,currentPath:r,homePath:o="/",className:a})=>{var E;const{texts:{appSearch:i}}=m.useContext(n.LuminusComponentsContext),[s,l]=m.useState(e.length>0?((E=e.at(0))==null?void 0:E.key)??null:null),c=m.useMemo(()=>e.find(R=>R.key===s)??null,[e,s]),[p,u]=m.useState(""),[d,f]=n.a(encodeURIComponent(p),500),{isLoading:x,searchItems:g}=fc(c,d),[b,h]=m.useState(!1);m.useEffect(()=>{(g.length>0||x)&&h(!0)},[g,x]);const v=m.useRef(null);return m.useEffect(()=>{var R;u(""),r===o&&((R=v.current)==null||R.focus())},[r,o]),n.jsxRuntimeExports.jsx(n.Form,{className:"w-100 d-flex align-items-center justify-content-center",onSubmit:R=>{R.preventDefault(),R.stopPropagation(),f.flush(),h(!1),d.length>2&&t(`/search?query=${d}${c&&c.key&&`&type=${c==null?void 0:c.key}`}`)},children:n.jsxRuntimeExports.jsxs(ur,{className:n.classNames(et.inputGroup,a),children:[n.jsxRuntimeExports.jsx(ur.Text,{className:n.classNames("p-1 rounded",et.inputGroupText,et.left),children:n.jsxRuntimeExports.jsx(ac,{searchTypes:e,selectedType:c,setSelectedType:l})}),n.jsxRuntimeExports.jsx(n.Form.Control,{ref:v,placeholder:i.searchPlaceholder,type:"text",size:"sm",className:n.classNames("luminus-app-search-input",et.input),value:p,onChange:R=>{var C;return u(((C=R.target)==null?void 0:C.value)??"")},onFocus:()=>g.length>0&&h(!0)}),n.jsxRuntimeExports.jsx(ur.Text,{className:n.classNames("p-0 rounded",et.inputGroupText,et.right),children:n.jsxRuntimeExports.jsx("button",{type:"submit",className:n.classNames("text-primary",et.submitButton),children:n.jsxRuntimeExports.jsx(n.FaSearch,{})})}),n.jsxRuntimeExports.jsx(mc,{query:d,searchTypes:e,show:b,onCancel:()=>h(!1),groups:g,isLoading:x})]})})},gc="_card_19733_1",vc="_header_19733_6",hc="_header-content_19733_13",bc="_title_19733_19",Ec="_collapse-icon_19733_22",jc="_collapsed_19733_27",yc="_content_19733_30",rt={card:gc,header:vc,"header-content":"_header-content_19733_13",headerContent:hc,title:bc,"collapse-icon":"_collapse-icon_19733_22",collapseIcon:Ec,collapsed:jc,content:yc},Mt=({title:e,headerContent:t,children:r,className:o,headerClassName:a,contentClassName:i,dontRenderIfNoChildren:s,...l})=>{const c=l.collapsible?l.controlled?!1:l.defaultOpen??!1:!0,[p,u]=m.useState(c),d=l.collapsible?l.controlled?l.isOpen:p:!0;m.useEffect(()=>{u(c)},[c]);const f=m.useMemo(()=>!r||!r.toString()||r.toString().split(",").filter(x=>x&&x!=="false").length===0,[r]);return s&&f?null:n.jsxRuntimeExports.jsxs("div",{className:n.classNames("luminus-card rounded shadow-sm",rt.card,{[o??""]:o}),children:[n.jsxRuntimeExports.jsxs("div",{role:l.collapsible?"button":void 0,className:n.classNames("header",rt.header,{[a??""]:a}),onClick:()=>{l.collapsible&&(l.controlled?l.onToggle(!l.isOpen):u(!p))},children:[n.jsxRuntimeExports.jsxs("div",{className:n.classNames("header-content",rt.headerContent),children:[n.jsxRuntimeExports.jsx(n.Typography,{variant:"h6",className:n.classNames("text-primary",rt.title),children:e}),t??null]}),l.collapsible&&n.jsxRuntimeExports.jsx(n.MdOutlineChevronRight,{className:n.classNames(rt.collapseIcon,{[rt.collapsed]:d})})]}),n.jsxRuntimeExports.jsx(Ma,{in:d,children:n.jsxRuntimeExports.jsx("div",{className:n.classNames("card-content border-top border-primary",rt.content,{[i??""]:i}),children:r})})]})};function Lt(e){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(e)}function Rc(e,t){if(Lt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(Lt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cc(e){var t=Rc(e,"string");return Lt(t)=="symbol"?t:t+""}function wc(e,t,r){return(t=Cc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,o)}return r}function Eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bo(Object(r),!0).forEach(function(o){wc(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bo(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function De(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var jo=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Pr=function(){return Math.random().toString(36).substring(7).split("").join(".")},yo={INIT:"@@redux/INIT"+Pr(),REPLACE:"@@redux/REPLACE"+Pr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Pr()}};function Nc(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Dc(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Oc(e))return"date";if(Ic(e))return"error";var r=Sc(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Sc(e){return typeof e.constructor=="function"?e.constructor.name:null}function Ic(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Oc(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function it(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Dc(e)),t}function si(e,t,r){var o;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?De(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?De(1):"Expected the enhancer to be a function. Instead, received: '"+it(r)+"'");return r(si)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?De(2):"Expected the root reducer to be a function. Instead, received: '"+it(e)+"'");var a=e,i=t,s=[],l=s,c=!1;function p(){l===s&&(l=s.slice())}function u(){if(c)throw new Error(process.env.NODE_ENV==="production"?De(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?De(4):"Expected the listener to be a function. Instead, received: '"+it(b)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?De(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var h=!0;return p(),l.push(b),function(){if(h){if(c)throw new Error(process.env.NODE_ENV==="production"?De(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");h=!1,p();var E=l.indexOf(b);l.splice(E,1),s=null}}}function f(b){if(!Nc(b))throw new Error(process.env.NODE_ENV==="production"?De(7):"Actions must be plain objects. Instead, the actual type was: '"+it(b)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof b.type>"u")throw new Error(process.env.NODE_ENV==="production"?De(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?De(9):"Reducers may not dispatch actions.");try{c=!0,i=a(i,b)}finally{c=!1}for(var h=s=l,v=0;v<h.length;v++){var E=h[v];E()}return b}function x(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?De(10):"Expected the nextReducer to be a function. Instead, received: '"+it(b));a=b,f({type:yo.REPLACE})}function g(){var b,h=d;return b={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?De(11):"Expected the observer to be an object. Instead, received: '"+it(E)+"'");function R(){E.next&&E.next(u())}R();var C=h(R);return{unsubscribe:C}}},b[jo]=function(){return this},b}return f({type:yo.INIT}),o={dispatch:f,subscribe:d,getState:u,replaceReducer:x},o[jo]=g,o}function Ro(e,t){return function(){return t(e.apply(this,arguments))}}function Co(e,t){if(typeof e=="function")return Ro(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?De(16):"bindActionCreators expected an object or a function, but instead received: '"+it(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var o in e){var a=e[o];typeof a=="function"&&(r[o]=Ro(a,t))}return r}function li(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function _c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?De(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(c){return c(s)});return i=li.apply(void 0,l)(a.dispatch),Eo(Eo({},a),{},{dispatch:i})}}}var Rn=m.createContext(null);process.env.NODE_ENV!=="production"&&(Rn.displayName="ReactRedux");function Tc(e){e()}var ci=Tc,Pc=function(t){return ci=t},kc=function(){return ci};function Ac(){var e=kc(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var a=t;a;)a.callback(),a=a.next})},get:function(){for(var a=[],i=t;i;)a.push(i),i=i.next;return a},subscribe:function(a){var i=!0,s=r={callback:a,next:null,prev:r};return s.prev?s.prev.next=s:t=s,function(){!i||t===null||(i=!1,s.next?s.next.prev=s.prev:r=s.prev,s.prev?s.prev.next=s.next:t=s.next)}}}}var wo={notify:function(){},get:function(){return[]}};function ui(e,t){var r,o=wo;function a(d){return c(),o.subscribe(d)}function i(){o.notify()}function s(){u.onStateChange&&u.onStateChange()}function l(){return!!r}function c(){r||(r=t?t.addNestedSub(s):e.subscribe(s),o=Ac())}function p(){r&&(r(),r=void 0,o.clear(),o=wo)}var u={addNestedSub:a,notifyNestedSubs:i,handleChangeWrapper:s,isSubscribed:l,trySubscribe:c,tryUnsubscribe:p,getListeners:function(){return o}};return u}var di=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function pi(e){var t=e.store,r=e.context,o=e.children,a=m.useMemo(function(){var l=ui(t);return{store:t,subscription:l}},[t]),i=m.useMemo(function(){return t.getState()},[t]);di(function(){var l=a.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==t.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[a,i]);var s=r||Rn;return m.createElement(s.Provider,{value:a},o)}process.env.NODE_ENV!=="production"&&(pi.propTypes={store:n.Oe.shape({subscribe:n.Oe.func.isRequired,dispatch:n.Oe.func.isRequired,getState:n.Oe.func.isRequired}),context:n.Oe.object,children:n.Oe.any});var Cn=n.requireReactIs(),Bc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Mc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Lc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wn={};wn[Cn.ForwardRef]=Lc;wn[Cn.Memo]=mi;function No(e){return Cn.isMemo(e)?mi:wn[e.$$typeof]||Bc}var Fc=Object.defineProperty,Vc=Object.getOwnPropertyNames,Do=Object.getOwnPropertySymbols,$c=Object.getOwnPropertyDescriptor,Gc=Object.getPrototypeOf,So=Object.prototype;function fi(e,t,r){if(typeof t!="string"){if(So){var o=Gc(t);o&&o!==So&&fi(e,o,r)}var a=Vc(t);Do&&(a=a.concat(Do(t)));for(var i=No(e),s=No(t),l=0;l<a.length;++l){var c=a[l];if(!Mc[c]&&!(r&&r[c])&&!(s&&s[c])&&!(i&&i[c])){var p=$c(t,c);try{Fc(e,c,p)}catch{}}}}return e}var Wc=fi;const Io=n.getDefaultExportFromCjs(Wc);var sn={exports:{}},se={};/** @license React v17.0.2
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ShortcutLinksContext-BtI3NfVP.cjs"),m=require("react"),Se=require("./FormDisabledProvider-obA9soBx.cjs"),Gs=require("@azure/msal-browser"),Ws=require("@azure/msal-react"),ce=require("react-router-dom"),gt=require("react-dom"),Te=require("react-hook-form"),Us=require("react-flexmonster"),Yt=require("./useRenderDraggableInPortal-QPCaw-E_.cjs"),We=require("./useGetApiData-2ImsUo6s.cjs"),Tt=require("./numberUtils-BY7ziQF8.cjs");function Hs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const me=Hs(m),zs=({fileLoader:e,fileName:t,children:r})=>{const o=m.useCallback(async()=>{var l,c;const a=await e();if(!a)return;const i=window.URL.createObjectURL(new Blob([a])),s=document.createElement("a");s.href=i,s.setAttribute("download",t),(l=document.body)==null||l.appendChild(s),s.click(),(c=document.body)==null||c.removeChild(s)},[e,t]);return n.jsxRuntimeExports.jsx("div",{role:"button",onClick:o,children:r})},Ba=({className:e,size:t,...r})=>n.jsxRuntimeExports.jsxs("div",{className:n.classNames("luminus-loading",Se.classes.loading,Se.classes.loadingBlock,t==="line"?Se.classes.sizeLine:void 0,t==="fill"?Se.classes.sizeFill:void 0,e),...r,children:[n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",Se.classes.spinnerGrow,"text-primary"),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",Se.classes.spinnerGrow,"text-primary",Se.classes.second),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",Se.classes.spinnerGrow,"text-primary",Se.classes.third),role:"status"})]});function qs(e,t){const r=n.toDate(e),o=n.toDate(t),a=r.getTime()-o.getTime();return a<0?-1:a>0?1:a}function oo(e,t){const r=n.toDate(e),o=n.toDate(t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function ao(e){const t=n.toDate(e);return Math.trunc(t.getMonth()/3)+1}function Ir(e,t){const r=n.toDate(e),o=n.toDate(t),a=r.getFullYear()-o.getFullYear(),i=ao(r)-ao(o);return a*4+i}function io(e,t,r){const o=n.startOfWeek(e,r),a=n.startOfWeek(t,r),i=+o-n.getTimezoneOffsetInMilliseconds(o),s=+a-n.getTimezoneOffsetInMilliseconds(a);return Math.round((i-s)/n.millisecondsInWeek)}function Or(e,t){const r=n.toDate(e),o=n.toDate(t);return r.getFullYear()-o.getFullYear()}function Ys(e,t){const r=n.toDate(e),o=n.toDate(t),a=so(r,o),i=Math.abs(n.differenceInCalendarDays(r,o));r.setDate(r.getDate()-a*i);const s=+(so(r,o)===-a),l=a*(i-s);return l===0?0:l}function so(e,t){const r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function bn(e){return t=>{const o=(e?Math[e]:Math.trunc)(t);return o===0?0:o}}function En(e,t){return+n.toDate(e)-+n.toDate(t)}function lo(e,t,r){const o=En(e,t)/n.millisecondsInHour;return bn(r==null?void 0:r.roundingMethod)(o)}function co(e,t,r){const o=En(e,t)/n.millisecondsInMinute;return bn(r==null?void 0:r.roundingMethod)(o)}function _r(e,t,r){const o=En(e,t)/1e3;return bn(r==null?void 0:r.roundingMethod)(o)}function rn(e,t){const r=n.toDate(e);if(isNaN(r.getTime()))throw new RangeError("Invalid time value");const o=(t==null?void 0:t.format)??"extended",a=(t==null?void 0:t.representation)??"complete";let i="",s="";const l=o==="extended"?"-":"",c=o==="extended"?":":"";if(a!=="time"){const p=n.addLeadingZeros(r.getDate(),2),u=n.addLeadingZeros(r.getMonth()+1,2);i=`${n.addLeadingZeros(r.getFullYear(),4)}${l}${u}${l}${p}`}if(a!=="date"){const p=r.getTimezoneOffset();if(p!==0){const b=Math.abs(p),h=n.addLeadingZeros(Math.trunc(b/60),2),v=n.addLeadingZeros(b%60,2);s=`${p<0?"+":"-"}${h}:${v}`}else s="Z";const u=n.addLeadingZeros(r.getHours(),2),d=n.addLeadingZeros(r.getMinutes(),2),f=n.addLeadingZeros(r.getSeconds(),2),x=i===""?"":"T",g=[u,d,f].join(c);i=`${i}${x}${g}${s}`}return i}function Ks(e){const t=n.toDate(e),r=t.getFullYear(),o=t.getMonth(),a=n.constructFrom(e,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Xs(e,t,r){let o=0,a;const i=n.toDate(e),s=n.toDate(t);if(r!=null&&r.unit)a=r==null?void 0:r.unit,a==="second"?o=_r(i,s):a==="minute"?o=co(i,s):a==="hour"?o=lo(i,s):a==="day"?o=n.differenceInCalendarDays(i,s):a==="week"?o=io(i,s):a==="month"?o=oo(i,s):a==="quarter"?o=Ir(i,s):a==="year"&&(o=Or(i,s));else{const c=_r(i,s);Math.abs(c)<n.secondsInMinute?(o=_r(i,s),a="second"):Math.abs(c)<n.secondsInHour?(o=co(i,s),a="minute"):Math.abs(c)<n.secondsInDay&&Math.abs(n.differenceInCalendarDays(i,s))<1?(o=lo(i,s),a="hour"):Math.abs(c)<n.secondsInWeek&&(o=n.differenceInCalendarDays(i,s))&&Math.abs(o)<7?a="day":Math.abs(c)<n.secondsInMonth?(o=io(i,s),a="week"):Math.abs(c)<n.secondsInQuarter?(o=oo(i,s),a="month"):Math.abs(c)<n.secondsInYear&&Ir(i,s)<4?(o=Ir(i,s),a="quarter"):(o=Or(i,s),a="year")}return new Intl.RelativeTimeFormat(r==null?void 0:r.locale,{localeMatcher:r==null?void 0:r.localeMatcher,numeric:(r==null?void 0:r.numeric)||"auto",style:r==null?void 0:r.style}).format(o,a)}function Js(e,t){const r=n.toDate(e),o=r.getFullYear(),a=r.getDate(),i=n.constructFrom(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=Ks(i);return r.setMonth(t,Math.min(a,s)),r}function nn(e,t){const r=n.toDate(e);return isNaN(+r)?n.constructFrom(e,NaN):(r.setFullYear(t),r)}function St(...e){return e.filter(t=>t!=null).reduce((t,r)=>{if(typeof r!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?r:function(...a){t.apply(this,a),r.apply(this,a)}},null)}const Zs={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Qs(e,t){const r=`offset${e[0].toUpperCase()}${e.slice(1)}`,o=t[r],a=Zs[e];return o+parseInt(n.style(t,a[0]),10)+parseInt(n.style(t,a[1]),10)}const el={[n.EXITED]:"collapse",[n.EXITING]:"collapsing",[n.ENTERING]:"collapsing",[n.ENTERED]:"collapse show"},Ma=m.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:o,onExiting:a,className:i,children:s,dimension:l="height",in:c=!1,timeout:p=300,mountOnEnter:u=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:x=Qs,...g},b)=>{const h=typeof l=="function"?l():l,v=m.useMemo(()=>St(w=>{w.style[h]="0"},e),[h,e]),E=m.useMemo(()=>St(w=>{const S=`scroll${h[0].toUpperCase()}${h.slice(1)}`;w.style[h]=`${w[S]}px`},t),[h,t]),R=m.useMemo(()=>St(w=>{w.style[h]=null},r),[h,r]),C=m.useMemo(()=>St(w=>{w.style[h]=`${x(h,w)}px`,n.triggerBrowserReflow(w)},o),[o,x,h]),j=m.useMemo(()=>St(w=>{w.style[h]=null},a),[h,a]);return n.jsxRuntimeExports.jsx(n.TransitionWrapper,{ref:b,addEndListener:n.transitionEndListener,...g,"aria-expanded":g.role?c:null,onEnter:v,onEntering:E,onEntered:R,onExit:C,onExiting:j,childRef:s.ref,in:c,timeout:p,mountOnEnter:u,unmountOnExit:d,appear:f,children:(w,S)=>m.cloneElement(s,{...S,className:n.classNames(i,s.props.className,el[w],h==="width"&&"collapse-horizontal")})})}),jn=me.forwardRef(({className:e,bsPrefix:t,as:r="div",...o},a)=>(t=n.useBootstrapPrefix(t,"card-body"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));jn.displayName="CardBody";const La=me.forwardRef(({className:e,bsPrefix:t,as:r="div",...o},a)=>(t=n.useBootstrapPrefix(t,"card-footer"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));La.displayName="CardFooter";const Fa=me.createContext(null);Fa.displayName="CardHeaderContext";const Va=me.forwardRef(({bsPrefix:e,className:t,as:r="div",...o},a)=>{const i=n.useBootstrapPrefix(e,"card-header"),s=m.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return n.jsxRuntimeExports.jsx(Fa.Provider,{value:s,children:n.jsxRuntimeExports.jsx(r,{ref:a,...o,className:n.classNames(t,i)})})});Va.displayName="CardHeader";const $a=me.forwardRef(({bsPrefix:e,className:t,variant:r,as:o="img",...a},i)=>{const s=n.useBootstrapPrefix(e,"card-img");return n.jsxRuntimeExports.jsx(o,{ref:i,className:n.classNames(r?`${s}-${r}`:s,t),...a})});$a.displayName="CardImg";const Ga=me.forwardRef(({className:e,bsPrefix:t,as:r="div",...o},a)=>(t=n.useBootstrapPrefix(t,"card-img-overlay"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Ga.displayName="CardImgOverlay";const Wa=me.forwardRef(({className:e,bsPrefix:t,as:r="a",...o},a)=>(t=n.useBootstrapPrefix(t,"card-link"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Wa.displayName="CardLink";const tl=n.divWithClassName("h6"),Ua=me.forwardRef(({className:e,bsPrefix:t,as:r=tl,...o},a)=>(t=n.useBootstrapPrefix(t,"card-subtitle"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Ua.displayName="CardSubtitle";const Ha=me.forwardRef(({className:e,bsPrefix:t,as:r="p",...o},a)=>(t=n.useBootstrapPrefix(t,"card-text"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Ha.displayName="CardText";const rl=n.divWithClassName("h5"),za=me.forwardRef(({className:e,bsPrefix:t,as:r=rl,...o},a)=>(t=n.useBootstrapPrefix(t,"card-title"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));za.displayName="CardTitle";const qa=me.forwardRef(({bsPrefix:e,className:t,bg:r,text:o,border:a,body:i=!1,children:s,as:l="div",...c},p)=>{const u=n.useBootstrapPrefix(e,"card");return n.jsxRuntimeExports.jsx(l,{ref:p,...c,className:n.classNames(t,u,r&&`bg-${r}`,o&&`text-${o}`,a&&`border-${a}`),children:i?n.jsxRuntimeExports.jsx(jn,{children:s}):s})});qa.displayName="Card";const uo=Object.assign(qa,{Img:$a,Title:za,Subtitle:Ua,Body:jn,Link:Wa,Text:Ha,Header:Va,Footer:La,ImgOverlay:Ga}),Er=me.forwardRef(({className:e,bsPrefix:t,as:r="span",...o},a)=>(t=n.useBootstrapPrefix(t,"input-group-text"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Er.displayName="InputGroupText";const nl=e=>n.jsxRuntimeExports.jsx(Er,{children:n.jsxRuntimeExports.jsx(n.FormCheckInput,{type:"checkbox",...e})}),ol=e=>n.jsxRuntimeExports.jsx(Er,{children:n.jsxRuntimeExports.jsx(n.FormCheckInput,{type:"radio",...e})}),Ya=me.forwardRef(({bsPrefix:e,size:t,hasValidation:r,className:o,as:a="div",...i},s)=>{e=n.useBootstrapPrefix(e,"input-group");const l=m.useMemo(()=>({}),[]);return n.jsxRuntimeExports.jsx(n.context.Provider,{value:l,children:n.jsxRuntimeExports.jsx(a,{ref:s,...i,className:n.classNames(o,e,t&&`${e}-${t}`,r&&"has-validation")})})});Ya.displayName="InputGroup";const ur=Object.assign(Ya,{Text:Er,Radio:ol,Checkbox:nl}),on=new WeakMap,po=(e,t)=>{if(!e||!t)return;const r=on.get(t)||new Map;on.set(t,r);let o=r.get(e);return o||(o=t.matchMedia(e),o.refCount=0,r.set(o.media,o)),o};function al(e,t=typeof window>"u"?void 0:window){const r=po(e,t),[o,a]=m.useState(()=>r?r.matches:!1);return n.useIsomorphicEffect(()=>{let i=po(e,t);if(!i)return a(!1);let s=on.get(t);const l=()=>{a(i.matches)};return i.refCount++,i.addListener(l),l(),()=>{i.removeListener(l),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),o}function il(e){const t=Object.keys(e);function r(l,c){return l===c?c:l?`${l} and ${c}`:c}function o(l){return t[Math.min(t.indexOf(l)+1,t.length-1)]}function a(l){const c=o(l);let p=e[c];return typeof p=="number"?p=`${p-.2}px`:p=`calc(${p} - 0.2px)`,`(max-width: ${p})`}function i(l){let c=e[l];return typeof c=="number"&&(c=`${c}px`),`(min-width: ${c})`}function s(l,c,p){let u;typeof l=="object"?(u=l,p=c,c=!0):(c=c||!0,u={[l]:c});let d=m.useMemo(()=>Object.entries(u).reduce((f,[x,g])=>((g==="up"||g===!0)&&(f=r(f,i(x))),(g==="down"||g===!0)&&(f=r(f,a(x))),f),""),[JSON.stringify(u)]);return al(d,p)}return s}const sl=il({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),Ka=me.forwardRef(({className:e,bsPrefix:t,as:r="div",...o},a)=>(t=n.useBootstrapPrefix(t,"offcanvas-body"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Ka.displayName="OffcanvasBody";const ll={[n.ENTERING]:"show",[n.ENTERED]:"show"},Xa=me.forwardRef(({bsPrefix:e,className:t,children:r,in:o=!1,mountOnEnter:a=!1,unmountOnExit:i=!1,appear:s=!1,...l},c)=>(e=n.useBootstrapPrefix(e,"offcanvas"),n.jsxRuntimeExports.jsx(n.TransitionWrapper,{ref:c,addEndListener:n.transitionEndListener,in:o,mountOnEnter:a,unmountOnExit:i,appear:s,...l,childRef:r.ref,children:(p,u)=>me.cloneElement(r,{...u,className:n.classNames(t,r.props.className,(p===n.ENTERING||p===n.EXITING)&&`${e}-toggling`,ll[p])})})));Xa.displayName="OffcanvasToggling";const Ja=me.forwardRef(({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:o=!1,...a},i)=>(e=n.useBootstrapPrefix(e,"offcanvas-header"),n.jsxRuntimeExports.jsx(n.AbstractModalHeader,{ref:i,...a,className:n.classNames(t,e),closeLabel:r,closeButton:o})));Ja.displayName="OffcanvasHeader";const cl=n.divWithClassName("h5"),Za=me.forwardRef(({className:e,bsPrefix:t,as:r=cl,...o},a)=>(t=n.useBootstrapPrefix(t,"offcanvas-title"),n.jsxRuntimeExports.jsx(r,{ref:a,className:n.classNames(e,t),...o})));Za.displayName="OffcanvasTitle";function ul(e){return n.jsxRuntimeExports.jsx(Xa,{...e})}function dl(e){return n.jsxRuntimeExports.jsx(n.Fade,{...e})}const Qa=me.forwardRef(({bsPrefix:e,className:t,children:r,"aria-labelledby":o,placement:a="start",responsive:i,show:s=!1,backdrop:l=!0,keyboard:c=!0,scroll:p=!1,onEscapeKeyDown:u,onShow:d,onHide:f,container:x,autoFocus:g=!0,enforceFocus:b=!0,restoreFocus:h=!0,restoreFocusOptions:v,onEntered:E,onExit:R,onExiting:C,onEnter:j,onEntering:w,onExited:S,backdropClassName:I,manager:D,renderStaticNode:_=!1,...k},B)=>{const N=m.useRef();e=n.useBootstrapPrefix(e,"offcanvas");const[q,W]=m.useState(!1),A=n.useEventCallback(f),P=sl(i||"xs","up");m.useEffect(()=>{W(i?s&&!P:s)},[s,i,P]);const L=m.useMemo(()=>({onHide:A}),[A]);function M(){return D||(p?(N.current||(N.current=new n.BootstrapModalManager({handleContainerOverflow:!1})),N.current):n.getSharedManager())}const G=(J,...$)=>{J&&(J.style.visibility="visible"),j==null||j(J,...$)},U=(J,...$)=>{J&&(J.style.visibility=""),S==null||S(...$)},Y=m.useCallback(J=>n.jsxRuntimeExports.jsx("div",{...J,className:n.classNames(`${e}-backdrop`,I)}),[I,e]),X=J=>n.jsxRuntimeExports.jsx("div",{...J,...k,className:n.classNames(t,i?`${e}-${i}`:e,`${e}-${a}`),"aria-labelledby":o,children:r});return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[!q&&(i||_)&&X({}),n.jsxRuntimeExports.jsx(n.ModalContext.Provider,{value:L,children:n.jsxRuntimeExports.jsx(n.BaseModal,{show:q,ref:B,backdrop:l,container:x,keyboard:c,autoFocus:g,enforceFocus:b&&!p,restoreFocus:h,restoreFocusOptions:v,onEscapeKeyDown:u,onShow:d,onHide:A,onEnter:G,onEntering:w,onEntered:E,onExit:R,onExiting:C,onExited:U,manager:M(),transition:ul,backdropTransition:dl,renderBackdrop:Y,renderDialog:X})})]})});Qa.displayName="Offcanvas";const mo=Object.assign(Qa,{Body:Ka,Header:Ja,Title:Za});function ei({animation:e,bg:t,bsPrefix:r,size:o,...a}){r=n.useBootstrapPrefix(r,"placeholder");const[{className:i,...s}]=n.useCol(a);return{...s,className:n.classNames(i,e?`${r}-${e}`:r,o&&`${r}-${o}`,t&&`bg-${t}`)}}const ti=me.forwardRef((e,t)=>{const r=ei(e);return n.jsxRuntimeExports.jsx(n.Button,{...r,ref:t,disabled:!0,tabIndex:-1})});ti.displayName="PlaceholderButton";const ri=me.forwardRef(({as:e="span",...t},r)=>{const o=ei(t);return n.jsxRuntimeExports.jsx(e,{...o,ref:r})});ri.displayName="Placeholder";const qe=Object.assign(ri,{Button:ti}),yn=me.forwardRef(({bsPrefix:e,className:t,as:r="div",...o},a)=>{const i=n.useBootstrapPrefix(e,"row"),s=n.useBootstrapBreakpoints(),l=n.useBootstrapMinBreakpoint(),c=`${i}-cols`,p=[];return s.forEach(u=>{const d=o[u];delete o[u];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const x=u!==l?`-${u}`:"";f!=null&&p.push(`${c}${x}-${f}`)}),n.jsxRuntimeExports.jsx(r,{ref:a,...o,className:n.classNames(t,i,...p)})});yn.displayName="Row";const pl=me.forwardRef(({bsPrefix:e,className:t,striped:r,bordered:o,borderless:a,hover:i,size:s,variant:l,responsive:c,...p},u)=>{const d=n.useBootstrapPrefix(e,"table"),f=n.classNames(t,d,l&&`${d}-${l}`,s&&`${d}-${s}`,r&&`${d}-${typeof r=="string"?`striped-${r}`:"striped"}`,o&&`${d}-bordered`,a&&`${d}-borderless`,i&&`${d}-hover`),x=n.jsxRuntimeExports.jsx("table",{...p,className:f,ref:u});if(c){let g=`${d}-responsive`;return typeof c=="string"&&(g=`${g}-${c}`),n.jsxRuntimeExports.jsx("div",{className:g,children:x})}return x}),ni=({children:e,onStorno:t,noSpacer:r,disabled:o})=>{const{texts:{formSubmit:a}}=m.useContext(n.LuminusComponentsContext);return n.jsxRuntimeExports.jsxs(ws,{noSpacer:r,children:[n.jsxRuntimeExports.jsxs(n.PrimaryButton,{as:"button",color:"primary",size:"lg",type:"submit",disabled:o,children:[n.jsxRuntimeExports.jsx(n.MdCheck,{}),e]}),t&&n.jsxRuntimeExports.jsxs(n.PrimaryButton,{as:"button",color:"secondary",variant:"outlined",size:"lg",onClick:t,children:[n.jsxRuntimeExports.jsx(n.MdOutlineClose,{}),a.storno]})]})},ml=({onUpload:e,accept:t,children:r,className:o,size:a="md"})=>{const i=m.useCallback(async l=>{if(l.target.files)try{await e(l.target.files)}finally{l.target.value=""}},[e]),s=m.useId();return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx("label",{htmlFor:s,className:n.classNames("btn luminus-context-button text-primary",`btn-${a}`,o),children:r}),n.jsxRuntimeExports.jsx("input",{id:s,type:"file",accept:t,onChange:i,hidden:!0})]})},fl="_select_14f33_1",xl="_sm_14f33_11",gl="_lg_14f33_23",rr={select:fl,sm:xl,lg:gl},oi=({month:e,onChangeMonth:t,locale:r,yearMin:o=2e3,yearMax:a=2050,className:i,monthClassName:s,yearClassName:l,size:c})=>{const p=m.useCallback(f=>{const x=n.addMonths(e,f);x.getFullYear()<o||x.getFullYear()>a||t(x)},[e,t,o,a]),u=m.useMemo(()=>{const f=[];for(let x=o;x<=a;x++)f.push(x);return f},[o,a]),d=m.useMemo(()=>{const g=[];for(let b=0;b<=11;b++)g.push({id:b,name:n.format(new Date(2024,b,1),"LLLL",{locale:r})});return g},[r]);return n.jsxRuntimeExports.jsxs("div",{className:n.classNames("card d-flex flex-row align-items-center justify-content-center m-0 p-1 gap-2",i,{[rr[c]]:c}),children:[n.jsxRuntimeExports.jsx(n.IconButton,{onClick:()=>p(-1),disabled:e.getFullYear()<o||e.getFullYear()===o&&e.getMonth()<=0,children:n.jsxRuntimeExports.jsx(n.MdOutlineKeyboardArrowLeft,{})}),n.jsxRuntimeExports.jsx(n.Form.Select,{value:e.getMonth(),onChange:f=>{var x;return((x=f.target)==null?void 0:x.value)&&t(Js(e,Number(f.target.value)))},className:n.classNames(rr.select,rr.month,s),children:d.map(f=>n.jsxRuntimeExports.jsx("option",{value:f.id,children:f.name},f.id))}),n.jsxRuntimeExports.jsx(n.Form.Select,{value:e.getFullYear(),onChange:f=>{var x;return((x=f.target)==null?void 0:x.value)&&t(nn(e,Number(f.target.value)))},className:n.classNames(rr.select,l),children:u.map(f=>n.jsxRuntimeExports.jsx("option",{value:f,children:f},f))}),n.jsxRuntimeExports.jsx(n.IconButton,{onClick:()=>p(1),disabled:e.getFullYear()>a||e.getFullYear()===a&&e.getMonth()>=11,children:n.jsxRuntimeExports.jsx(n.MdOutlineKeyboardArrowRight,{})})]})},vl="_select_pywmr_1",hl={select:vl},fo=2e3,xo=2050,ai=({year:e,onChangeYear:t,className:r,variant:o="standart",...a})=>{const i=m.useMemo(()=>{var p;return a.manualOptions?((p=a.options)==null?void 0:p.at(0))??fo:a.optionMin??fo},[a]),s=m.useMemo(()=>{var p;return a.manualOptions?((p=a.options)==null?void 0:p.at(-1))??xo:a.optionMax??xo},[a]),l=m.useMemo(()=>{if(a.manualOptions)return a.options;const p=[];for(let u=i;u<=s;u++)p.push(u);return p},[a,s,i]),c=m.useCallback(p=>{if(a.manualOptions){const u=l.findIndex(d=>d===e.getFullYear());if(u!==-1){const d=l.at(u+p)??null;d&&t(nn(e,d))}}else{const u=e.getFullYear()+p;u>=i&&u<=s&&t(n.addYears(e,p))}},[e,t,s,i,a,l]);return n.jsxRuntimeExports.jsxs("div",{className:n.classNames("d-flex flex-row align-items-center m-0",o==="standart"?"card p-1 gap-2":void 0,o==="minimalist"?"p-0 gap-0":void 0,r??""),children:[n.jsxRuntimeExports.jsx(n.IconButton,{onClick:()=>c(-1),disabled:e.getFullYear()<=i,children:n.jsxRuntimeExports.jsx(n.MdOutlineKeyboardArrowLeft,{})}),n.jsxRuntimeExports.jsx(n.Form.Select,{value:e.getFullYear(),onChange:p=>{var u;return((u=p.target)==null?void 0:u.value)&&t(nn(e,Number(p.target.value)))},className:n.classNames(hl.select,"bg-transparent"),children:l.map(p=>n.jsxRuntimeExports.jsx("option",{value:p,children:p},p))}),n.jsxRuntimeExports.jsx(n.IconButton,{onClick:()=>c(1),disabled:e.getFullYear()>=s,children:n.jsxRuntimeExports.jsx(n.MdOutlineKeyboardArrowRight,{})})]})};class bl extends m.Component{constructor(t){super(t),this.state={hasError:!1,is404Error:!1},this.reload=this.reload.bind(this)}static getDerivedStateFromError(t){return{hasError:!0,is404Error:t.message==="404"}}componentDidUpdate(t){this.state.hasError&&t.keyForErrorState!==this.props.keyForErrorState&&this.setState({hasError:!1,is404Error:!1})}componentDidCatch(t,r){console.error("Error:",t,r)}reload(){this.setState({hasError:!1,is404Error:!1})}render(){const{fallback:t,fallbackOn404:r,children:o,texts:a,reloadButtonDisplay:i="append-after-child"}=this.props;return this.state.hasError?i==="inject-to-child"&&!this.state.is404Error&&m.isValidElement(t)?m.cloneElement(t,{...t.props},n.jsxRuntimeExports.jsxs("div",{className:"translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2",children:[...t.props.children,n.jsxRuntimeExports.jsx("div",{className:"d-flex gap-2 justify-content-center",children:n.jsxRuntimeExports.jsx(n.ContextButton,{type:"button",onClick:this.reload,children:a.reloadButtonContent})})]})):i==="inject-to-child"&&this.state.is404Error&&m.isValidElement(r)?m.cloneElement(r,{...r.props},n.jsxRuntimeExports.jsxs("div",{className:"translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2",children:[...r.props.children,n.jsxRuntimeExports.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[n.jsxRuntimeExports.jsx(n.ContextButton,{type:"button",onClick:this.reload,children:a.reloadButtonContent}),n.jsxRuntimeExports.jsx(n.ContextButton,{type:"button",onClick:this.props.navigateBack,children:a.navigateBackButtonContent})]})]})):n.jsxRuntimeExports.jsxs("div",{className:"translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2",children:[this.state.is404Error?r:t,n.jsxRuntimeExports.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[i==="none"?null:n.jsxRuntimeExports.jsx(n.ContextButton,{type:"button",onClick:this.reload,children:a.reloadButtonContent}),this.state.is404Error&&n.jsxRuntimeExports.jsx(n.ContextButton,{type:"button",onClick:this.props.navigateBack,children:a.navigateBackButtonContent})]})]}):o}}const El=e=>r=>{const{texts:{errorBoundary:o}}=m.useContext(n.LuminusComponentsContext);return n.jsxRuntimeExports.jsx(e,{texts:o,...r})},ii=El(bl),jl="_widget-card_e9tsb_1",yl={"widget-card":"_widget-card_e9tsb_1",widgetCard:jl},an=({children:e,title:t,headerContent:r})=>n.jsxRuntimeExports.jsx(Mt,{className:n.classNames(yl.widgetCard,"luminus-widget"),title:t,headerContent:r,contentClassName:"h-100 overflow-auto",children:e}),Rl=({children:e,title:t})=>{const{texts:{widget:r}}=m.useContext(n.LuminusComponentsContext),o=ce.useNavigate();return n.jsxRuntimeExports.jsx(ii,{fallback:n.jsxRuntimeExports.jsx(an,{title:t,children:r.fallbackError}),reloadButtonDisplay:"inject-to-child",navigateBack:()=>o(-1),children:n.jsxRuntimeExports.jsx(m.Suspense,{fallback:n.jsxRuntimeExports.jsx(an,{title:t,children:n.jsxRuntimeExports.jsx(Ba,{})}),children:e})})},Cl="_widgets-row_13gg1_1",wl="_widget_13gg1_1",Nl="_widget-img_13gg1_5",Dl="_widget-title-spacer_13gg1_14",Sl="_widget-title_13gg1_14",Il="_title_13gg1_28",ke={"widgets-row":"_widgets-row_13gg1_1",widgetsRow:Cl,widget:wl,"widget-img":"_widget-img_13gg1_5",widgetImg:Nl,"widget-title-spacer":"_widget-title-spacer_13gg1_14",widgetTitleSpacer:Dl,"widget-title":"_widget-title_13gg1_14",widgetTitle:Sl,title:Il},Ol=({show:e,widgetGroups:t,widgets:r,handleClose:o,onWidgetPicked:a,texts:i})=>{const[s,l]=m.useState(""),c=m.useMemo(()=>r.filter(u=>u.id!==-1&&n.stringSearchWithin(u.name,s)),[r,s]),p=m.useMemo(()=>t.filter(u=>c.some(d=>d.group===u.id)),[t,c]);return n.jsxRuntimeExports.jsxs(n.Modal,{show:e,onHide:()=>o(),size:"lg",children:[n.jsxRuntimeExports.jsxs(n.Modal.Header,{closeButton:!0,children:[n.jsxRuntimeExports.jsx(n.Modal.Title,{className:"w-100",children:i.pickWidgetToAdd}),n.jsxRuntimeExports.jsx(n.Form.Control,{type:"search",size:"sm",value:s,placeholder:i.searchPlaceholder,onChange:u=>{var d;return l(((d=u.target)==null?void 0:d.value)??"")},className:"me-3",style:{maxWidth:"200px"}})]}),n.jsxRuntimeExports.jsx(n.Modal.Body,{className:"flex-column gap-3",children:c.length===0?n.jsxRuntimeExports.jsx(n.Alert,{variant:"warning",children:i.noWidgets}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[p.map(u=>n.jsxRuntimeExports.jsx(Bt,{defaultOpen:!0,title:u.name??"",children:n.jsxRuntimeExports.jsx("div",{className:"p-1",children:n.jsxRuntimeExports.jsx("div",{className:n.classNames("row gx-3 gy-3",ke.widgetsRow),children:c.filter(d=>d.group===u.id).map(d=>n.jsxRuntimeExports.jsx("div",{className:"col col-4",children:n.jsxRuntimeExports.jsxs("div",{role:"button",className:n.classNames("p-0 pt-2 bg-white rounded shadow-sm",ke.widget),onClick:()=>a(d.id),children:[n.jsxRuntimeExports.jsx("div",{className:ke.widgetImg,style:{backgroundImage:d.img?`url(${d.img})`:void 0}}),n.jsxRuntimeExports.jsx("div",{className:ke.widgetTitleSpacer}),n.jsxRuntimeExports.jsx("div",{className:n.classNames(ke.widgetTitle,"rounded"),children:n.jsxRuntimeExports.jsx(n.Typography,{variant:"body",className:n.classNames(ke.title,"text-white text-truncate"),children:d.name})})]},d.id)}))})})},u.id)),c.some(u=>u.group===void 0)&&n.jsxRuntimeExports.jsx(Bt,{defaultOpen:!0,title:i.otherWidgets,children:n.jsxRuntimeExports.jsx("div",{className:"p-1",children:n.jsxRuntimeExports.jsx("div",{className:n.classNames("row gx-3 gy-3",ke.widgetsRow),children:c.filter(u=>u.group===void 0).map(u=>n.jsxRuntimeExports.jsx("div",{className:"col col-4",children:n.jsxRuntimeExports.jsxs("div",{role:"button",className:n.classNames("p-0 pt-2 bg-white rounded shadow-sm",ke.widget),onClick:()=>a(u.id),children:[n.jsxRuntimeExports.jsx("div",{className:ke.widgetImg,style:{backgroundImage:u.img?`url(${u.img})`:void 0}}),n.jsxRuntimeExports.jsx("div",{className:ke.widgetTitleSpacer}),n.jsxRuntimeExports.jsx("div",{className:n.classNames(ke.widgetTitle,"rounded"),children:n.jsxRuntimeExports.jsx(n.Typography,{variant:"body",className:n.classNames(ke.title,"text-white text-truncate"),children:u.name})})]},u.id)}))})})})]})})]})},_l="_widget_19xgl_1",Tl="_mobile_19xgl_7",go={widget:_l,mobile:Tl},vo=({widgetGroups:e,availableWidgets:t,onAdd:r,texts:o})=>{const[a,i]=m.useState(!1),{isMobile:s}=n.useWindowSize();return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx("div",{className:n.classNames("luminus-empty-widget",go.widget,{[go.mobile]:s}),children:n.jsxRuntimeExports.jsx(n.IconButton,{onClick:()=>i(!0),children:n.jsxRuntimeExports.jsx(n.MdOutlineAddCircleOutline,{})})}),n.jsxRuntimeExports.jsx(Ol,{show:a,widgetGroups:e,widgets:t,handleClose:()=>i(!1),onWidgetPicked:l=>{i(!1),r(l)},texts:o})]})},Pl="_dashboard_1gf59_1",kl="_widgets-grid_1gf59_1",Al="_widget-wrapper_1gf59_8",Bl="_full-width_1gf59_13",Ml="_widget-edit_1gf59_16",Ll="_remove-icon_1gf59_19",Fl="_full-width-icon_1gf59_26",Vl="_widget-edit-overlay_1gf59_36",$l="_mobile_1gf59_45",Ge={dashboard:Pl,"widgets-grid":"_widgets-grid_1gf59_1",widgetsGrid:kl,"widget-wrapper":"_widget-wrapper_1gf59_8",widgetWrapper:Al,"full-width":"_full-width_1gf59_13",fullWidth:Bl,"widget-edit":"_widget-edit_1gf59_16",widgetEdit:Ml,"remove-icon":"_remove-icon_1gf59_19",removeIcon:Ll,"full-width-icon":"_full-width-icon_1gf59_26",fullWidthIcon:Fl,"widget-edit-overlay":"_widget-edit-overlay_1gf59_36",widgetEditOverlay:Vl,mobile:$l},Gl=(e,t="dashboardConfig")=>{const[r,o]=m.useState({widgets:[]});m.useEffect(()=>{const i=localStorage.getItem(t);i?o(JSON.parse(i)):e&&o(e)},[e,t]);const a=m.useCallback(i=>{o(i),localStorage.setItem(t,JSON.stringify(i))},[t]);return{dashboardConfig:r,onChangeDashboardConfig:a}},Wl=({widgetGroups:e,availableWidgets:t,editMode:r,defaultDashboardConfig:o,dashboardConfigKey:a})=>{var x;const{texts:{homeDashboard:i}}=m.useContext(n.LuminusComponentsContext),{dashboardConfig:s,onChangeDashboardConfig:l}=Gl(o,a),c=m.useCallback((g,b)=>{var h,v;g===((h=s.widgets)==null?void 0:h.length)?l({...s,widgets:[...s.widgets,{widgetId:b,fullWidth:!1}]}):l({...s,widgets:((v=s.widgets)==null?void 0:v.map((E,R)=>R===g?{widgetId:b,fullWidth:!1}:E))??[]})},[s,l]),p=m.useCallback(g=>{var b,h;((b=s.widgets[g])==null?void 0:b.widgetId)===-1?l({...s,widgets:((h=s.widgets)==null?void 0:h.filter((v,E)=>E!==g))??[]}):c(g,-1)},[s,l,c]),u=m.useCallback(g=>{var b;l({...s,widgets:((b=s.widgets)==null?void 0:b.map((h,v)=>v===g?{...h,fullWidth:!h.fullWidth}:h))??[]})},[s,l]),d=m.useCallback((g,b,h)=>g?n.jsxRuntimeExports.jsxs("div",{className:n.classNames(Ge.widgetWrapper,{[Ge.widgetEdit]:r&&g.id!==-1},{[Ge.fullWidth]:h}),children:[r&&n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(n.IconButton,{color:"danger",onClick:()=>p(b),className:n.classNames(Ge.removeIcon),children:n.jsxRuntimeExports.jsx(n.MdOutlineDelete,{})}),n.jsxRuntimeExports.jsx(n.IconButton,{color:h?"danger":"primary",onClick:()=>u(b),className:n.classNames(Ge.fullWidthIcon),children:n.jsxRuntimeExports.jsx(n.MdOutlineExpand,{})})]}),g.id===-1?r&&n.jsxRuntimeExports.jsx("div",{className:Ge.widgetWrapper,children:n.jsxRuntimeExports.jsx(vo,{widgetGroups:e,availableWidgets:t,onAdd:v=>c(b,v),texts:i})}):n.jsxRuntimeExports.jsx(Rl,{title:g.title,children:n.jsxRuntimeExports.jsx(g.WidgetElement,{title:g.title})}),g.id>-1&&r&&n.jsxRuntimeExports.jsx("div",{className:Ge.widgetEditOverlay})]},b):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),[r,e,c,p,u,t,i]),{isMobile:f}=n.useWindowSize();return n.jsxRuntimeExports.jsx("div",{className:n.classNames(Ge.dashboard,{[Ge.mobile]:f}),children:n.jsxRuntimeExports.jsxs("div",{className:n.classNames(Ge.widgetsGrid),children:[(x=s.widgets)==null?void 0:x.map((g,b)=>d(t.find(h=>h.id===g.widgetId),b,g.fullWidth)),r&&n.jsxRuntimeExports.jsx(vo,{widgetGroups:e,availableWidgets:t,onAdd:g=>{var b;return c((b=s.widgets)==null?void 0:b.length,g)},texts:i})]})})},Ul="_badge_193ci_1",Hl="_sm_193ci_6",zl="_md_193ci_10",ql="_lg_193ci_14",Yl="_light_193ci_18",Tr={badge:Ul,sm:Hl,md:zl,lg:ql,light:Yl},Kl=({children:e,color:t="primary",size:r="md",rounded:o,className:a,variant:i="filled",...s})=>{const l=m.useMemo(()=>i==="filled"?n.classNames(`bg-${t}`):i==="outline"?n.classNames(`text-${t} border-${t} border bg-white`):"",[t,i]);return n.jsxRuntimeExports.jsx("span",{className:n.classNames("luminus-badge badge",l,a,{"rounded-pill":o},{"text-dark":t==="light"},{[Tr.light]:t==="light"},Tr.badge,Tr[r]),...s,children:e})},Xl="_collapse-icon_1ahhn_1",Jl="_collapsed_1ahhn_6",ho={"collapse-icon":"_collapse-icon_1ahhn_1",collapseIcon:Xl,collapsed:Jl},Bt=({title:e,children:t,className:r,...o})=>{const a=o.controlled?!1:o.defaultOpen??!1,[i,s]=m.useState(a),l=o.controlled?o.isOpen:i;return m.useEffect(()=>{s(a)},[a]),n.jsxRuntimeExports.jsxs("div",{className:r??"",children:[n.jsxRuntimeExports.jsxs("div",{role:"button",className:"d-flex align-items-center justify-content-between pb-3 pt-2",onClick:()=>o.controlled?o.onToggle(!o.isOpen):s(!i),children:[n.jsxRuntimeExports.jsx(n.Typography,{variant:"h6",children:e}),n.jsxRuntimeExports.jsx(n.MdOutlineChevronRight,{className:n.classNames(ho.collapseIcon,{[ho.collapsed]:l})})]}),n.jsxRuntimeExports.jsx(Ma,{in:l,children:n.jsxRuntimeExports.jsx("div",{children:t})}),n.jsxRuntimeExports.jsx("hr",{className:`my-0 ${l?"mt-3":""}`})]})},Zl=({color:e="primary",icon:t=n.jsxRuntimeExports.jsx(n.MdOutlineFileUpload,{size:12}),inputId:r="context-file-input",accept:o="*",onUpload:a,multiple:i,className:s,children:l,...c})=>{const p=u=>{u.target.files&&(a(u.target.files),u.target.value="")};return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs("label",{htmlFor:r,className:n.classNames(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${s??""}`,n.classes.item),...c,children:[t,l]}),n.jsxRuntimeExports.jsx("input",{id:r,type:"file",accept:o,onChange:p,hidden:!0,multiple:i})]})},Ql="_input-group_1hcpm_1",ec="_input-group-text_1hcpm_5",tc="_left_1hcpm_9",rc="_right_1hcpm_13",nc="_input_1hcpm_1",oc="_submit-button_1hcpm_20",et={"input-group":"_input-group_1hcpm_1",inputGroup:Ql,"input-group-text":"_input-group-text_1hcpm_5",inputGroupText:ec,left:tc,right:rc,input:nc,"submit-button":"_submit-button_1hcpm_20",submitButton:oc},ac=({searchTypes:e,selectedType:t,setSelectedType:r})=>n.jsxRuntimeExports.jsx(n.Dropdown,{toggle:n.jsxRuntimeExports.jsx(n.DropdownToggle,{as:n.SimpleDropdownToggle,icon:null,text:t==null?void 0:t.text}),children:e.map(o=>n.jsxRuntimeExports.jsx(n.DropdownItem,{icon:null,onClick:()=>r(o.key),children:o.text},o.key))}),ic="_dropdown_1ddrg_1",sc="_open_1ddrg_12",lc="_loading-container_1ddrg_15",cc="_groups-container_1ddrg_22",uc="_group_1ddrg_22",dc="_header_1ddrg_26",pc="_item_1ddrg_33",tt={dropdown:ic,open:sc,"loading-container":"_loading-container_1ddrg_15",loadingContainer:lc,"groups-container":"_groups-container_1ddrg_22",groupsContainer:cc,group:uc,header:dc,item:pc},mc=({show:e,query:t,onCancel:r,groups:o,isLoading:a,searchTypes:i})=>{const{texts:{appSearch:s}}=m.useContext(n.LuminusComponentsContext),l=m.useRef(null),c=m.useCallback(p=>{var d;const u=(d=i.find(f=>f.key===p.type))==null?void 0:d.toPath;return u?`${u}/${p.searchKey}`:"/not-found"},[i]);return n.useClickOutside([l],r),n.jsxRuntimeExports.jsx("div",{ref:l,className:n.classNames("luminus-app-search-dropdown shadow rounded",tt.dropdown,{[tt.open]:e}),children:a?n.jsxRuntimeExports.jsx("div",{className:tt.loadingContainer,children:n.jsxRuntimeExports.jsx(n.Spinner,{animation:"border",variant:"primary"})}):n.jsxRuntimeExports.jsx("div",{className:tt.groupsContainer,children:o==null?void 0:o.map(p=>{var u;return n.jsxRuntimeExports.jsxs("div",{className:n.classNames(tt.group),children:[n.jsxRuntimeExports.jsxs(ce.Link,{to:`/search?query=${t}&type=${p.key.category}`,className:n.classNames("group-header",tt.header),onClick:r,children:[n.jsxRuntimeExports.jsx(n.Typography,{variant:"body",className:"text-primary",children:p.key.categoryName}),n.jsxRuntimeExports.jsxs(n.Typography,{variant:"caption",children:[p.items.length," ",s.amountFrom," ",p.key.totalCount]})]}),(u=p.items)==null?void 0:u.map((d,f)=>n.jsxRuntimeExports.jsxs(ce.Link,{to:c(d),className:n.classNames("search-item d-flex gap-3 align-items-center justify-content-between",tt.item),onClick:r,children:[n.jsxRuntimeExports.jsx(n.Typography,{variant:"body2",className:"text-nowrap text-truncate",children:d.name}),n.jsxRuntimeExports.jsx(n.Typography,{variant:"caption",className:"text-primary",children:n.jsxRuntimeExports.jsx(n.MdOutlineArrowOutward,{})})]},f))]},p.key.category)})})})},fc=(e,t)=>{const r=n.useAxios(),[o,a]=m.useState(!1),[i,s]=m.useState([]),l=!e||!e.key,c=m.useCallback(()=>{if(t.length<3){s([]);return}a(!0),r.get(`/search/${t}?count=${l?5:20}${l?"":`&type=${e.key}`}`).then(({data:p})=>{s(p),a(!1)}).catch(()=>{a(!1)})},[e,t,r,l]);return m.useEffect(()=>{c()},[c]),{isLoading:o,searchItems:i}},xc=({searchTypes:e,navigateFunction:t,currentPath:r,homePath:o="/",className:a})=>{var E;const{texts:{appSearch:i}}=m.useContext(n.LuminusComponentsContext),[s,l]=m.useState(e.length>0?((E=e.at(0))==null?void 0:E.key)??null:null),c=m.useMemo(()=>e.find(R=>R.key===s)??null,[e,s]),[p,u]=m.useState(""),[d,f]=n.a(encodeURIComponent(p),500),{isLoading:x,searchItems:g}=fc(c,d),[b,h]=m.useState(!1);m.useEffect(()=>{(g.length>0||x)&&h(!0)},[g,x]);const v=m.useRef(null);return m.useEffect(()=>{var R;u(""),r===o&&((R=v.current)==null||R.focus())},[r,o]),n.jsxRuntimeExports.jsx(n.Form,{className:"w-100 d-flex align-items-center justify-content-center",onSubmit:R=>{R.preventDefault(),R.stopPropagation(),f.flush(),h(!1),d.length>2&&t(`/search?query=${d}${c&&c.key&&`&type=${c==null?void 0:c.key}`}`)},children:n.jsxRuntimeExports.jsxs(ur,{className:n.classNames(et.inputGroup,a),children:[n.jsxRuntimeExports.jsx(ur.Text,{className:n.classNames("p-1 rounded",et.inputGroupText,et.left),children:n.jsxRuntimeExports.jsx(ac,{searchTypes:e,selectedType:c,setSelectedType:l})}),n.jsxRuntimeExports.jsx(n.Form.Control,{ref:v,placeholder:i.searchPlaceholder,type:"text",size:"sm",className:n.classNames("luminus-app-search-input",et.input),value:p,onChange:R=>{var C;return u(((C=R.target)==null?void 0:C.value)??"")},onFocus:()=>g.length>0&&h(!0)}),n.jsxRuntimeExports.jsx(ur.Text,{className:n.classNames("p-0 rounded",et.inputGroupText,et.right),children:n.jsxRuntimeExports.jsx("button",{type:"submit",className:n.classNames("text-primary",et.submitButton),children:n.jsxRuntimeExports.jsx(n.FaSearch,{})})}),n.jsxRuntimeExports.jsx(mc,{query:d,searchTypes:e,show:b,onCancel:()=>h(!1),groups:g,isLoading:x})]})})},gc="_card_19733_1",vc="_header_19733_6",hc="_header-content_19733_13",bc="_title_19733_19",Ec="_collapse-icon_19733_22",jc="_collapsed_19733_27",yc="_content_19733_30",rt={card:gc,header:vc,"header-content":"_header-content_19733_13",headerContent:hc,title:bc,"collapse-icon":"_collapse-icon_19733_22",collapseIcon:Ec,collapsed:jc,content:yc},Mt=({title:e,headerContent:t,children:r,className:o,headerClassName:a,contentClassName:i,dontRenderIfNoChildren:s,...l})=>{const c=l.collapsible?l.controlled?!1:l.defaultOpen??!1:!0,[p,u]=m.useState(c),d=l.collapsible?l.controlled?l.isOpen:p:!0;m.useEffect(()=>{u(c)},[c]);const f=m.useMemo(()=>!r||!r.toString()||r.toString().split(",").filter(x=>x&&x!=="false").length===0,[r]);return s&&f?null:n.jsxRuntimeExports.jsxs("div",{className:n.classNames("luminus-card rounded shadow-sm",rt.card,{[o??""]:o}),children:[n.jsxRuntimeExports.jsxs("div",{role:l.collapsible?"button":void 0,className:n.classNames("header",rt.header,{[a??""]:a}),onClick:()=>{l.collapsible&&(l.controlled?l.onToggle(!l.isOpen):u(!p))},children:[n.jsxRuntimeExports.jsxs("div",{className:n.classNames("header-content",rt.headerContent),children:[n.jsxRuntimeExports.jsx(n.Typography,{variant:"h6",className:n.classNames("text-primary",rt.title),children:e}),t??null]}),l.collapsible&&n.jsxRuntimeExports.jsx(n.MdOutlineChevronRight,{className:n.classNames(rt.collapseIcon,{[rt.collapsed]:d})})]}),n.jsxRuntimeExports.jsx(Ma,{in:d,children:n.jsxRuntimeExports.jsx("div",{className:n.classNames("card-content border-top border-primary",rt.content,{[i??""]:i}),children:r})})]})};function Lt(e){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(e)}function Rc(e,t){if(Lt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(Lt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cc(e){var t=Rc(e,"string");return Lt(t)=="symbol"?t:t+""}function wc(e,t,r){return(t=Cc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,o)}return r}function Eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bo(Object(r),!0).forEach(function(o){wc(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bo(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function De(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var jo=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Pr=function(){return Math.random().toString(36).substring(7).split("").join(".")},yo={INIT:"@@redux/INIT"+Pr(),REPLACE:"@@redux/REPLACE"+Pr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Pr()}};function Nc(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Dc(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Oc(e))return"date";if(Ic(e))return"error";var r=Sc(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Sc(e){return typeof e.constructor=="function"?e.constructor.name:null}function Ic(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Oc(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function it(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Dc(e)),t}function si(e,t,r){var o;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?De(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?De(1):"Expected the enhancer to be a function. Instead, received: '"+it(r)+"'");return r(si)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?De(2):"Expected the root reducer to be a function. Instead, received: '"+it(e)+"'");var a=e,i=t,s=[],l=s,c=!1;function p(){l===s&&(l=s.slice())}function u(){if(c)throw new Error(process.env.NODE_ENV==="production"?De(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?De(4):"Expected the listener to be a function. Instead, received: '"+it(b)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?De(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var h=!0;return p(),l.push(b),function(){if(h){if(c)throw new Error(process.env.NODE_ENV==="production"?De(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");h=!1,p();var E=l.indexOf(b);l.splice(E,1),s=null}}}function f(b){if(!Nc(b))throw new Error(process.env.NODE_ENV==="production"?De(7):"Actions must be plain objects. Instead, the actual type was: '"+it(b)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof b.type>"u")throw new Error(process.env.NODE_ENV==="production"?De(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?De(9):"Reducers may not dispatch actions.");try{c=!0,i=a(i,b)}finally{c=!1}for(var h=s=l,v=0;v<h.length;v++){var E=h[v];E()}return b}function x(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?De(10):"Expected the nextReducer to be a function. Instead, received: '"+it(b));a=b,f({type:yo.REPLACE})}function g(){var b,h=d;return b={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?De(11):"Expected the observer to be an object. Instead, received: '"+it(E)+"'");function R(){E.next&&E.next(u())}R();var C=h(R);return{unsubscribe:C}}},b[jo]=function(){return this},b}return f({type:yo.INIT}),o={dispatch:f,subscribe:d,getState:u,replaceReducer:x},o[jo]=g,o}function Ro(e,t){return function(){return t(e.apply(this,arguments))}}function Co(e,t){if(typeof e=="function")return Ro(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?De(16):"bindActionCreators expected an object or a function, but instead received: '"+it(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var o in e){var a=e[o];typeof a=="function"&&(r[o]=Ro(a,t))}return r}function li(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function _c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?De(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(c){return c(s)});return i=li.apply(void 0,l)(a.dispatch),Eo(Eo({},a),{},{dispatch:i})}}}var Rn=m.createContext(null);process.env.NODE_ENV!=="production"&&(Rn.displayName="ReactRedux");function Tc(e){e()}var ci=Tc,Pc=function(t){return ci=t},kc=function(){return ci};function Ac(){var e=kc(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var a=t;a;)a.callback(),a=a.next})},get:function(){for(var a=[],i=t;i;)a.push(i),i=i.next;return a},subscribe:function(a){var i=!0,s=r={callback:a,next:null,prev:r};return s.prev?s.prev.next=s:t=s,function(){!i||t===null||(i=!1,s.next?s.next.prev=s.prev:r=s.prev,s.prev?s.prev.next=s.next:t=s.next)}}}}var wo={notify:function(){},get:function(){return[]}};function ui(e,t){var r,o=wo;function a(d){return c(),o.subscribe(d)}function i(){o.notify()}function s(){u.onStateChange&&u.onStateChange()}function l(){return!!r}function c(){r||(r=t?t.addNestedSub(s):e.subscribe(s),o=Ac())}function p(){r&&(r(),r=void 0,o.clear(),o=wo)}var u={addNestedSub:a,notifyNestedSubs:i,handleChangeWrapper:s,isSubscribed:l,trySubscribe:c,tryUnsubscribe:p,getListeners:function(){return o}};return u}var di=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function pi(e){var t=e.store,r=e.context,o=e.children,a=m.useMemo(function(){var l=ui(t);return{store:t,subscription:l}},[t]),i=m.useMemo(function(){return t.getState()},[t]);di(function(){var l=a.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==t.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[a,i]);var s=r||Rn;return m.createElement(s.Provider,{value:a},o)}process.env.NODE_ENV!=="production"&&(pi.propTypes={store:n.Oe.shape({subscribe:n.Oe.func.isRequired,dispatch:n.Oe.func.isRequired,getState:n.Oe.func.isRequired}),context:n.Oe.object,children:n.Oe.any});var Cn=n.requireReactIs(),Bc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Mc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Lc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wn={};wn[Cn.ForwardRef]=Lc;wn[Cn.Memo]=mi;function No(e){return Cn.isMemo(e)?mi:wn[e.$$typeof]||Bc}var Fc=Object.defineProperty,Vc=Object.getOwnPropertyNames,Do=Object.getOwnPropertySymbols,$c=Object.getOwnPropertyDescriptor,Gc=Object.getPrototypeOf,So=Object.prototype;function fi(e,t,r){if(typeof t!="string"){if(So){var o=Gc(t);o&&o!==So&&fi(e,o,r)}var a=Vc(t);Do&&(a=a.concat(Do(t)));for(var i=No(e),s=No(t),l=0;l<a.length;++l){var c=a[l];if(!Mc[c]&&!(r&&r[c])&&!(s&&s[c])&&!(i&&i[c])){var p=$c(t,c);try{Fc(e,c,p)}catch{}}}}return e}var Wc=fi;const Io=n.getDefaultExportFromCjs(Wc);var sn={exports:{}},se={};/** @license React v17.0.2
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
package/dist/main.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as s, c as j, t as Te, s as po, g as fo, m as dc, d as Xr, a as uc, b as pc, e as gt, f as va, h as fc, i as gc, k as vc, l as mc, n as hc, o as bc, p as xc, T as Qi, q as Zi, r as go, E as yc, u as es, v as ma, w as ts, x as wc, y as _e, z as ha, F as rs, A as Dc, B as Nc, C as Sc, D as Cc, M as Ec, G as Ic, H as jc, I as Oc, J as _c, K as Pc, L as ea, N as Tc, O as Ac, P as ce, Q as hr, R as Rc, S as kc, U as Bc, V as Lt, W as le, X as ba, Y as Oe, Z as xa, _ as Mc, $ as ut, a0 as ht, a1 as $e, a2 as pn, a3 as Q, a4 as fn, a5 as Lc, a6 as Fc, a7 as Vc, a8 as ns, a9 as $c, aa as Gc, ab as Qt, ac as Zt, ad as _r, ae as tt, af as Wc, ag as Uc, ah as Hc, ai as lt, aj as ya, ak as zc, al as it, am as qc, an as Yc, ao as en, ap as te, aq as as, ar as Kc, as as Xc, at as Jc, au as os, av as is, aw as Qc, ax as Zc, ay as St, az as ed, aA as Ge, aB as td, aC as rd, aD as nd, aE as Ct, aF as ad, aG as ss, aH as od, aI as Pr, aJ as wa, aK as Da, aL as ls, aM as Na, aN as cs, aO as ds, aP as Je, aQ as bt, aR as id, aS as sd, aT as xt, aU as et, aV as ld, aW as Ft, aX as cd, aY as dd, aZ as tn, a_ as er, a$ as Sa, b0 as Tr, b1 as ud, b2 as Cn, b3 as pd, b4 as Ut, b5 as fd, b6 as gd, b7 as Ca, b8 as gn, b9 as us, ba as rn, bb as Ea, bc as vd, bd as ps, be as Vr, bf as Et, bg as $t, bh as md, bi as hd, bj as fs, bk as En, bl as bd, bm as xd, bn as vo, bo as yd, bp as wd, bq as Dd, br as Nd, bs as gs } from "./ShortcutLinksContext-
|
|
2
|
-
import { bv as iD, bw as sD, bt as lD, bu as cD } from "./ShortcutLinksContext-
|
|
1
|
+
import { j as s, c as j, t as Te, s as po, g as fo, m as dc, d as Xr, a as uc, b as pc, e as gt, f as va, h as fc, i as gc, k as vc, l as mc, n as hc, o as bc, p as xc, T as Qi, q as Zi, r as go, E as yc, u as es, v as ma, w as ts, x as wc, y as _e, z as ha, F as rs, A as Dc, B as Nc, C as Sc, D as Cc, M as Ec, G as Ic, H as jc, I as Oc, J as _c, K as Pc, L as ea, N as Tc, O as Ac, P as ce, Q as hr, R as Rc, S as kc, U as Bc, V as Lt, W as le, X as ba, Y as Oe, Z as xa, _ as Mc, $ as ut, a0 as ht, a1 as $e, a2 as pn, a3 as Q, a4 as fn, a5 as Lc, a6 as Fc, a7 as Vc, a8 as ns, a9 as $c, aa as Gc, ab as Qt, ac as Zt, ad as _r, ae as tt, af as Wc, ag as Uc, ah as Hc, ai as lt, aj as ya, ak as zc, al as it, am as qc, an as Yc, ao as en, ap as te, aq as as, ar as Kc, as as Xc, at as Jc, au as os, av as is, aw as Qc, ax as Zc, ay as St, az as ed, aA as Ge, aB as td, aC as rd, aD as nd, aE as Ct, aF as ad, aG as ss, aH as od, aI as Pr, aJ as wa, aK as Da, aL as ls, aM as Na, aN as cs, aO as ds, aP as Je, aQ as bt, aR as id, aS as sd, aT as xt, aU as et, aV as ld, aW as Ft, aX as cd, aY as dd, aZ as tn, a_ as er, a$ as Sa, b0 as Tr, b1 as ud, b2 as Cn, b3 as pd, b4 as Ut, b5 as fd, b6 as gd, b7 as Ca, b8 as gn, b9 as us, ba as rn, bb as Ea, bc as vd, bd as ps, be as Vr, bf as Et, bg as $t, bh as md, bi as hd, bj as fs, bk as En, bl as bd, bm as xd, bn as vo, bo as yd, bp as wd, bq as Dd, br as Nd, bs as gs } from "./ShortcutLinksContext-b-GyjKck.js";
|
|
2
|
+
import { bv as iD, bw as sD, bt as lD, bu as cD } from "./ShortcutLinksContext-b-GyjKck.js";
|
|
3
3
|
import * as Ne from "react";
|
|
4
4
|
import ie, { useCallback as P, useMemo as V, useState as L, useRef as ee, useEffect as W, useContext as q, useId as Sd, Component as Cd, isValidElement as mo, Suspense as Ed, useLayoutEffect as Ia, useReducer as Id, Fragment as jd } from "react";
|
|
5
|
-
import { c as ct, L as ho, F as Od } from "./FormDisabledProvider-
|
|
5
|
+
import { c as ct, L as ho, F as Od } from "./FormDisabledProvider-M9P4Qmd7.js";
|
|
6
6
|
import { InteractionType as _d } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as Pd } from "@azure/msal-react";
|
|
8
8
|
import { useNavigate as vn, Link as nt, Navigate as $r, generatePath as br, useParams as vs, useSearchParams as Td, useLocation as Ad } from "react-router-dom";
|
|
@@ -10,7 +10,7 @@ import xr, { unstable_batchedUpdates as Rd } from "react-dom";
|
|
|
10
10
|
import { useFormContext as It, Controller as ja, useForm as kd, FormProvider as Bd } from "react-hook-form";
|
|
11
11
|
import { Pivot as Md } from "react-flexmonster";
|
|
12
12
|
import { u as Ld, a as Fd, b as ms, c as Vd } from "./useRenderDraggableInPortal-D0OLp7Qb.js";
|
|
13
|
-
import { u as st } from "./useGetApiData-
|
|
13
|
+
import { u as st } from "./useGetApiData-DJmqCWl6.js";
|
|
14
14
|
import { l as fr } from "./numberUtils-Bwf8nio8.js";
|
|
15
15
|
const dw = ({ fileLoader: e, fileName: t, children: r }) => {
|
|
16
16
|
const n = P(async () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./ShortcutLinksContext-
|
|
1
|
+
"use strict";const i=require("./ShortcutLinksContext-BtI3NfVP.cjs"),t=require("react");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");const n={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},G=(s,{loadOnInit:c=n.loadOnInit,enabled:d=n.enabled,silent:o=n.silent,nullStateBeforeLoad:f=n.nullStateBeforeLoad,nullStateOnFail:C=n.nullStateOnFail,customApiUrl:y,customBearerToken:S,dataTransformer:u}=n)=>{const g=i.useAxios({silent:o,customToken:S,differentBaseUrl:y}),[R,L]=t.useState(!1),{startLoading:D,stopLoading:b}=t.useContext(i.LoadingContext),$=t.useRef(0),{isAuthenticated:q}=i.useAuth(),k=t.useCallback(e=>{D(e),L(()=>!0)},[D]),x=t.useCallback(e=>{b(e),L(()=>!1)},[b]),[w,l]=t.useState(null),a=t.useCallback(async(e,h)=>{if(!q()||d===!1)return null;!o&&k(`loadData-${s}-${h}`),f&&l(null);let p;try{const r=await g.get(s,{signal:e}),A=u?u(r.data):r.data;l(A),p=A}catch(r){throw C&&l(null),r}finally{!o&&x(`loadData-${s}-${h}`)}return p},[q,d,o,k,s,f,g,u,C,x]),O=t.useCallback(async()=>{a()},[a]),B=t.useCallback(async()=>a(),[a]);return t.useEffect(()=>{if(c===!1)return;const e=new AbortController;return a(e.signal,++$.current),()=>{e.abort()}},[a,c]),{data:w,setData:l,reloadData:O,isLoading:R,reloadDataWithReturn:B}};exports.useGetApiData=G;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ai as I, a_ as v, aD as E } from "./ShortcutLinksContext-
|
|
1
|
+
import { ai as I, a_ as v, aD as E } from "./ShortcutLinksContext-b-GyjKck.js";
|
|
2
2
|
import { useState as A, useContext as F, useRef as G, useCallback as e, useEffect as U } from "react";
|
|
3
3
|
import "react-router-dom";
|
|
4
4
|
import "react-dom";
|
package/dist/utils.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ShortcutLinksContext-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ShortcutLinksContext-BtI3NfVP.cjs");require("react");require("@azure/msal-browser");require("@azure/msal-react");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");const f=require("./numberUtils-BY7ziQF8.cjs"),g=({cell:{value:t}})=>e.jsxRuntimeExports.jsx(e.SimpleTooltip,{text:t,placement:"bottom",children:e.jsxRuntimeExports.jsx("div",{className:"w-100 text-truncate",children:t})}),h=({cell:{value:t}})=>e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:t==null?void 0:t.toLocaleString("cs-CZ")}),d=({cell:{value:t}})=>{const i=e.format(new Date(t),"dd.MM.yyyy");return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:t?i:""})},S=(t,i)=>{let n=!1,a=t;t[0]==="#"&&(a=t.slice(1),n=!0);let r=parseInt(a.substring(0,2),16),o=parseInt(a.substring(2,4),16),s=parseInt(a.substring(4,6),16);r+=i,o+=i,s+=i,r>255?r=255:r<0&&(r=0),o>255?o=255:o<0&&(o=0),s>255?s=255:s<0&&(s=0);const m=r.toString(16).length===1?"0"+r.toString(16):r.toString(16),c=o.toString(16).length===1?"0"+o.toString(16):o.toString(16),u=s.toString(16).length===1?"0"+s.toString(16):s.toString(16);return(n?"#":"")+m+c+u},p=t=>{const i=t.slice(3),n=[];for(let r=0;r<i.length;r+=2)n.push(i.slice(r,r+2));return`#${n.reverse().join("")}`};function l(t,i){t.setValue(i,null)}function F(t,i){i.forEach(n=>{l(t,n)})}const x=["edit","delete","info","warning","check","check-simple","add","cancel","cancel-simple","danger","chevron-left","chevron-right","chevron-up","chevron-down","chevron-double-left","chevron-double-right","folder","folder-filled","file-download","file-upload","star-outline","save","link","pending","resizer-horizontal"];exports.atobUtf8=e.atobUtf8;exports.buildEmployeeNameString=e.buildEmployeeNameString;exports.buildOrgUnitString=e.buildOrgUnitString;exports.buildVehicleNameString=e.buildVehicleNameString;exports.capitalizeFirstLetter=e.capitalizeFirstLetter;exports.compareDate=e.compareDate;exports.compareDateTime=e.compareDateTime;exports.extractErrorsFromResponse=e.extractErrorsFromResponse;exports.extractFilename=e.extractFilename;exports.extractPermissionsFromResponse=e.extractPermissionsFromResponse;exports.fixNameIdNulls=e.fixNameIdNulls;exports.formatDate=e.formatDate;exports.formatDateTime=e.formatDateTime;exports.formatFileSize=e.formatFileSize;exports.getDateString=e.getDateString;exports.getDaysDifference=e.getDaysDifference;exports.getFirstDayOfMonth=e.getFirstDayOfMonth;exports.getFirstDayOfOffsetMonth=e.getFirstDayOfOffsetMonth;exports.getFirstDayOfYear=e.getFirstDayOfYear;exports.getLastDayOfMonth=e.getLastDayOfMonth;exports.getLastDayOfOffsetMonth=e.getLastDayOfOffsetMonth;exports.getLastDayOfYear=e.getLastDayOfYear;exports.hasOnlyNullValues=e.hasOnlyNullValues;exports.hookFormSetServerErrors=e.hookFormSetServerErrors;exports.isISODate=e.isISODate;exports.isPrimitive=e.isPrimitive;exports.isValidDate=e.isValidDate;exports.joinStrings=e.joinStrings;exports.msToStartOfNextDay=e.msToStartOfNextDay;exports.openFileFromResponse=e.openFileFromResponse;exports.replaceNullValuesOnlyObjectsWithNulls=e.replaceNullValuesOnlyObjectsWithNulls;exports.saveFile=e.saveFile;exports.saveFileFromResponse=e.saveFileFromResponse;exports.shortenText=e.shortenText;exports.stringContains=e.stringContains;exports.stringSearchWithin=e.stringSearchWithin;exports.stringStartsWith=e.stringStartsWith;exports.trimIsoDate=e.trimIsoDate;exports.truncateText=e.truncateText;exports.urlfyArray=e.urlfyArray;exports.limitNumber=f.limitNumber;exports.CommonLuminusIconsArray=x;exports.adjustBrightness=S;exports.dateValueFormat=d;exports.hookFormSetNull=l;exports.hookFormSetNulls=F;exports.numFormat=h;exports.valueTooltip=g;exports.vclToHex=p;
|
package/dist/utils.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as i, aA as f, V as g } from "./ShortcutLinksContext-
|
|
2
|
-
import { c9 as I, c7 as M, c8 as k, c6 as w, c5 as L, bP as E, bQ as P, b2 as z, bX as B, bM as W, b$ as A, b9 as G, c4 as U, cb as Y, bW as Q, bR as Z, aR as $, bT as H, aS as X, bS as _, bU as q, bV as J, c0 as K, bm as tt, bN as et, b_ as st, bO as rt, cc as at, bF as ot, bZ as it, c1 as nt, bY as lt, b1 as ct, ce as mt, c2 as ft, a0 as gt, c3 as ut, aQ as ht, ca as pt, cd as bt } from "./ShortcutLinksContext-
|
|
1
|
+
import { j as i, aA as f, V as g } from "./ShortcutLinksContext-b-GyjKck.js";
|
|
2
|
+
import { c9 as I, c7 as M, c8 as k, c6 as w, c5 as L, bP as E, bQ as P, b2 as z, bX as B, bM as W, b$ as A, b9 as G, c4 as U, cb as Y, bW as Q, bR as Z, aR as $, bT as H, aS as X, bS as _, bU as q, bV as J, c0 as K, bm as tt, bN as et, b_ as st, bO as rt, cc as at, bF as ot, bZ as it, c1 as nt, bY as lt, b1 as ct, ce as mt, c2 as ft, a0 as gt, c3 as ut, aQ as ht, ca as pt, cd as bt } from "./ShortcutLinksContext-b-GyjKck.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@azure/msal-browser";
|
|
5
5
|
import "@azure/msal-react";
|