react-luminus-components 1.5.25 → 1.5.26
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-ByVMNZfj.cjs → FormDisabledProvider-CnseYc1t.cjs} +1 -1
- package/dist/{FormDisabledProvider-DaXGRefv.js → FormDisabledProvider-DruCyt_C.js} +1 -1
- package/dist/{ShortcutLinksContext-GuMlmySg.js → ShortcutLinksContext-DF8__Rbl.js} +157 -160
- package/dist/{ShortcutLinksContext-Ch5JVOFI.cjs → ShortcutLinksContext-Dm_GlAxE.cjs} +38 -38
- 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/SideMenu/SideMenu.d.ts +3 -1
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +125 -115
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +4 -4
- package/dist/style.css +1 -1
- package/dist/{useLocalStorageState-DWtbAM7j.cjs → useLocalStorageState--zK59AHw.cjs} +1 -1
- package/dist/{useLocalStorageState-BbAq2qRc.js → useLocalStorageState-bgBQaJ6D.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 t=require("./ShortcutLinksContext-Ch5JVOFI.cjs"),p=require("react"),Ie=require("./FormDisabledProvider-ByVMNZfj.cjs"),vl=require("@azure/msal-browser"),hl=require("@azure/msal-react"),se=require("react-router-dom"),Ct=require("react-dom"),Ee=require("react-hook-form"),bl=require("react-flexmonster"),qe=require("./useRenderDraggableInPortal-QPCaw-E_.cjs"),ge=require("./useLocalStorageState-DWtbAM7j.cjs"),ke=require("./localStorageUtils-BCZln9KS.cjs");function jl(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const ve=jl(p),El=({fileLoader:e,fileName:n,children:r})=>{const s=p.useCallback(async()=>{var l,c;const o=await e();if(!o)return;const a=window.URL.createObjectURL(new Blob([o])),i=document.createElement("a");i.href=a,i.setAttribute("download",n),(l=document.body)==null||l.appendChild(i),i.click(),(c=document.body)==null||c.removeChild(i)},[e,n]);return t.jsxRuntimeExports.jsx("div",{role:"button",onClick:s,children:r})},na=({className:e,size:n,...r})=>t.jsxRuntimeExports.jsxs("div",{className:t.classNames("luminus-loading",Ie.classes.loading,Ie.classes.loadingBlock,n==="line"?Ie.classes.sizeLine:void 0,n==="fill"?Ie.classes.sizeFill:void 0,e),...r,children:[t.jsxRuntimeExports.jsx("div",{className:t.classNames("spinner-grow",Ie.classes.spinnerGrow,"text-primary"),role:"status"}),t.jsxRuntimeExports.jsx("div",{className:t.classNames("spinner-grow",Ie.classes.spinnerGrow,"text-primary",Ie.classes.second),role:"status"}),t.jsxRuntimeExports.jsx("div",{className:t.classNames("spinner-grow",Ie.classes.spinnerGrow,"text-primary",Ie.classes.third),role:"status"})]});function yl(e,n){const r=t.toDate(e);return isNaN(n)?t.constructFrom(e,NaN):(n&&r.setDate(r.getDate()+n),r)}function Rl(e,n){const r=t.toDate(e),s=t.toDate(n),o=r.getTime()-s.getTime();return o<0?-1:o>0?1:o}function bs(e,n){const r=t.toDate(e),s=t.toDate(n),o=r.getFullYear()-s.getFullYear(),a=r.getMonth()-s.getMonth();return o*12+a}function js(e){const n=t.toDate(e);return Math.trunc(n.getMonth()/3)+1}function Vn(e,n){const r=t.toDate(e),s=t.toDate(n),o=r.getFullYear()-s.getFullYear(),a=js(r)-js(s);return o*4+a}function Es(e,n,r){const s=t.startOfWeek(e,r),o=t.startOfWeek(n,r),a=+s-t.getTimezoneOffsetInMilliseconds(s),i=+o-t.getTimezoneOffsetInMilliseconds(o);return Math.round((a-i)/t.millisecondsInWeek)}function $n(e,n){const r=t.toDate(e),s=t.toDate(n);return r.getFullYear()-s.getFullYear()}function Cl(e,n){const r=t.toDate(e),s=t.toDate(n),o=ys(r,s),a=Math.abs(t.differenceInCalendarDays(r,s));r.setDate(r.getDate()-o*a);const i=+(ys(r,s)===-o),l=o*(a-i);return l===0?0:l}function ys(e,n){const r=e.getFullYear()-n.getFullYear()||e.getMonth()-n.getMonth()||e.getDate()-n.getDate()||e.getHours()-n.getHours()||e.getMinutes()-n.getMinutes()||e.getSeconds()-n.getSeconds()||e.getMilliseconds()-n.getMilliseconds();return r<0?-1:r>0?1:r}function Ir(e){return n=>{const s=(e?Math[e]:Math.trunc)(n);return s===0?0:s}}function Tr(e,n){return+t.toDate(e)-+t.toDate(n)}function Rs(e,n,r){const s=Tr(e,n)/t.millisecondsInHour;return Ir(r==null?void 0:r.roundingMethod)(s)}function Cs(e,n,r){const s=Tr(e,n)/t.millisecondsInMinute;return Ir(r==null?void 0:r.roundingMethod)(s)}function Gn(e,n,r){const s=Tr(e,n)/1e3;return Ir(r==null?void 0:r.roundingMethod)(s)}function Et(e,n){const r=t.toDate(e);if(isNaN(r.getTime()))throw new RangeError("Invalid time value");const s=(n==null?void 0:n.format)??"extended",o=(n==null?void 0:n.representation)??"complete";let a="",i="";const l=s==="extended"?"-":"",c=s==="extended"?":":"";if(o!=="time"){const d=t.addLeadingZeros(r.getDate(),2),u=t.addLeadingZeros(r.getMonth()+1,2);a=`${t.addLeadingZeros(r.getFullYear(),4)}${l}${u}${l}${d}`}if(o!=="date"){const d=r.getTimezoneOffset();if(d!==0){const b=Math.abs(d),h=t.addLeadingZeros(Math.trunc(b/60),2),v=t.addLeadingZeros(b%60,2);i=`${d<0?"+":"-"}${h}:${v}`}else i="Z";const u=t.addLeadingZeros(r.getHours(),2),m=t.addLeadingZeros(r.getMinutes(),2),x=t.addLeadingZeros(r.getSeconds(),2),f=a===""?"":"T",g=[u,m,x].join(c);a=`${a}${f}${g}${i}`}return a}function Nl(e){const n=t.toDate(e),r=n.getFullYear(),s=n.getMonth(),o=t.constructFrom(e,0);return o.setFullYear(r,s+1,0),o.setHours(0,0,0,0),o.getDate()}function wl(e,n,r){let s=0,o;const a=t.toDate(e),i=t.toDate(n);if(r!=null&&r.unit)o=r==null?void 0:r.unit,o==="second"?s=Gn(a,i):o==="minute"?s=Cs(a,i):o==="hour"?s=Rs(a,i):o==="day"?s=t.differenceInCalendarDays(a,i):o==="week"?s=Es(a,i):o==="month"?s=bs(a,i):o==="quarter"?s=Vn(a,i):o==="year"&&(s=$n(a,i));else{const c=Gn(a,i);Math.abs(c)<t.secondsInMinute?(s=Gn(a,i),o="second"):Math.abs(c)<t.secondsInHour?(s=Cs(a,i),o="minute"):Math.abs(c)<t.secondsInDay&&Math.abs(t.differenceInCalendarDays(a,i))<1?(s=Rs(a,i),o="hour"):Math.abs(c)<t.secondsInWeek&&(s=t.differenceInCalendarDays(a,i))&&Math.abs(s)<7?o="day":Math.abs(c)<t.secondsInMonth?(s=Es(a,i),o="week"):Math.abs(c)<t.secondsInQuarter?(s=bs(a,i),o="month"):Math.abs(c)<t.secondsInYear&&Vn(a,i)<4?(s=Vn(a,i),o="quarter"):(s=$n(a,i),o="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(s,o)}function Sl(e,n){const r=t.toDate(e),s=r.getFullYear(),o=r.getDate(),a=t.constructFrom(e,0);a.setFullYear(s,n,15),a.setHours(0,0,0,0);const i=Nl(a);return r.setMonth(n,Math.min(o,i)),r}function fr(e,n){const r=t.toDate(e);return isNaN(+r)?t.constructFrom(e,NaN):(r.setFullYear(n),r)}function Mt(...e){return e.filter(n=>n!=null).reduce((n,r)=>{if(typeof r!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return n===null?r:function(...o){n.apply(this,o),r.apply(this,o)}},null)}const Dl={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Il(e,n){const r=`offset${e[0].toUpperCase()}${e.slice(1)}`,s=n[r],o=Dl[e];return s+parseInt(t.style(n,o[0]),10)+parseInt(t.style(n,o[1]),10)}const Tl={[t.EXITED]:"collapse",[t.EXITING]:"collapsing",[t.ENTERING]:"collapsing",[t.ENTERED]:"collapse show"},ra=p.forwardRef(({onEnter:e,onEntering:n,onEntered:r,onExit:s,onExiting:o,className:a,children:i,dimension:l="height",in:c=!1,timeout:d=300,mountOnEnter:u=!1,unmountOnExit:m=!1,appear:x=!1,getDimensionValue:f=Il,...g},b)=>{const h=typeof l=="function"?l():l,v=p.useMemo(()=>Mt(w=>{w.style[h]="0"},e),[h,e]),E=p.useMemo(()=>Mt(w=>{const N=`scroll${h[0].toUpperCase()}${h.slice(1)}`;w.style[h]=`${w[N]}px`},n),[h,n]),R=p.useMemo(()=>Mt(w=>{w.style[h]=null},r),[h,r]),y=p.useMemo(()=>Mt(w=>{w.style[h]=`${f(h,w)}px`,t.triggerBrowserReflow(w)},s),[s,f,h]),j=p.useMemo(()=>Mt(w=>{w.style[h]=null},o),[h,o]);return t.jsxRuntimeExports.jsx(t.TransitionWrapper,{ref:b,addEndListener:t.transitionEndListener,...g,"aria-expanded":g.role?c:null,onEnter:v,onEntering:E,onEntered:R,onExit:y,onExiting:j,childRef:i.ref,in:c,timeout:d,mountOnEnter:u,unmountOnExit:m,appear:x,children:(w,N)=>p.cloneElement(i,{...N,className:t.classNames(a,i.props.className,Tl[w],h==="width"&&"collapse-horizontal")})})}),_r=ve.forwardRef(({className:e,bsPrefix:n,as:r="div",...s},o)=>(n=t.useBootstrapPrefix(n,"card-body"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));_r.displayName="CardBody";const sa=ve.forwardRef(({className:e,bsPrefix:n,as:r="div",...s},o)=>(n=t.useBootstrapPrefix(n,"card-footer"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));sa.displayName="CardFooter";const oa=ve.createContext(null);oa.displayName="CardHeaderContext";const aa=ve.forwardRef(({bsPrefix:e,className:n,as:r="div",...s},o)=>{const a=t.useBootstrapPrefix(e,"card-header"),i=p.useMemo(()=>({cardHeaderBsPrefix:a}),[a]);return t.jsxRuntimeExports.jsx(oa.Provider,{value:i,children:t.jsxRuntimeExports.jsx(r,{ref:o,...s,className:t.classNames(n,a)})})});aa.displayName="CardHeader";const ia=ve.forwardRef(({bsPrefix:e,className:n,variant:r,as:s="img",...o},a)=>{const i=t.useBootstrapPrefix(e,"card-img");return t.jsxRuntimeExports.jsx(s,{ref:a,className:t.classNames(r?`${i}-${r}`:i,n),...o})});ia.displayName="CardImg";const la=ve.forwardRef(({className:e,bsPrefix:n,as:r="div",...s},o)=>(n=t.useBootstrapPrefix(n,"card-img-overlay"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));la.displayName="CardImgOverlay";const ca=ve.forwardRef(({className:e,bsPrefix:n,as:r="a",...s},o)=>(n=t.useBootstrapPrefix(n,"card-link"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));ca.displayName="CardLink";const _l=t.divWithClassName("h6"),ua=ve.forwardRef(({className:e,bsPrefix:n,as:r=_l,...s},o)=>(n=t.useBootstrapPrefix(n,"card-subtitle"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));ua.displayName="CardSubtitle";const da=ve.forwardRef(({className:e,bsPrefix:n,as:r="p",...s},o)=>(n=t.useBootstrapPrefix(n,"card-text"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));da.displayName="CardText";const kl=t.divWithClassName("h5"),pa=ve.forwardRef(({className:e,bsPrefix:n,as:r=kl,...s},o)=>(n=t.useBootstrapPrefix(n,"card-title"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));pa.displayName="CardTitle";const ma=ve.forwardRef(({bsPrefix:e,className:n,bg:r,text:s,border:o,body:a=!1,children:i,as:l="div",...c},d)=>{const u=t.useBootstrapPrefix(e,"card");return t.jsxRuntimeExports.jsx(l,{ref:d,...c,className:t.classNames(n,u,r&&`bg-${r}`,s&&`text-${s}`,o&&`border-${o}`),children:a?t.jsxRuntimeExports.jsx(_r,{children:i}):i})});ma.displayName="Card";const Ns=Object.assign(ma,{Img:ia,Title:pa,Subtitle:ua,Body:_r,Link:ca,Text:da,Header:aa,Footer:sa,ImgOverlay:la}),_n=ve.forwardRef(({className:e,bsPrefix:n,as:r="span",...s},o)=>(n=t.useBootstrapPrefix(n,"input-group-text"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));_n.displayName="InputGroupText";const Ol=e=>t.jsxRuntimeExports.jsx(_n,{children:t.jsxRuntimeExports.jsx(t.FormCheckInput,{type:"checkbox",...e})}),Pl=e=>t.jsxRuntimeExports.jsx(_n,{children:t.jsxRuntimeExports.jsx(t.FormCheckInput,{type:"radio",...e})}),xa=ve.forwardRef(({bsPrefix:e,size:n,hasValidation:r,className:s,as:o="div",...a},i)=>{e=t.useBootstrapPrefix(e,"input-group");const l=p.useMemo(()=>({}),[]);return t.jsxRuntimeExports.jsx(t.context.Provider,{value:l,children:t.jsxRuntimeExports.jsx(o,{ref:i,...a,className:t.classNames(s,e,n&&`${e}-${n}`,r&&"has-validation")})})});xa.displayName="InputGroup";const En=Object.assign(xa,{Text:_n,Radio:Pl,Checkbox:Ol}),gr=new WeakMap,ws=(e,n)=>{if(!e||!n)return;const r=gr.get(n)||new Map;gr.set(n,r);let s=r.get(e);return s||(s=n.matchMedia(e),s.refCount=0,r.set(s.media,s)),s};function Al(e,n=typeof window>"u"?void 0:window){const r=ws(e,n),[s,o]=p.useState(()=>r?r.matches:!1);return t.useIsomorphicEffect(()=>{let a=ws(e,n);if(!a)return o(!1);let i=gr.get(n);const l=()=>{o(a.matches)};return a.refCount++,a.addListener(l),l(),()=>{a.removeListener(l),a.refCount--,a.refCount<=0&&(i==null||i.delete(a.media)),a=void 0}},[e]),s}function Ll(e){const n=Object.keys(e);function r(l,c){return l===c?c:l?`${l} and ${c}`:c}function s(l){return n[Math.min(n.indexOf(l)+1,n.length-1)]}function o(l){const c=s(l);let d=e[c];return typeof d=="number"?d=`${d-.2}px`:d=`calc(${d} - 0.2px)`,`(max-width: ${d})`}function a(l){let c=e[l];return typeof c=="number"&&(c=`${c}px`),`(min-width: ${c})`}function i(l,c,d){let u;typeof l=="object"?(u=l,d=c,c=!0):(c=c||!0,u={[l]:c});let m=p.useMemo(()=>Object.entries(u).reduce((x,[f,g])=>((g==="up"||g===!0)&&(x=r(x,a(f))),(g==="down"||g===!0)&&(x=r(x,o(f))),x),""),[JSON.stringify(u)]);return Al(m,d)}return i}const Ml=Ll({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),fa=ve.forwardRef(({className:e,bsPrefix:n,as:r="div",...s},o)=>(n=t.useBootstrapPrefix(n,"offcanvas-body"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));fa.displayName="OffcanvasBody";const Bl={[t.ENTERING]:"show",[t.ENTERED]:"show"},ga=ve.forwardRef(({bsPrefix:e,className:n,children:r,in:s=!1,mountOnEnter:o=!1,unmountOnExit:a=!1,appear:i=!1,...l},c)=>(e=t.useBootstrapPrefix(e,"offcanvas"),t.jsxRuntimeExports.jsx(t.TransitionWrapper,{ref:c,addEndListener:t.transitionEndListener,in:s,mountOnEnter:o,unmountOnExit:a,appear:i,...l,childRef:r.ref,children:(d,u)=>ve.cloneElement(r,{...u,className:t.classNames(n,r.props.className,(d===t.ENTERING||d===t.EXITING)&&`${e}-toggling`,Bl[d])})})));ga.displayName="OffcanvasToggling";const va=ve.forwardRef(({bsPrefix:e,className:n,closeLabel:r="Close",closeButton:s=!1,...o},a)=>(e=t.useBootstrapPrefix(e,"offcanvas-header"),t.jsxRuntimeExports.jsx(t.AbstractModalHeader,{ref:a,...o,className:t.classNames(n,e),closeLabel:r,closeButton:s})));va.displayName="OffcanvasHeader";const Fl=t.divWithClassName("h5"),ha=ve.forwardRef(({className:e,bsPrefix:n,as:r=Fl,...s},o)=>(n=t.useBootstrapPrefix(n,"offcanvas-title"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));ha.displayName="OffcanvasTitle";function Vl(e){return t.jsxRuntimeExports.jsx(ga,{...e})}function $l(e){return t.jsxRuntimeExports.jsx(t.Fade,{...e})}const ba=ve.forwardRef(({bsPrefix:e,className:n,children:r,"aria-labelledby":s,placement:o="start",responsive:a,show:i=!1,backdrop:l=!0,keyboard:c=!0,scroll:d=!1,onEscapeKeyDown:u,onShow:m,onHide:x,container:f,autoFocus:g=!0,enforceFocus:b=!0,restoreFocus:h=!0,restoreFocusOptions:v,onEntered:E,onExit:R,onExiting:y,onEnter:j,onEntering:w,onExited:N,backdropClassName:T,manager:D,renderStaticNode:I=!1,...O},P)=>{const S=p.useRef();e=t.useBootstrapPrefix(e,"offcanvas");const[_,G]=p.useState(!1),L=t.useEventCallback(x),A=Ml(a||"xs","up");p.useEffect(()=>{G(a?i&&!A:i)},[i,a,A]);const $=p.useMemo(()=>({onHide:L}),[L]);function V(){return D||(d?(S.current||(S.current=new t.BootstrapModalManager({handleContainerOverflow:!1})),S.current):t.getSharedManager())}const k=(Q,...ce)=>{Q&&(Q.style.visibility="visible"),j==null||j(Q,...ce)},F=(Q,...ce)=>{Q&&(Q.style.visibility=""),N==null||N(...ce)},W=p.useCallback(Q=>t.jsxRuntimeExports.jsx("div",{...Q,className:t.classNames(`${e}-backdrop`,T)}),[T,e]),q=Q=>t.jsxRuntimeExports.jsx("div",{...Q,...O,className:t.classNames(n,a?`${e}-${a}`:e,`${e}-${o}`),"aria-labelledby":s,children:r});return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[!_&&(a||I)&&q({}),t.jsxRuntimeExports.jsx(t.ModalContext.Provider,{value:$,children:t.jsxRuntimeExports.jsx(t.BaseModal,{show:_,ref:P,backdrop:l,container:f,keyboard:c,autoFocus:g,enforceFocus:b&&!d,restoreFocus:h,restoreFocusOptions:v,onEscapeKeyDown:u,onShow:m,onHide:L,onEnter:k,onEntering:w,onEntered:E,onExit:R,onExiting:y,onExited:F,manager:V(),transition:Vl,backdropTransition:$l,renderBackdrop:W,renderDialog:q})})]})});ba.displayName="Offcanvas";const Ss=Object.assign(ba,{Body:fa,Header:va,Title:ha});function ja({animation:e,bg:n,bsPrefix:r,size:s,...o}){r=t.useBootstrapPrefix(r,"placeholder");const[{className:a,...i}]=t.useCol(o);return{...i,className:t.classNames(a,e?`${r}-${e}`:r,s&&`${r}-${s}`,n&&`bg-${n}`)}}const Ea=ve.forwardRef((e,n)=>{const r=ja(e);return t.jsxRuntimeExports.jsx(t.Button,{...r,ref:n,disabled:!0,tabIndex:-1})});Ea.displayName="PlaceholderButton";const ya=ve.forwardRef(({as:e="span",...n},r)=>{const s=ja(n);return t.jsxRuntimeExports.jsx(e,{...s,ref:r})});ya.displayName="Placeholder";const Xe=Object.assign(ya,{Button:Ea}),kr=ve.forwardRef(({bsPrefix:e,className:n,as:r="div",...s},o)=>{const a=t.useBootstrapPrefix(e,"row"),i=t.useBootstrapBreakpoints(),l=t.useBootstrapMinBreakpoint(),c=`${a}-cols`,d=[];return i.forEach(u=>{const m=s[u];delete s[u];let x;m!=null&&typeof m=="object"?{cols:x}=m:x=m;const f=u!==l?`-${u}`:"";x!=null&&d.push(`${c}${f}-${x}`)}),t.jsxRuntimeExports.jsx(r,{ref:o,...s,className:t.classNames(n,a,...d)})});kr.displayName="Row";const Gl=ve.forwardRef(({bsPrefix:e,className:n,striped:r,bordered:s,borderless:o,hover:a,size:i,variant:l,responsive:c,...d},u)=>{const m=t.useBootstrapPrefix(e,"table"),x=t.classNames(n,m,l&&`${m}-${l}`,i&&`${m}-${i}`,r&&`${m}-${typeof r=="string"?`striped-${r}`:"striped"}`,s&&`${m}-bordered`,o&&`${m}-borderless`,a&&`${m}-hover`),f=t.jsxRuntimeExports.jsx("table",{...d,className:x,ref:u});if(c){let g=`${m}-responsive`;return typeof c=="string"&&(g=`${g}-${c}`),t.jsxRuntimeExports.jsx("div",{className:g,children:f})}return f}),Ra=({children:e,onStorno:n,noSpacer:r,disabled:s})=>{const{texts:{formSubmit:o}}=p.useContext(t.LuminusComponentsContext);return t.jsxRuntimeExports.jsxs(Hi,{noSpacer:r,children:[t.jsxRuntimeExports.jsxs(t.PrimaryButton,{as:"button",color:"primary",size:"lg",type:"submit",disabled:s,children:[t.jsxRuntimeExports.jsx(t.MdCheck,{}),e]}),n&&t.jsxRuntimeExports.jsxs(t.PrimaryButton,{as:"button",color:"secondary",variant:"outlined",size:"lg",onClick:n,children:[t.jsxRuntimeExports.jsx(t.MdOutlineClose,{}),o.storno]})]})},Ul=({onUpload:e,accept:n,children:r,className:s,size:o="md"})=>{const a=p.useCallback(async l=>{if(l.target.files)try{await e(l.target.files)}finally{l.target.value=""}},[e]),i=p.useId();return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("label",{htmlFor:i,className:t.classNames("btn luminus-context-button text-primary",`btn-${o}`,s),children:r}),t.jsxRuntimeExports.jsx("input",{id:i,type:"file",accept:n,onChange:a,hidden:!0})]})},Wl="_select_14f33_1",Hl="_sm_14f33_11",zl="_lg_14f33_23",dn={select:Wl,sm:Hl,lg:zl},Ca=({month:e,onChangeMonth:n,locale:r,yearMin:s=2e3,yearMax:o=2050,className:a,monthClassName:i,yearClassName:l,size:c})=>{const d=p.useCallback(x=>{const f=Ie.addMonths(e,x);f.getFullYear()<s||f.getFullYear()>o||n(f)},[e,n,s,o]),u=p.useMemo(()=>{const x=[];for(let f=s;f<=o;f++)x.push(f);return x},[s,o]),m=p.useMemo(()=>{const g=[];for(let b=0;b<=11;b++)g.push({id:b,name:t.format(new Date(2024,b,1),"LLLL",{locale:r})});return g},[r]);return t.jsxRuntimeExports.jsxs("div",{className:t.classNames("card d-flex flex-row align-items-center justify-content-center m-0 p-1 gap-2",a,{[dn[c]]:c}),children:[t.jsxRuntimeExports.jsx(t.IconButton,{onClick:()=>d(-1),disabled:e.getFullYear()<s||e.getFullYear()===s&&e.getMonth()<=0,children:t.jsxRuntimeExports.jsx(t.MdOutlineKeyboardArrowLeft,{})}),t.jsxRuntimeExports.jsx(t.Form.Select,{value:e.getMonth(),onChange:x=>{var f;return((f=x.target)==null?void 0:f.value)&&n(Sl(e,Number(x.target.value)))},className:t.classNames(dn.select,dn.month,i),children:m.map(x=>t.jsxRuntimeExports.jsx("option",{value:x.id,children:x.name},x.id))}),t.jsxRuntimeExports.jsx(t.Form.Select,{value:e.getFullYear(),onChange:x=>{var f;return((f=x.target)==null?void 0:f.value)&&n(fr(e,Number(x.target.value)))},className:t.classNames(dn.select,l),children:u.map(x=>t.jsxRuntimeExports.jsx("option",{value:x,children:x},x))}),t.jsxRuntimeExports.jsx(t.IconButton,{onClick:()=>d(1),disabled:e.getFullYear()>o||e.getFullYear()===o&&e.getMonth()>=11,children:t.jsxRuntimeExports.jsx(t.MdOutlineKeyboardArrowRight,{})})]})},ql="_select_pywmr_1",Yl={select:ql},Ds=2e3,Is=2050,Na=({year:e,onChangeYear:n,className:r,variant:s="standart",...o})=>{const a=p.useMemo(()=>{var d;return o.manualOptions?((d=o.options)==null?void 0:d.at(0))??Ds:o.optionMin??Ds},[o]),i=p.useMemo(()=>{var d;return o.manualOptions?((d=o.options)==null?void 0:d.at(-1))??Is:o.optionMax??Is},[o]),l=p.useMemo(()=>{if(o.manualOptions)return o.options;const d=[];for(let u=a;u<=i;u++)d.push(u);return d},[o,i,a]),c=p.useCallback(d=>{if(o.manualOptions){const u=l.findIndex(m=>m===e.getFullYear());if(u!==-1){const m=l.at(u+d)??null;m&&n(fr(e,m))}}else{const u=e.getFullYear()+d;u>=a&&u<=i&&n(Ie.addYears(e,d))}},[e,n,i,a,o,l]);return t.jsxRuntimeExports.jsxs("div",{className:t.classNames("d-flex flex-row align-items-center m-0",s==="standart"?"card p-1 gap-2":void 0,s==="minimalist"?"p-0 gap-0":void 0,r??""),children:[t.jsxRuntimeExports.jsx(t.IconButton,{onClick:()=>c(-1),disabled:e.getFullYear()<=a,children:t.jsxRuntimeExports.jsx(t.MdOutlineKeyboardArrowLeft,{})}),t.jsxRuntimeExports.jsx(t.Form.Select,{value:e.getFullYear(),onChange:d=>{var u;return((u=d.target)==null?void 0:u.value)&&n(fr(e,Number(d.target.value)))},className:t.classNames(Yl.select,"bg-transparent"),children:l.map(d=>t.jsxRuntimeExports.jsx("option",{value:d,children:d},d))}),t.jsxRuntimeExports.jsx(t.IconButton,{onClick:()=>c(1),disabled:e.getFullYear()>=i,children:t.jsxRuntimeExports.jsx(t.MdOutlineKeyboardArrowRight,{})})]})};class Kl extends p.Component{constructor(n){super(n),this.state={hasError:!1,is404Error:!1},this.reload=this.reload.bind(this)}static getDerivedStateFromError(n){return{hasError:!0,is404Error:n.message==="404"}}componentDidUpdate(n){this.state.hasError&&n.keyForErrorState!==this.props.keyForErrorState&&this.setState({hasError:!1,is404Error:!1})}componentDidCatch(n,r){console.error("Error:",n,r)}reload(){this.setState({hasError:!1,is404Error:!1})}render(){const{fallback:n,fallbackOn404:r,children:s,texts:o,reloadButtonDisplay:a="append-after-child"}=this.props;return this.state.hasError?a==="inject-to-child"&&!this.state.is404Error&&p.isValidElement(n)?p.cloneElement(n,{...n.props},t.jsxRuntimeExports.jsxs("div",{className:"translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2",children:[...n.props.children,t.jsxRuntimeExports.jsx("div",{className:"d-flex gap-2 justify-content-center",children:t.jsxRuntimeExports.jsx(t.ContextButton,{type:"button",onClick:this.reload,children:o.reloadButtonContent})})]})):a==="inject-to-child"&&this.state.is404Error&&p.isValidElement(r)?p.cloneElement(r,{...r.props},t.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,t.jsxRuntimeExports.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[t.jsxRuntimeExports.jsx(t.ContextButton,{type:"button",onClick:this.reload,children:o.reloadButtonContent}),t.jsxRuntimeExports.jsx(t.ContextButton,{type:"button",onClick:this.props.navigateBack,children:o.navigateBackButtonContent})]})]})):t.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:n,t.jsxRuntimeExports.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[a==="none"?null:t.jsxRuntimeExports.jsx(t.ContextButton,{type:"button",onClick:this.reload,children:o.reloadButtonContent}),this.state.is404Error&&t.jsxRuntimeExports.jsx(t.ContextButton,{type:"button",onClick:this.props.navigateBack,children:o.navigateBackButtonContent})]})]}):s}}const Ql=e=>r=>{const{texts:{errorBoundary:s}}=p.useContext(t.LuminusComponentsContext);return t.jsxRuntimeExports.jsx(e,{texts:s,...r})},wa=Ql(Kl),Xl="_widget-card_e9tsb_1",Jl={"widget-card":"_widget-card_e9tsb_1",widgetCard:Xl},vr=({children:e,title:n,headerContent:r})=>t.jsxRuntimeExports.jsx(nt,{className:t.classNames(Jl.widgetCard,"luminus-widget"),title:n,headerContent:r,contentClassName:"h-100 overflow-auto",children:e}),Zl=({children:e,title:n})=>{const{texts:{widget:r}}=p.useContext(t.LuminusComponentsContext),s=se.useNavigate();return t.jsxRuntimeExports.jsx(wa,{fallback:t.jsxRuntimeExports.jsx(vr,{title:n,children:r.fallbackError}),reloadButtonDisplay:"inject-to-child",navigateBack:()=>s(-1),children:t.jsxRuntimeExports.jsx(p.Suspense,{fallback:t.jsxRuntimeExports.jsx(vr,{title:n,children:t.jsxRuntimeExports.jsx(na,{})}),children:e})})},ec="_widgets-row_13gg1_1",tc="_widget_13gg1_1",nc="_widget-img_13gg1_5",rc="_widget-title-spacer_13gg1_14",sc="_widget-title_13gg1_14",oc="_title_13gg1_28",Me={"widgets-row":"_widgets-row_13gg1_1",widgetsRow:ec,widget:tc,"widget-img":"_widget-img_13gg1_5",widgetImg:nc,"widget-title-spacer":"_widget-title-spacer_13gg1_14",widgetTitleSpacer:rc,"widget-title":"_widget-title_13gg1_14",widgetTitle:sc,title:oc},ac=({show:e,widgetGroups:n,widgets:r,handleClose:s,onWidgetPicked:o,texts:a})=>{const[i,l]=p.useState(""),c=p.useMemo(()=>r.filter(u=>u.id!==-1&&t.stringSearchWithin(u.name,i)),[r,i]),d=p.useMemo(()=>n.filter(u=>c.some(m=>m.group===u.id)),[n,c]);return t.jsxRuntimeExports.jsxs(t.Modal,{show:e,onHide:()=>s(),size:"lg",children:[t.jsxRuntimeExports.jsxs(t.Modal.Header,{closeButton:!0,children:[t.jsxRuntimeExports.jsx(t.Modal.Title,{className:"w-100",children:a.pickWidgetToAdd}),t.jsxRuntimeExports.jsx(t.Form.Control,{type:"search",size:"sm",value:i,placeholder:a.searchPlaceholder,onChange:u=>{var m;return l(((m=u.target)==null?void 0:m.value)??"")},className:"me-3",style:{maxWidth:"200px"}})]}),t.jsxRuntimeExports.jsx(t.Modal.Body,{className:"flex-column gap-3",children:c.length===0?t.jsxRuntimeExports.jsx(t.Alert,{variant:"warning",children:a.noWidgets}):t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[d.map(u=>t.jsxRuntimeExports.jsx(zt,{defaultOpen:!0,title:u.name??"",children:t.jsxRuntimeExports.jsx("div",{className:"p-1",children:t.jsxRuntimeExports.jsx("div",{className:t.classNames("row gx-3 gy-3",Me.widgetsRow),children:c.filter(m=>m.group===u.id).map(m=>t.jsxRuntimeExports.jsx("div",{className:"col col-4",children:t.jsxRuntimeExports.jsxs("div",{role:"button",className:t.classNames("p-0 pt-2 bg-white rounded shadow-sm",Me.widget),onClick:()=>o(m.id),children:[t.jsxRuntimeExports.jsx("div",{className:Me.widgetImg,style:{backgroundImage:m.img?`url(${m.img})`:void 0}}),t.jsxRuntimeExports.jsx("div",{className:Me.widgetTitleSpacer}),t.jsxRuntimeExports.jsx("div",{className:t.classNames(Me.widgetTitle,"rounded"),children:t.jsxRuntimeExports.jsx(t.Typography,{variant:"body",className:t.classNames(Me.title,"text-white text-truncate"),children:m.name})})]},m.id)}))})})},u.id)),c.some(u=>u.group===void 0)&&t.jsxRuntimeExports.jsx(zt,{defaultOpen:!0,title:a.otherWidgets,children:t.jsxRuntimeExports.jsx("div",{className:"p-1",children:t.jsxRuntimeExports.jsx("div",{className:t.classNames("row gx-3 gy-3",Me.widgetsRow),children:c.filter(u=>u.group===void 0).map(u=>t.jsxRuntimeExports.jsx("div",{className:"col col-4",children:t.jsxRuntimeExports.jsxs("div",{role:"button",className:t.classNames("p-0 pt-2 bg-white rounded shadow-sm",Me.widget),onClick:()=>o(u.id),children:[t.jsxRuntimeExports.jsx("div",{className:Me.widgetImg,style:{backgroundImage:u.img?`url(${u.img})`:void 0}}),t.jsxRuntimeExports.jsx("div",{className:Me.widgetTitleSpacer}),t.jsxRuntimeExports.jsx("div",{className:t.classNames(Me.widgetTitle,"rounded"),children:t.jsxRuntimeExports.jsx(t.Typography,{variant:"body",className:t.classNames(Me.title,"text-white text-truncate"),children:u.name})})]},u.id)}))})})})]})})]})},ic="_widget_19xgl_1",lc="_mobile_19xgl_7",Ts={widget:ic,mobile:lc},_s=({widgetGroups:e,availableWidgets:n,onAdd:r,texts:s})=>{const[o,a]=p.useState(!1),{isMobile:i}=t.useWindowSize();return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("div",{className:t.classNames("luminus-empty-widget",Ts.widget,{[Ts.mobile]:i}),children:t.jsxRuntimeExports.jsx(t.IconButton,{onClick:()=>a(!0),children:t.jsxRuntimeExports.jsx(t.MdOutlineAddCircleOutline,{})})}),t.jsxRuntimeExports.jsx(ac,{show:o,widgetGroups:e,widgets:n,handleClose:()=>a(!1),onWidgetPicked:l=>{a(!1),r(l)},texts:s})]})},cc="_dashboard_1gf59_1",uc="_widgets-grid_1gf59_1",dc="_widget-wrapper_1gf59_8",pc="_full-width_1gf59_13",mc="_widget-edit_1gf59_16",xc="_remove-icon_1gf59_19",fc="_full-width-icon_1gf59_26",gc="_widget-edit-overlay_1gf59_36",vc="_mobile_1gf59_45",ze={dashboard:cc,"widgets-grid":"_widgets-grid_1gf59_1",widgetsGrid:uc,"widget-wrapper":"_widget-wrapper_1gf59_8",widgetWrapper:dc,"full-width":"_full-width_1gf59_13",fullWidth:pc,"widget-edit":"_widget-edit_1gf59_16",widgetEdit:mc,"remove-icon":"_remove-icon_1gf59_19",removeIcon:xc,"full-width-icon":"_full-width-icon_1gf59_26",fullWidthIcon:fc,"widget-edit-overlay":"_widget-edit-overlay_1gf59_36",widgetEditOverlay:gc,mobile:vc},hc=(e,n="dashboardConfig")=>{const[r,s]=p.useState({widgets:[]});p.useEffect(()=>{const a=localStorage.getItem(n);a?s(JSON.parse(a)):e&&s(e)},[e,n]);const o=p.useCallback(a=>{s(a),localStorage.setItem(n,JSON.stringify(a))},[n]);return{dashboardConfig:r,onChangeDashboardConfig:o}},bc=({widgetGroups:e,availableWidgets:n,editMode:r,defaultDashboardConfig:s,dashboardConfigKey:o})=>{var f;const{texts:{homeDashboard:a}}=p.useContext(t.LuminusComponentsContext),{dashboardConfig:i,onChangeDashboardConfig:l}=hc(s,o),c=p.useCallback((g,b)=>{var h,v;g===((h=i.widgets)==null?void 0:h.length)?l({...i,widgets:[...i.widgets,{widgetId:b,fullWidth:!1}]}):l({...i,widgets:((v=i.widgets)==null?void 0:v.map((E,R)=>R===g?{widgetId:b,fullWidth:!1}:E))??[]})},[i,l]),d=p.useCallback(g=>{var b,h;((b=i.widgets[g])==null?void 0:b.widgetId)===-1?l({...i,widgets:((h=i.widgets)==null?void 0:h.filter((v,E)=>E!==g))??[]}):c(g,-1)},[i,l,c]),u=p.useCallback(g=>{var b;l({...i,widgets:((b=i.widgets)==null?void 0:b.map((h,v)=>v===g?{...h,fullWidth:!h.fullWidth}:h))??[]})},[i,l]),m=p.useCallback((g,b,h)=>g?t.jsxRuntimeExports.jsxs("div",{className:t.classNames(ze.widgetWrapper,{[ze.widgetEdit]:r&&g.id!==-1},{[ze.fullWidth]:h}),children:[r&&t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(t.IconButton,{color:"danger",onClick:()=>d(b),className:t.classNames(ze.removeIcon),children:t.jsxRuntimeExports.jsx(t.MdOutlineDelete,{})}),t.jsxRuntimeExports.jsx(t.IconButton,{color:h?"danger":"primary",onClick:()=>u(b),className:t.classNames(ze.fullWidthIcon),children:t.jsxRuntimeExports.jsx(t.MdOutlineExpand,{})})]}),g.id===-1?r&&t.jsxRuntimeExports.jsx("div",{className:ze.widgetWrapper,children:t.jsxRuntimeExports.jsx(_s,{widgetGroups:e,availableWidgets:n,onAdd:v=>c(b,v),texts:a})}):t.jsxRuntimeExports.jsx(Zl,{title:g.title,children:t.jsxRuntimeExports.jsx(g.WidgetElement,{title:g.title})}),g.id>-1&&r&&t.jsxRuntimeExports.jsx("div",{className:ze.widgetEditOverlay})]},b):t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{}),[r,e,c,d,u,n,a]),{isMobile:x}=t.useWindowSize();return t.jsxRuntimeExports.jsx("div",{className:t.classNames(ze.dashboard,{[ze.mobile]:x}),children:t.jsxRuntimeExports.jsxs("div",{className:t.classNames(ze.widgetsGrid),children:[(f=i.widgets)==null?void 0:f.map((g,b)=>m(n.find(h=>h.id===g.widgetId),b,g.fullWidth)),r&&t.jsxRuntimeExports.jsx(_s,{widgetGroups:e,availableWidgets:n,onAdd:g=>{var b;return c((b=i.widgets)==null?void 0:b.length,g)},texts:a})]})})},jc="_badge_193ci_1",Ec="_sm_193ci_6",yc="_md_193ci_10",Rc="_lg_193ci_14",Cc="_light_193ci_18",Un={badge:jc,sm:Ec,md:yc,lg:Rc,light:Cc},Nc=({children:e,color:n="primary",size:r="md",rounded:s,className:o,variant:a="filled",...i})=>{const l=p.useMemo(()=>a==="filled"?t.classNames(`bg-${n}`):a==="outline"?t.classNames(`text-${n} border-${n} border bg-white`):"",[n,a]);return t.jsxRuntimeExports.jsx("span",{className:t.classNames("luminus-badge badge",l,o,{"rounded-pill":s},{"text-dark":n==="light"},{[Un.light]:n==="light"},Un.badge,Un[r]),...i,children:e})},wc="_collapse-icon_1ahhn_1",Sc="_collapsed_1ahhn_6",ks={"collapse-icon":"_collapse-icon_1ahhn_1",collapseIcon:wc,collapsed:Sc},zt=({title:e,children:n,className:r,...s})=>{const o=s.controlled?!1:s.defaultOpen??!1,[a,i]=p.useState(o),l=s.controlled?s.isOpen:a;return p.useEffect(()=>{i(o)},[o]),t.jsxRuntimeExports.jsxs("div",{className:r??"",children:[t.jsxRuntimeExports.jsxs("div",{role:"button",className:"d-flex align-items-center justify-content-between pb-3 pt-2",onClick:()=>s.controlled?s.onToggle(!s.isOpen):i(!a),children:[t.jsxRuntimeExports.jsx(t.Typography,{variant:"h6",children:e}),t.jsxRuntimeExports.jsx(t.MdOutlineChevronRight,{className:t.classNames(ks.collapseIcon,{[ks.collapsed]:l})})]}),t.jsxRuntimeExports.jsx(ra,{in:l,children:t.jsxRuntimeExports.jsx("div",{children:n})}),t.jsxRuntimeExports.jsx("hr",{className:`my-0 ${l?"mt-3":""}`})]})},Dc=({color:e="primary",icon:n=t.jsxRuntimeExports.jsx(t.MdOutlineFileUpload,{size:12}),inputId:r="context-file-input",accept:s="*",onUpload:o,multiple:a,className:i,children:l,...c})=>{const d=u=>{u.target.files&&(o(u.target.files),u.target.value="")};return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs("label",{htmlFor:r,className:t.classNames(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i??""}`,t.classes.item),...c,children:[n,l]}),t.jsxRuntimeExports.jsx("input",{id:r,type:"file",accept:s,onChange:d,hidden:!0,multiple:a})]})},Ic="_card_19733_1",Tc="_header_19733_6",_c="_header-content_19733_13",kc="_title_19733_19",Oc="_collapse-icon_19733_22",Pc="_collapsed_19733_27",Ac="_content_19733_30",ot={card:Ic,header:Tc,"header-content":"_header-content_19733_13",headerContent:_c,title:kc,"collapse-icon":"_collapse-icon_19733_22",collapseIcon:Oc,collapsed:Pc,content:Ac},nt=({title:e,headerContent:n,children:r,className:s,headerClassName:o,contentClassName:a,dontRenderIfNoChildren:i,...l})=>{const c=l.collapsible?l.controlled?!1:l.defaultOpen??!1:!0,[d,u]=p.useState(c),m=l.collapsible?l.controlled?l.isOpen:d:!0;p.useEffect(()=>{u(c)},[c]);const x=p.useMemo(()=>!r||!r.toString()||r.toString().split(",").filter(f=>f&&f!=="false").length===0,[r]);return i&&x?null:t.jsxRuntimeExports.jsxs("div",{className:t.classNames("luminus-card rounded shadow-sm",ot.card,{[s??""]:s}),children:[t.jsxRuntimeExports.jsxs("div",{role:l.collapsible?"button":void 0,className:t.classNames("header",ot.header,{[o??""]:o}),onClick:()=>{l.collapsible&&(l.controlled?l.onToggle(!l.isOpen):u(!d))},children:[t.jsxRuntimeExports.jsxs("div",{className:t.classNames("header-content",ot.headerContent),children:[t.jsxRuntimeExports.jsx(t.Typography,{variant:"h6",className:t.classNames("text-primary",ot.title),children:e}),n??null]}),l.collapsible&&t.jsxRuntimeExports.jsx(t.MdOutlineChevronRight,{className:t.classNames(ot.collapseIcon,{[ot.collapsed]:m})})]}),t.jsxRuntimeExports.jsx(ra,{in:m,children:t.jsxRuntimeExports.jsx("div",{className:t.classNames("card-content border-top border-primary",ot.content,{[a??""]:a}),children:r})})]})};function qt(e){"@babel/helpers - typeof";return qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qt(e)}function Lc(e,n){if(qt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,n||"default");if(qt(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Mc(e){var n=Lc(e,"string");return qt(n)=="symbol"?n:n+""}function Bc(e,n,r){return(n=Mc(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Os(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,s)}return r}function Ps(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Os(Object(r),!0).forEach(function(s){Bc(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Os(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function _e(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 As=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Wn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ls={INIT:"@@redux/INIT"+Wn(),REPLACE:"@@redux/REPLACE"+Wn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Wn()}};function Fc(e){if(typeof e!="object"||e===null)return!1;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function Vc(e){if(e===void 0)return"undefined";if(e===null)return"null";var n=typeof e;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(e))return"array";if(Uc(e))return"date";if(Gc(e))return"error";var r=$c(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function $c(e){return typeof e.constructor=="function"?e.constructor.name:null}function Gc(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Uc(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ut(e){var n=typeof e;return process.env.NODE_ENV!=="production"&&(n=Vc(e)),n}function Sa(e,n,r){var s;if(typeof n=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?_e(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 n=="function"&&typeof r>"u"&&(r=n,n=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?_e(1):"Expected the enhancer to be a function. Instead, received: '"+ut(r)+"'");return r(Sa)(e,n)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?_e(2):"Expected the root reducer to be a function. Instead, received: '"+ut(e)+"'");var o=e,a=n,i=[],l=i,c=!1;function d(){l===i&&(l=i.slice())}function u(){if(c)throw new Error(process.env.NODE_ENV==="production"?_e(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 a}function m(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?_e(4):"Expected the listener to be a function. Instead, received: '"+ut(b)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?_e(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 d(),l.push(b),function(){if(h){if(c)throw new Error(process.env.NODE_ENV==="production"?_e(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,d();var E=l.indexOf(b);l.splice(E,1),i=null}}}function x(b){if(!Fc(b))throw new Error(process.env.NODE_ENV==="production"?_e(7):"Actions must be plain objects. Instead, the actual type was: '"+ut(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"?_e(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"?_e(9):"Reducers may not dispatch actions.");try{c=!0,a=o(a,b)}finally{c=!1}for(var h=i=l,v=0;v<h.length;v++){var E=h[v];E()}return b}function f(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?_e(10):"Expected the nextReducer to be a function. Instead, received: '"+ut(b));o=b,x({type:Ls.REPLACE})}function g(){var b,h=m;return b={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?_e(11):"Expected the observer to be an object. Instead, received: '"+ut(E)+"'");function R(){E.next&&E.next(u())}R();var y=h(R);return{unsubscribe:y}}},b[As]=function(){return this},b}return x({type:Ls.INIT}),s={dispatch:x,subscribe:m,getState:u,replaceReducer:f},s[As]=g,s}function Ms(e,n){return function(){return n(e.apply(this,arguments))}}function Bs(e,n){if(typeof e=="function")return Ms(e,n);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?_e(16):"bindActionCreators expected an object or a function, but instead received: '"+ut(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var s in e){var o=e[s];typeof o=="function"&&(r[s]=Ms(o,n))}return r}function Da(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.length===0?function(s){return s}:n.length===1?n[0]:n.reduce(function(s,o){return function(){return s(o.apply(void 0,arguments))}})}function Wc(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(s){return function(){var o=s.apply(void 0,arguments),a=function(){throw new Error(process.env.NODE_ENV==="production"?_e(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:o.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=n.map(function(c){return c(i)});return a=Da.apply(void 0,l)(o.dispatch),Ps(Ps({},o),{},{dispatch:a})}}}var Or=p.createContext(null);process.env.NODE_ENV!=="production"&&(Or.displayName="ReactRedux");function Hc(e){e()}var Ia=Hc,zc=function(n){return Ia=n},qc=function(){return Ia};function Yc(){var e=qc(),n=null,r=null;return{clear:function(){n=null,r=null},notify:function(){e(function(){for(var o=n;o;)o.callback(),o=o.next})},get:function(){for(var o=[],a=n;a;)o.push(a),a=a.next;return o},subscribe:function(o){var a=!0,i=r={callback:o,next:null,prev:r};return i.prev?i.prev.next=i:n=i,function(){!a||n===null||(a=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:n=i.next)}}}}var Fs={notify:function(){},get:function(){return[]}};function Ta(e,n){var r,s=Fs;function o(m){return c(),s.subscribe(m)}function a(){s.notify()}function i(){u.onStateChange&&u.onStateChange()}function l(){return!!r}function c(){r||(r=n?n.addNestedSub(i):e.subscribe(i),s=Yc())}function d(){r&&(r(),r=void 0,s.clear(),s=Fs)}var u={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:i,isSubscribed:l,trySubscribe:c,tryUnsubscribe:d,getListeners:function(){return s}};return u}var _a=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?p.useLayoutEffect:p.useEffect;function ka(e){var n=e.store,r=e.context,s=e.children,o=p.useMemo(function(){var l=Ta(n);return{store:n,subscription:l}},[n]),a=p.useMemo(function(){return n.getState()},[n]);_a(function(){var l=o.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==n.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[o,a]);var i=r||Or;return p.createElement(i.Provider,{value:o},s)}process.env.NODE_ENV!=="production"&&(ka.propTypes={store:t.Oe.shape({subscribe:t.Oe.func.isRequired,dispatch:t.Oe.func.isRequired,getState:t.Oe.func.isRequired}),context:t.Oe.object,children:t.Oe.any});var Pr=t.requireReactIs(),Kc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Oa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ar={};Ar[Pr.ForwardRef]=Xc;Ar[Pr.Memo]=Oa;function Vs(e){return Pr.isMemo(e)?Oa:Ar[e.$$typeof]||Kc}var Jc=Object.defineProperty,Zc=Object.getOwnPropertyNames,$s=Object.getOwnPropertySymbols,eu=Object.getOwnPropertyDescriptor,tu=Object.getPrototypeOf,Gs=Object.prototype;function Pa(e,n,r){if(typeof n!="string"){if(Gs){var s=tu(n);s&&s!==Gs&&Pa(e,s,r)}var o=Zc(n);$s&&(o=o.concat($s(n)));for(var a=Vs(e),i=Vs(n),l=0;l<o.length;++l){var c=o[l];if(!Qc[c]&&!(r&&r[c])&&!(i&&i[c])&&!(a&&a[c])){var d=eu(n,c);try{Jc(e,c,d)}catch{}}}}return e}var nu=Pa;const Us=t.getDefaultExportFromCjs(nu);var hr={exports:{}},ue={};/** @license React v17.0.2
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ShortcutLinksContext-Dm_GlAxE.cjs"),p=require("react"),Ie=require("./FormDisabledProvider-CnseYc1t.cjs"),vl=require("@azure/msal-browser"),hl=require("@azure/msal-react"),se=require("react-router-dom"),Ct=require("react-dom"),Ee=require("react-hook-form"),bl=require("react-flexmonster"),qe=require("./useRenderDraggableInPortal-QPCaw-E_.cjs"),ge=require("./useLocalStorageState--zK59AHw.cjs"),ke=require("./localStorageUtils-BCZln9KS.cjs");function jl(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const ve=jl(p),El=({fileLoader:e,fileName:n,children:r})=>{const s=p.useCallback(async()=>{var l,c;const o=await e();if(!o)return;const a=window.URL.createObjectURL(new Blob([o])),i=document.createElement("a");i.href=a,i.setAttribute("download",n),(l=document.body)==null||l.appendChild(i),i.click(),(c=document.body)==null||c.removeChild(i)},[e,n]);return t.jsxRuntimeExports.jsx("div",{role:"button",onClick:s,children:r})},na=({className:e,size:n,...r})=>t.jsxRuntimeExports.jsxs("div",{className:t.classNames("luminus-loading",Ie.classes.loading,Ie.classes.loadingBlock,n==="line"?Ie.classes.sizeLine:void 0,n==="fill"?Ie.classes.sizeFill:void 0,e),...r,children:[t.jsxRuntimeExports.jsx("div",{className:t.classNames("spinner-grow",Ie.classes.spinnerGrow,"text-primary"),role:"status"}),t.jsxRuntimeExports.jsx("div",{className:t.classNames("spinner-grow",Ie.classes.spinnerGrow,"text-primary",Ie.classes.second),role:"status"}),t.jsxRuntimeExports.jsx("div",{className:t.classNames("spinner-grow",Ie.classes.spinnerGrow,"text-primary",Ie.classes.third),role:"status"})]});function yl(e,n){const r=t.toDate(e);return isNaN(n)?t.constructFrom(e,NaN):(n&&r.setDate(r.getDate()+n),r)}function Rl(e,n){const r=t.toDate(e),s=t.toDate(n),o=r.getTime()-s.getTime();return o<0?-1:o>0?1:o}function bs(e,n){const r=t.toDate(e),s=t.toDate(n),o=r.getFullYear()-s.getFullYear(),a=r.getMonth()-s.getMonth();return o*12+a}function js(e){const n=t.toDate(e);return Math.trunc(n.getMonth()/3)+1}function Vn(e,n){const r=t.toDate(e),s=t.toDate(n),o=r.getFullYear()-s.getFullYear(),a=js(r)-js(s);return o*4+a}function Es(e,n,r){const s=t.startOfWeek(e,r),o=t.startOfWeek(n,r),a=+s-t.getTimezoneOffsetInMilliseconds(s),i=+o-t.getTimezoneOffsetInMilliseconds(o);return Math.round((a-i)/t.millisecondsInWeek)}function $n(e,n){const r=t.toDate(e),s=t.toDate(n);return r.getFullYear()-s.getFullYear()}function Cl(e,n){const r=t.toDate(e),s=t.toDate(n),o=ys(r,s),a=Math.abs(t.differenceInCalendarDays(r,s));r.setDate(r.getDate()-o*a);const i=+(ys(r,s)===-o),l=o*(a-i);return l===0?0:l}function ys(e,n){const r=e.getFullYear()-n.getFullYear()||e.getMonth()-n.getMonth()||e.getDate()-n.getDate()||e.getHours()-n.getHours()||e.getMinutes()-n.getMinutes()||e.getSeconds()-n.getSeconds()||e.getMilliseconds()-n.getMilliseconds();return r<0?-1:r>0?1:r}function Ir(e){return n=>{const s=(e?Math[e]:Math.trunc)(n);return s===0?0:s}}function Tr(e,n){return+t.toDate(e)-+t.toDate(n)}function Rs(e,n,r){const s=Tr(e,n)/t.millisecondsInHour;return Ir(r==null?void 0:r.roundingMethod)(s)}function Cs(e,n,r){const s=Tr(e,n)/t.millisecondsInMinute;return Ir(r==null?void 0:r.roundingMethod)(s)}function Gn(e,n,r){const s=Tr(e,n)/1e3;return Ir(r==null?void 0:r.roundingMethod)(s)}function Et(e,n){const r=t.toDate(e);if(isNaN(r.getTime()))throw new RangeError("Invalid time value");const s=(n==null?void 0:n.format)??"extended",o=(n==null?void 0:n.representation)??"complete";let a="",i="";const l=s==="extended"?"-":"",c=s==="extended"?":":"";if(o!=="time"){const d=t.addLeadingZeros(r.getDate(),2),u=t.addLeadingZeros(r.getMonth()+1,2);a=`${t.addLeadingZeros(r.getFullYear(),4)}${l}${u}${l}${d}`}if(o!=="date"){const d=r.getTimezoneOffset();if(d!==0){const b=Math.abs(d),h=t.addLeadingZeros(Math.trunc(b/60),2),v=t.addLeadingZeros(b%60,2);i=`${d<0?"+":"-"}${h}:${v}`}else i="Z";const u=t.addLeadingZeros(r.getHours(),2),m=t.addLeadingZeros(r.getMinutes(),2),x=t.addLeadingZeros(r.getSeconds(),2),f=a===""?"":"T",g=[u,m,x].join(c);a=`${a}${f}${g}${i}`}return a}function Nl(e){const n=t.toDate(e),r=n.getFullYear(),s=n.getMonth(),o=t.constructFrom(e,0);return o.setFullYear(r,s+1,0),o.setHours(0,0,0,0),o.getDate()}function wl(e,n,r){let s=0,o;const a=t.toDate(e),i=t.toDate(n);if(r!=null&&r.unit)o=r==null?void 0:r.unit,o==="second"?s=Gn(a,i):o==="minute"?s=Cs(a,i):o==="hour"?s=Rs(a,i):o==="day"?s=t.differenceInCalendarDays(a,i):o==="week"?s=Es(a,i):o==="month"?s=bs(a,i):o==="quarter"?s=Vn(a,i):o==="year"&&(s=$n(a,i));else{const c=Gn(a,i);Math.abs(c)<t.secondsInMinute?(s=Gn(a,i),o="second"):Math.abs(c)<t.secondsInHour?(s=Cs(a,i),o="minute"):Math.abs(c)<t.secondsInDay&&Math.abs(t.differenceInCalendarDays(a,i))<1?(s=Rs(a,i),o="hour"):Math.abs(c)<t.secondsInWeek&&(s=t.differenceInCalendarDays(a,i))&&Math.abs(s)<7?o="day":Math.abs(c)<t.secondsInMonth?(s=Es(a,i),o="week"):Math.abs(c)<t.secondsInQuarter?(s=bs(a,i),o="month"):Math.abs(c)<t.secondsInYear&&Vn(a,i)<4?(s=Vn(a,i),o="quarter"):(s=$n(a,i),o="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(s,o)}function Sl(e,n){const r=t.toDate(e),s=r.getFullYear(),o=r.getDate(),a=t.constructFrom(e,0);a.setFullYear(s,n,15),a.setHours(0,0,0,0);const i=Nl(a);return r.setMonth(n,Math.min(o,i)),r}function fr(e,n){const r=t.toDate(e);return isNaN(+r)?t.constructFrom(e,NaN):(r.setFullYear(n),r)}function Mt(...e){return e.filter(n=>n!=null).reduce((n,r)=>{if(typeof r!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return n===null?r:function(...o){n.apply(this,o),r.apply(this,o)}},null)}const Dl={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Il(e,n){const r=`offset${e[0].toUpperCase()}${e.slice(1)}`,s=n[r],o=Dl[e];return s+parseInt(t.style(n,o[0]),10)+parseInt(t.style(n,o[1]),10)}const Tl={[t.EXITED]:"collapse",[t.EXITING]:"collapsing",[t.ENTERING]:"collapsing",[t.ENTERED]:"collapse show"},ra=p.forwardRef(({onEnter:e,onEntering:n,onEntered:r,onExit:s,onExiting:o,className:a,children:i,dimension:l="height",in:c=!1,timeout:d=300,mountOnEnter:u=!1,unmountOnExit:m=!1,appear:x=!1,getDimensionValue:f=Il,...g},b)=>{const h=typeof l=="function"?l():l,v=p.useMemo(()=>Mt(w=>{w.style[h]="0"},e),[h,e]),E=p.useMemo(()=>Mt(w=>{const N=`scroll${h[0].toUpperCase()}${h.slice(1)}`;w.style[h]=`${w[N]}px`},n),[h,n]),R=p.useMemo(()=>Mt(w=>{w.style[h]=null},r),[h,r]),y=p.useMemo(()=>Mt(w=>{w.style[h]=`${f(h,w)}px`,t.triggerBrowserReflow(w)},s),[s,f,h]),j=p.useMemo(()=>Mt(w=>{w.style[h]=null},o),[h,o]);return t.jsxRuntimeExports.jsx(t.TransitionWrapper,{ref:b,addEndListener:t.transitionEndListener,...g,"aria-expanded":g.role?c:null,onEnter:v,onEntering:E,onEntered:R,onExit:y,onExiting:j,childRef:i.ref,in:c,timeout:d,mountOnEnter:u,unmountOnExit:m,appear:x,children:(w,N)=>p.cloneElement(i,{...N,className:t.classNames(a,i.props.className,Tl[w],h==="width"&&"collapse-horizontal")})})}),_r=ve.forwardRef(({className:e,bsPrefix:n,as:r="div",...s},o)=>(n=t.useBootstrapPrefix(n,"card-body"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));_r.displayName="CardBody";const sa=ve.forwardRef(({className:e,bsPrefix:n,as:r="div",...s},o)=>(n=t.useBootstrapPrefix(n,"card-footer"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));sa.displayName="CardFooter";const oa=ve.createContext(null);oa.displayName="CardHeaderContext";const aa=ve.forwardRef(({bsPrefix:e,className:n,as:r="div",...s},o)=>{const a=t.useBootstrapPrefix(e,"card-header"),i=p.useMemo(()=>({cardHeaderBsPrefix:a}),[a]);return t.jsxRuntimeExports.jsx(oa.Provider,{value:i,children:t.jsxRuntimeExports.jsx(r,{ref:o,...s,className:t.classNames(n,a)})})});aa.displayName="CardHeader";const ia=ve.forwardRef(({bsPrefix:e,className:n,variant:r,as:s="img",...o},a)=>{const i=t.useBootstrapPrefix(e,"card-img");return t.jsxRuntimeExports.jsx(s,{ref:a,className:t.classNames(r?`${i}-${r}`:i,n),...o})});ia.displayName="CardImg";const la=ve.forwardRef(({className:e,bsPrefix:n,as:r="div",...s},o)=>(n=t.useBootstrapPrefix(n,"card-img-overlay"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));la.displayName="CardImgOverlay";const ca=ve.forwardRef(({className:e,bsPrefix:n,as:r="a",...s},o)=>(n=t.useBootstrapPrefix(n,"card-link"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));ca.displayName="CardLink";const _l=t.divWithClassName("h6"),ua=ve.forwardRef(({className:e,bsPrefix:n,as:r=_l,...s},o)=>(n=t.useBootstrapPrefix(n,"card-subtitle"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));ua.displayName="CardSubtitle";const da=ve.forwardRef(({className:e,bsPrefix:n,as:r="p",...s},o)=>(n=t.useBootstrapPrefix(n,"card-text"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));da.displayName="CardText";const kl=t.divWithClassName("h5"),pa=ve.forwardRef(({className:e,bsPrefix:n,as:r=kl,...s},o)=>(n=t.useBootstrapPrefix(n,"card-title"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));pa.displayName="CardTitle";const ma=ve.forwardRef(({bsPrefix:e,className:n,bg:r,text:s,border:o,body:a=!1,children:i,as:l="div",...c},d)=>{const u=t.useBootstrapPrefix(e,"card");return t.jsxRuntimeExports.jsx(l,{ref:d,...c,className:t.classNames(n,u,r&&`bg-${r}`,s&&`text-${s}`,o&&`border-${o}`),children:a?t.jsxRuntimeExports.jsx(_r,{children:i}):i})});ma.displayName="Card";const Ns=Object.assign(ma,{Img:ia,Title:pa,Subtitle:ua,Body:_r,Link:ca,Text:da,Header:aa,Footer:sa,ImgOverlay:la}),_n=ve.forwardRef(({className:e,bsPrefix:n,as:r="span",...s},o)=>(n=t.useBootstrapPrefix(n,"input-group-text"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));_n.displayName="InputGroupText";const Ol=e=>t.jsxRuntimeExports.jsx(_n,{children:t.jsxRuntimeExports.jsx(t.FormCheckInput,{type:"checkbox",...e})}),Pl=e=>t.jsxRuntimeExports.jsx(_n,{children:t.jsxRuntimeExports.jsx(t.FormCheckInput,{type:"radio",...e})}),xa=ve.forwardRef(({bsPrefix:e,size:n,hasValidation:r,className:s,as:o="div",...a},i)=>{e=t.useBootstrapPrefix(e,"input-group");const l=p.useMemo(()=>({}),[]);return t.jsxRuntimeExports.jsx(t.context.Provider,{value:l,children:t.jsxRuntimeExports.jsx(o,{ref:i,...a,className:t.classNames(s,e,n&&`${e}-${n}`,r&&"has-validation")})})});xa.displayName="InputGroup";const En=Object.assign(xa,{Text:_n,Radio:Pl,Checkbox:Ol}),gr=new WeakMap,ws=(e,n)=>{if(!e||!n)return;const r=gr.get(n)||new Map;gr.set(n,r);let s=r.get(e);return s||(s=n.matchMedia(e),s.refCount=0,r.set(s.media,s)),s};function Al(e,n=typeof window>"u"?void 0:window){const r=ws(e,n),[s,o]=p.useState(()=>r?r.matches:!1);return t.useIsomorphicEffect(()=>{let a=ws(e,n);if(!a)return o(!1);let i=gr.get(n);const l=()=>{o(a.matches)};return a.refCount++,a.addListener(l),l(),()=>{a.removeListener(l),a.refCount--,a.refCount<=0&&(i==null||i.delete(a.media)),a=void 0}},[e]),s}function Ll(e){const n=Object.keys(e);function r(l,c){return l===c?c:l?`${l} and ${c}`:c}function s(l){return n[Math.min(n.indexOf(l)+1,n.length-1)]}function o(l){const c=s(l);let d=e[c];return typeof d=="number"?d=`${d-.2}px`:d=`calc(${d} - 0.2px)`,`(max-width: ${d})`}function a(l){let c=e[l];return typeof c=="number"&&(c=`${c}px`),`(min-width: ${c})`}function i(l,c,d){let u;typeof l=="object"?(u=l,d=c,c=!0):(c=c||!0,u={[l]:c});let m=p.useMemo(()=>Object.entries(u).reduce((x,[f,g])=>((g==="up"||g===!0)&&(x=r(x,a(f))),(g==="down"||g===!0)&&(x=r(x,o(f))),x),""),[JSON.stringify(u)]);return Al(m,d)}return i}const Ml=Ll({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),fa=ve.forwardRef(({className:e,bsPrefix:n,as:r="div",...s},o)=>(n=t.useBootstrapPrefix(n,"offcanvas-body"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));fa.displayName="OffcanvasBody";const Bl={[t.ENTERING]:"show",[t.ENTERED]:"show"},ga=ve.forwardRef(({bsPrefix:e,className:n,children:r,in:s=!1,mountOnEnter:o=!1,unmountOnExit:a=!1,appear:i=!1,...l},c)=>(e=t.useBootstrapPrefix(e,"offcanvas"),t.jsxRuntimeExports.jsx(t.TransitionWrapper,{ref:c,addEndListener:t.transitionEndListener,in:s,mountOnEnter:o,unmountOnExit:a,appear:i,...l,childRef:r.ref,children:(d,u)=>ve.cloneElement(r,{...u,className:t.classNames(n,r.props.className,(d===t.ENTERING||d===t.EXITING)&&`${e}-toggling`,Bl[d])})})));ga.displayName="OffcanvasToggling";const va=ve.forwardRef(({bsPrefix:e,className:n,closeLabel:r="Close",closeButton:s=!1,...o},a)=>(e=t.useBootstrapPrefix(e,"offcanvas-header"),t.jsxRuntimeExports.jsx(t.AbstractModalHeader,{ref:a,...o,className:t.classNames(n,e),closeLabel:r,closeButton:s})));va.displayName="OffcanvasHeader";const Fl=t.divWithClassName("h5"),ha=ve.forwardRef(({className:e,bsPrefix:n,as:r=Fl,...s},o)=>(n=t.useBootstrapPrefix(n,"offcanvas-title"),t.jsxRuntimeExports.jsx(r,{ref:o,className:t.classNames(e,n),...s})));ha.displayName="OffcanvasTitle";function Vl(e){return t.jsxRuntimeExports.jsx(ga,{...e})}function $l(e){return t.jsxRuntimeExports.jsx(t.Fade,{...e})}const ba=ve.forwardRef(({bsPrefix:e,className:n,children:r,"aria-labelledby":s,placement:o="start",responsive:a,show:i=!1,backdrop:l=!0,keyboard:c=!0,scroll:d=!1,onEscapeKeyDown:u,onShow:m,onHide:x,container:f,autoFocus:g=!0,enforceFocus:b=!0,restoreFocus:h=!0,restoreFocusOptions:v,onEntered:E,onExit:R,onExiting:y,onEnter:j,onEntering:w,onExited:N,backdropClassName:T,manager:D,renderStaticNode:I=!1,...O},P)=>{const S=p.useRef();e=t.useBootstrapPrefix(e,"offcanvas");const[_,G]=p.useState(!1),L=t.useEventCallback(x),A=Ml(a||"xs","up");p.useEffect(()=>{G(a?i&&!A:i)},[i,a,A]);const $=p.useMemo(()=>({onHide:L}),[L]);function V(){return D||(d?(S.current||(S.current=new t.BootstrapModalManager({handleContainerOverflow:!1})),S.current):t.getSharedManager())}const k=(Q,...ce)=>{Q&&(Q.style.visibility="visible"),j==null||j(Q,...ce)},F=(Q,...ce)=>{Q&&(Q.style.visibility=""),N==null||N(...ce)},W=p.useCallback(Q=>t.jsxRuntimeExports.jsx("div",{...Q,className:t.classNames(`${e}-backdrop`,T)}),[T,e]),q=Q=>t.jsxRuntimeExports.jsx("div",{...Q,...O,className:t.classNames(n,a?`${e}-${a}`:e,`${e}-${o}`),"aria-labelledby":s,children:r});return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[!_&&(a||I)&&q({}),t.jsxRuntimeExports.jsx(t.ModalContext.Provider,{value:$,children:t.jsxRuntimeExports.jsx(t.BaseModal,{show:_,ref:P,backdrop:l,container:f,keyboard:c,autoFocus:g,enforceFocus:b&&!d,restoreFocus:h,restoreFocusOptions:v,onEscapeKeyDown:u,onShow:m,onHide:L,onEnter:k,onEntering:w,onEntered:E,onExit:R,onExiting:y,onExited:F,manager:V(),transition:Vl,backdropTransition:$l,renderBackdrop:W,renderDialog:q})})]})});ba.displayName="Offcanvas";const Ss=Object.assign(ba,{Body:fa,Header:va,Title:ha});function ja({animation:e,bg:n,bsPrefix:r,size:s,...o}){r=t.useBootstrapPrefix(r,"placeholder");const[{className:a,...i}]=t.useCol(o);return{...i,className:t.classNames(a,e?`${r}-${e}`:r,s&&`${r}-${s}`,n&&`bg-${n}`)}}const Ea=ve.forwardRef((e,n)=>{const r=ja(e);return t.jsxRuntimeExports.jsx(t.Button,{...r,ref:n,disabled:!0,tabIndex:-1})});Ea.displayName="PlaceholderButton";const ya=ve.forwardRef(({as:e="span",...n},r)=>{const s=ja(n);return t.jsxRuntimeExports.jsx(e,{...s,ref:r})});ya.displayName="Placeholder";const Xe=Object.assign(ya,{Button:Ea}),kr=ve.forwardRef(({bsPrefix:e,className:n,as:r="div",...s},o)=>{const a=t.useBootstrapPrefix(e,"row"),i=t.useBootstrapBreakpoints(),l=t.useBootstrapMinBreakpoint(),c=`${a}-cols`,d=[];return i.forEach(u=>{const m=s[u];delete s[u];let x;m!=null&&typeof m=="object"?{cols:x}=m:x=m;const f=u!==l?`-${u}`:"";x!=null&&d.push(`${c}${f}-${x}`)}),t.jsxRuntimeExports.jsx(r,{ref:o,...s,className:t.classNames(n,a,...d)})});kr.displayName="Row";const Gl=ve.forwardRef(({bsPrefix:e,className:n,striped:r,bordered:s,borderless:o,hover:a,size:i,variant:l,responsive:c,...d},u)=>{const m=t.useBootstrapPrefix(e,"table"),x=t.classNames(n,m,l&&`${m}-${l}`,i&&`${m}-${i}`,r&&`${m}-${typeof r=="string"?`striped-${r}`:"striped"}`,s&&`${m}-bordered`,o&&`${m}-borderless`,a&&`${m}-hover`),f=t.jsxRuntimeExports.jsx("table",{...d,className:x,ref:u});if(c){let g=`${m}-responsive`;return typeof c=="string"&&(g=`${g}-${c}`),t.jsxRuntimeExports.jsx("div",{className:g,children:f})}return f}),Ra=({children:e,onStorno:n,noSpacer:r,disabled:s})=>{const{texts:{formSubmit:o}}=p.useContext(t.LuminusComponentsContext);return t.jsxRuntimeExports.jsxs(Hi,{noSpacer:r,children:[t.jsxRuntimeExports.jsxs(t.PrimaryButton,{as:"button",color:"primary",size:"lg",type:"submit",disabled:s,children:[t.jsxRuntimeExports.jsx(t.MdCheck,{}),e]}),n&&t.jsxRuntimeExports.jsxs(t.PrimaryButton,{as:"button",color:"secondary",variant:"outlined",size:"lg",onClick:n,children:[t.jsxRuntimeExports.jsx(t.MdOutlineClose,{}),o.storno]})]})},Ul=({onUpload:e,accept:n,children:r,className:s,size:o="md"})=>{const a=p.useCallback(async l=>{if(l.target.files)try{await e(l.target.files)}finally{l.target.value=""}},[e]),i=p.useId();return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("label",{htmlFor:i,className:t.classNames("btn luminus-context-button text-primary",`btn-${o}`,s),children:r}),t.jsxRuntimeExports.jsx("input",{id:i,type:"file",accept:n,onChange:a,hidden:!0})]})},Wl="_select_14f33_1",Hl="_sm_14f33_11",zl="_lg_14f33_23",dn={select:Wl,sm:Hl,lg:zl},Ca=({month:e,onChangeMonth:n,locale:r,yearMin:s=2e3,yearMax:o=2050,className:a,monthClassName:i,yearClassName:l,size:c})=>{const d=p.useCallback(x=>{const f=Ie.addMonths(e,x);f.getFullYear()<s||f.getFullYear()>o||n(f)},[e,n,s,o]),u=p.useMemo(()=>{const x=[];for(let f=s;f<=o;f++)x.push(f);return x},[s,o]),m=p.useMemo(()=>{const g=[];for(let b=0;b<=11;b++)g.push({id:b,name:t.format(new Date(2024,b,1),"LLLL",{locale:r})});return g},[r]);return t.jsxRuntimeExports.jsxs("div",{className:t.classNames("card d-flex flex-row align-items-center justify-content-center m-0 p-1 gap-2",a,{[dn[c]]:c}),children:[t.jsxRuntimeExports.jsx(t.IconButton,{onClick:()=>d(-1),disabled:e.getFullYear()<s||e.getFullYear()===s&&e.getMonth()<=0,children:t.jsxRuntimeExports.jsx(t.MdOutlineKeyboardArrowLeft,{})}),t.jsxRuntimeExports.jsx(t.Form.Select,{value:e.getMonth(),onChange:x=>{var f;return((f=x.target)==null?void 0:f.value)&&n(Sl(e,Number(x.target.value)))},className:t.classNames(dn.select,dn.month,i),children:m.map(x=>t.jsxRuntimeExports.jsx("option",{value:x.id,children:x.name},x.id))}),t.jsxRuntimeExports.jsx(t.Form.Select,{value:e.getFullYear(),onChange:x=>{var f;return((f=x.target)==null?void 0:f.value)&&n(fr(e,Number(x.target.value)))},className:t.classNames(dn.select,l),children:u.map(x=>t.jsxRuntimeExports.jsx("option",{value:x,children:x},x))}),t.jsxRuntimeExports.jsx(t.IconButton,{onClick:()=>d(1),disabled:e.getFullYear()>o||e.getFullYear()===o&&e.getMonth()>=11,children:t.jsxRuntimeExports.jsx(t.MdOutlineKeyboardArrowRight,{})})]})},ql="_select_pywmr_1",Yl={select:ql},Ds=2e3,Is=2050,Na=({year:e,onChangeYear:n,className:r,variant:s="standart",...o})=>{const a=p.useMemo(()=>{var d;return o.manualOptions?((d=o.options)==null?void 0:d.at(0))??Ds:o.optionMin??Ds},[o]),i=p.useMemo(()=>{var d;return o.manualOptions?((d=o.options)==null?void 0:d.at(-1))??Is:o.optionMax??Is},[o]),l=p.useMemo(()=>{if(o.manualOptions)return o.options;const d=[];for(let u=a;u<=i;u++)d.push(u);return d},[o,i,a]),c=p.useCallback(d=>{if(o.manualOptions){const u=l.findIndex(m=>m===e.getFullYear());if(u!==-1){const m=l.at(u+d)??null;m&&n(fr(e,m))}}else{const u=e.getFullYear()+d;u>=a&&u<=i&&n(Ie.addYears(e,d))}},[e,n,i,a,o,l]);return t.jsxRuntimeExports.jsxs("div",{className:t.classNames("d-flex flex-row align-items-center m-0",s==="standart"?"card p-1 gap-2":void 0,s==="minimalist"?"p-0 gap-0":void 0,r??""),children:[t.jsxRuntimeExports.jsx(t.IconButton,{onClick:()=>c(-1),disabled:e.getFullYear()<=a,children:t.jsxRuntimeExports.jsx(t.MdOutlineKeyboardArrowLeft,{})}),t.jsxRuntimeExports.jsx(t.Form.Select,{value:e.getFullYear(),onChange:d=>{var u;return((u=d.target)==null?void 0:u.value)&&n(fr(e,Number(d.target.value)))},className:t.classNames(Yl.select,"bg-transparent"),children:l.map(d=>t.jsxRuntimeExports.jsx("option",{value:d,children:d},d))}),t.jsxRuntimeExports.jsx(t.IconButton,{onClick:()=>c(1),disabled:e.getFullYear()>=i,children:t.jsxRuntimeExports.jsx(t.MdOutlineKeyboardArrowRight,{})})]})};class Kl extends p.Component{constructor(n){super(n),this.state={hasError:!1,is404Error:!1},this.reload=this.reload.bind(this)}static getDerivedStateFromError(n){return{hasError:!0,is404Error:n.message==="404"}}componentDidUpdate(n){this.state.hasError&&n.keyForErrorState!==this.props.keyForErrorState&&this.setState({hasError:!1,is404Error:!1})}componentDidCatch(n,r){console.error("Error:",n,r)}reload(){this.setState({hasError:!1,is404Error:!1})}render(){const{fallback:n,fallbackOn404:r,children:s,texts:o,reloadButtonDisplay:a="append-after-child"}=this.props;return this.state.hasError?a==="inject-to-child"&&!this.state.is404Error&&p.isValidElement(n)?p.cloneElement(n,{...n.props},t.jsxRuntimeExports.jsxs("div",{className:"translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2",children:[...n.props.children,t.jsxRuntimeExports.jsx("div",{className:"d-flex gap-2 justify-content-center",children:t.jsxRuntimeExports.jsx(t.ContextButton,{type:"button",onClick:this.reload,children:o.reloadButtonContent})})]})):a==="inject-to-child"&&this.state.is404Error&&p.isValidElement(r)?p.cloneElement(r,{...r.props},t.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,t.jsxRuntimeExports.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[t.jsxRuntimeExports.jsx(t.ContextButton,{type:"button",onClick:this.reload,children:o.reloadButtonContent}),t.jsxRuntimeExports.jsx(t.ContextButton,{type:"button",onClick:this.props.navigateBack,children:o.navigateBackButtonContent})]})]})):t.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:n,t.jsxRuntimeExports.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[a==="none"?null:t.jsxRuntimeExports.jsx(t.ContextButton,{type:"button",onClick:this.reload,children:o.reloadButtonContent}),this.state.is404Error&&t.jsxRuntimeExports.jsx(t.ContextButton,{type:"button",onClick:this.props.navigateBack,children:o.navigateBackButtonContent})]})]}):s}}const Ql=e=>r=>{const{texts:{errorBoundary:s}}=p.useContext(t.LuminusComponentsContext);return t.jsxRuntimeExports.jsx(e,{texts:s,...r})},wa=Ql(Kl),Xl="_widget-card_e9tsb_1",Jl={"widget-card":"_widget-card_e9tsb_1",widgetCard:Xl},vr=({children:e,title:n,headerContent:r})=>t.jsxRuntimeExports.jsx(nt,{className:t.classNames(Jl.widgetCard,"luminus-widget"),title:n,headerContent:r,contentClassName:"h-100 overflow-auto",children:e}),Zl=({children:e,title:n})=>{const{texts:{widget:r}}=p.useContext(t.LuminusComponentsContext),s=se.useNavigate();return t.jsxRuntimeExports.jsx(wa,{fallback:t.jsxRuntimeExports.jsx(vr,{title:n,children:r.fallbackError}),reloadButtonDisplay:"inject-to-child",navigateBack:()=>s(-1),children:t.jsxRuntimeExports.jsx(p.Suspense,{fallback:t.jsxRuntimeExports.jsx(vr,{title:n,children:t.jsxRuntimeExports.jsx(na,{})}),children:e})})},ec="_widgets-row_13gg1_1",tc="_widget_13gg1_1",nc="_widget-img_13gg1_5",rc="_widget-title-spacer_13gg1_14",sc="_widget-title_13gg1_14",oc="_title_13gg1_28",Me={"widgets-row":"_widgets-row_13gg1_1",widgetsRow:ec,widget:tc,"widget-img":"_widget-img_13gg1_5",widgetImg:nc,"widget-title-spacer":"_widget-title-spacer_13gg1_14",widgetTitleSpacer:rc,"widget-title":"_widget-title_13gg1_14",widgetTitle:sc,title:oc},ac=({show:e,widgetGroups:n,widgets:r,handleClose:s,onWidgetPicked:o,texts:a})=>{const[i,l]=p.useState(""),c=p.useMemo(()=>r.filter(u=>u.id!==-1&&t.stringSearchWithin(u.name,i)),[r,i]),d=p.useMemo(()=>n.filter(u=>c.some(m=>m.group===u.id)),[n,c]);return t.jsxRuntimeExports.jsxs(t.Modal,{show:e,onHide:()=>s(),size:"lg",children:[t.jsxRuntimeExports.jsxs(t.Modal.Header,{closeButton:!0,children:[t.jsxRuntimeExports.jsx(t.Modal.Title,{className:"w-100",children:a.pickWidgetToAdd}),t.jsxRuntimeExports.jsx(t.Form.Control,{type:"search",size:"sm",value:i,placeholder:a.searchPlaceholder,onChange:u=>{var m;return l(((m=u.target)==null?void 0:m.value)??"")},className:"me-3",style:{maxWidth:"200px"}})]}),t.jsxRuntimeExports.jsx(t.Modal.Body,{className:"flex-column gap-3",children:c.length===0?t.jsxRuntimeExports.jsx(t.Alert,{variant:"warning",children:a.noWidgets}):t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[d.map(u=>t.jsxRuntimeExports.jsx(zt,{defaultOpen:!0,title:u.name??"",children:t.jsxRuntimeExports.jsx("div",{className:"p-1",children:t.jsxRuntimeExports.jsx("div",{className:t.classNames("row gx-3 gy-3",Me.widgetsRow),children:c.filter(m=>m.group===u.id).map(m=>t.jsxRuntimeExports.jsx("div",{className:"col col-4",children:t.jsxRuntimeExports.jsxs("div",{role:"button",className:t.classNames("p-0 pt-2 bg-white rounded shadow-sm",Me.widget),onClick:()=>o(m.id),children:[t.jsxRuntimeExports.jsx("div",{className:Me.widgetImg,style:{backgroundImage:m.img?`url(${m.img})`:void 0}}),t.jsxRuntimeExports.jsx("div",{className:Me.widgetTitleSpacer}),t.jsxRuntimeExports.jsx("div",{className:t.classNames(Me.widgetTitle,"rounded"),children:t.jsxRuntimeExports.jsx(t.Typography,{variant:"body",className:t.classNames(Me.title,"text-white text-truncate"),children:m.name})})]},m.id)}))})})},u.id)),c.some(u=>u.group===void 0)&&t.jsxRuntimeExports.jsx(zt,{defaultOpen:!0,title:a.otherWidgets,children:t.jsxRuntimeExports.jsx("div",{className:"p-1",children:t.jsxRuntimeExports.jsx("div",{className:t.classNames("row gx-3 gy-3",Me.widgetsRow),children:c.filter(u=>u.group===void 0).map(u=>t.jsxRuntimeExports.jsx("div",{className:"col col-4",children:t.jsxRuntimeExports.jsxs("div",{role:"button",className:t.classNames("p-0 pt-2 bg-white rounded shadow-sm",Me.widget),onClick:()=>o(u.id),children:[t.jsxRuntimeExports.jsx("div",{className:Me.widgetImg,style:{backgroundImage:u.img?`url(${u.img})`:void 0}}),t.jsxRuntimeExports.jsx("div",{className:Me.widgetTitleSpacer}),t.jsxRuntimeExports.jsx("div",{className:t.classNames(Me.widgetTitle,"rounded"),children:t.jsxRuntimeExports.jsx(t.Typography,{variant:"body",className:t.classNames(Me.title,"text-white text-truncate"),children:u.name})})]},u.id)}))})})})]})})]})},ic="_widget_19xgl_1",lc="_mobile_19xgl_7",Ts={widget:ic,mobile:lc},_s=({widgetGroups:e,availableWidgets:n,onAdd:r,texts:s})=>{const[o,a]=p.useState(!1),{isMobile:i}=t.useWindowSize();return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("div",{className:t.classNames("luminus-empty-widget",Ts.widget,{[Ts.mobile]:i}),children:t.jsxRuntimeExports.jsx(t.IconButton,{onClick:()=>a(!0),children:t.jsxRuntimeExports.jsx(t.MdOutlineAddCircleOutline,{})})}),t.jsxRuntimeExports.jsx(ac,{show:o,widgetGroups:e,widgets:n,handleClose:()=>a(!1),onWidgetPicked:l=>{a(!1),r(l)},texts:s})]})},cc="_dashboard_1gf59_1",uc="_widgets-grid_1gf59_1",dc="_widget-wrapper_1gf59_8",pc="_full-width_1gf59_13",mc="_widget-edit_1gf59_16",xc="_remove-icon_1gf59_19",fc="_full-width-icon_1gf59_26",gc="_widget-edit-overlay_1gf59_36",vc="_mobile_1gf59_45",ze={dashboard:cc,"widgets-grid":"_widgets-grid_1gf59_1",widgetsGrid:uc,"widget-wrapper":"_widget-wrapper_1gf59_8",widgetWrapper:dc,"full-width":"_full-width_1gf59_13",fullWidth:pc,"widget-edit":"_widget-edit_1gf59_16",widgetEdit:mc,"remove-icon":"_remove-icon_1gf59_19",removeIcon:xc,"full-width-icon":"_full-width-icon_1gf59_26",fullWidthIcon:fc,"widget-edit-overlay":"_widget-edit-overlay_1gf59_36",widgetEditOverlay:gc,mobile:vc},hc=(e,n="dashboardConfig")=>{const[r,s]=p.useState({widgets:[]});p.useEffect(()=>{const a=localStorage.getItem(n);a?s(JSON.parse(a)):e&&s(e)},[e,n]);const o=p.useCallback(a=>{s(a),localStorage.setItem(n,JSON.stringify(a))},[n]);return{dashboardConfig:r,onChangeDashboardConfig:o}},bc=({widgetGroups:e,availableWidgets:n,editMode:r,defaultDashboardConfig:s,dashboardConfigKey:o})=>{var f;const{texts:{homeDashboard:a}}=p.useContext(t.LuminusComponentsContext),{dashboardConfig:i,onChangeDashboardConfig:l}=hc(s,o),c=p.useCallback((g,b)=>{var h,v;g===((h=i.widgets)==null?void 0:h.length)?l({...i,widgets:[...i.widgets,{widgetId:b,fullWidth:!1}]}):l({...i,widgets:((v=i.widgets)==null?void 0:v.map((E,R)=>R===g?{widgetId:b,fullWidth:!1}:E))??[]})},[i,l]),d=p.useCallback(g=>{var b,h;((b=i.widgets[g])==null?void 0:b.widgetId)===-1?l({...i,widgets:((h=i.widgets)==null?void 0:h.filter((v,E)=>E!==g))??[]}):c(g,-1)},[i,l,c]),u=p.useCallback(g=>{var b;l({...i,widgets:((b=i.widgets)==null?void 0:b.map((h,v)=>v===g?{...h,fullWidth:!h.fullWidth}:h))??[]})},[i,l]),m=p.useCallback((g,b,h)=>g?t.jsxRuntimeExports.jsxs("div",{className:t.classNames(ze.widgetWrapper,{[ze.widgetEdit]:r&&g.id!==-1},{[ze.fullWidth]:h}),children:[r&&t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(t.IconButton,{color:"danger",onClick:()=>d(b),className:t.classNames(ze.removeIcon),children:t.jsxRuntimeExports.jsx(t.MdOutlineDelete,{})}),t.jsxRuntimeExports.jsx(t.IconButton,{color:h?"danger":"primary",onClick:()=>u(b),className:t.classNames(ze.fullWidthIcon),children:t.jsxRuntimeExports.jsx(t.MdOutlineExpand,{})})]}),g.id===-1?r&&t.jsxRuntimeExports.jsx("div",{className:ze.widgetWrapper,children:t.jsxRuntimeExports.jsx(_s,{widgetGroups:e,availableWidgets:n,onAdd:v=>c(b,v),texts:a})}):t.jsxRuntimeExports.jsx(Zl,{title:g.title,children:t.jsxRuntimeExports.jsx(g.WidgetElement,{title:g.title})}),g.id>-1&&r&&t.jsxRuntimeExports.jsx("div",{className:ze.widgetEditOverlay})]},b):t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{}),[r,e,c,d,u,n,a]),{isMobile:x}=t.useWindowSize();return t.jsxRuntimeExports.jsx("div",{className:t.classNames(ze.dashboard,{[ze.mobile]:x}),children:t.jsxRuntimeExports.jsxs("div",{className:t.classNames(ze.widgetsGrid),children:[(f=i.widgets)==null?void 0:f.map((g,b)=>m(n.find(h=>h.id===g.widgetId),b,g.fullWidth)),r&&t.jsxRuntimeExports.jsx(_s,{widgetGroups:e,availableWidgets:n,onAdd:g=>{var b;return c((b=i.widgets)==null?void 0:b.length,g)},texts:a})]})})},jc="_badge_193ci_1",Ec="_sm_193ci_6",yc="_md_193ci_10",Rc="_lg_193ci_14",Cc="_light_193ci_18",Un={badge:jc,sm:Ec,md:yc,lg:Rc,light:Cc},Nc=({children:e,color:n="primary",size:r="md",rounded:s,className:o,variant:a="filled",...i})=>{const l=p.useMemo(()=>a==="filled"?t.classNames(`bg-${n}`):a==="outline"?t.classNames(`text-${n} border-${n} border bg-white`):"",[n,a]);return t.jsxRuntimeExports.jsx("span",{className:t.classNames("luminus-badge badge",l,o,{"rounded-pill":s},{"text-dark":n==="light"},{[Un.light]:n==="light"},Un.badge,Un[r]),...i,children:e})},wc="_collapse-icon_1ahhn_1",Sc="_collapsed_1ahhn_6",ks={"collapse-icon":"_collapse-icon_1ahhn_1",collapseIcon:wc,collapsed:Sc},zt=({title:e,children:n,className:r,...s})=>{const o=s.controlled?!1:s.defaultOpen??!1,[a,i]=p.useState(o),l=s.controlled?s.isOpen:a;return p.useEffect(()=>{i(o)},[o]),t.jsxRuntimeExports.jsxs("div",{className:r??"",children:[t.jsxRuntimeExports.jsxs("div",{role:"button",className:"d-flex align-items-center justify-content-between pb-3 pt-2",onClick:()=>s.controlled?s.onToggle(!s.isOpen):i(!a),children:[t.jsxRuntimeExports.jsx(t.Typography,{variant:"h6",children:e}),t.jsxRuntimeExports.jsx(t.MdOutlineChevronRight,{className:t.classNames(ks.collapseIcon,{[ks.collapsed]:l})})]}),t.jsxRuntimeExports.jsx(ra,{in:l,children:t.jsxRuntimeExports.jsx("div",{children:n})}),t.jsxRuntimeExports.jsx("hr",{className:`my-0 ${l?"mt-3":""}`})]})},Dc=({color:e="primary",icon:n=t.jsxRuntimeExports.jsx(t.MdOutlineFileUpload,{size:12}),inputId:r="context-file-input",accept:s="*",onUpload:o,multiple:a,className:i,children:l,...c})=>{const d=u=>{u.target.files&&(o(u.target.files),u.target.value="")};return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs("label",{htmlFor:r,className:t.classNames(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i??""}`,t.classes.item),...c,children:[n,l]}),t.jsxRuntimeExports.jsx("input",{id:r,type:"file",accept:s,onChange:d,hidden:!0,multiple:a})]})},Ic="_card_19733_1",Tc="_header_19733_6",_c="_header-content_19733_13",kc="_title_19733_19",Oc="_collapse-icon_19733_22",Pc="_collapsed_19733_27",Ac="_content_19733_30",ot={card:Ic,header:Tc,"header-content":"_header-content_19733_13",headerContent:_c,title:kc,"collapse-icon":"_collapse-icon_19733_22",collapseIcon:Oc,collapsed:Pc,content:Ac},nt=({title:e,headerContent:n,children:r,className:s,headerClassName:o,contentClassName:a,dontRenderIfNoChildren:i,...l})=>{const c=l.collapsible?l.controlled?!1:l.defaultOpen??!1:!0,[d,u]=p.useState(c),m=l.collapsible?l.controlled?l.isOpen:d:!0;p.useEffect(()=>{u(c)},[c]);const x=p.useMemo(()=>!r||!r.toString()||r.toString().split(",").filter(f=>f&&f!=="false").length===0,[r]);return i&&x?null:t.jsxRuntimeExports.jsxs("div",{className:t.classNames("luminus-card rounded shadow-sm",ot.card,{[s??""]:s}),children:[t.jsxRuntimeExports.jsxs("div",{role:l.collapsible?"button":void 0,className:t.classNames("header",ot.header,{[o??""]:o}),onClick:()=>{l.collapsible&&(l.controlled?l.onToggle(!l.isOpen):u(!d))},children:[t.jsxRuntimeExports.jsxs("div",{className:t.classNames("header-content",ot.headerContent),children:[t.jsxRuntimeExports.jsx(t.Typography,{variant:"h6",className:t.classNames("text-primary",ot.title),children:e}),n??null]}),l.collapsible&&t.jsxRuntimeExports.jsx(t.MdOutlineChevronRight,{className:t.classNames(ot.collapseIcon,{[ot.collapsed]:m})})]}),t.jsxRuntimeExports.jsx(ra,{in:m,children:t.jsxRuntimeExports.jsx("div",{className:t.classNames("card-content border-top border-primary",ot.content,{[a??""]:a}),children:r})})]})};function qt(e){"@babel/helpers - typeof";return qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qt(e)}function Lc(e,n){if(qt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,n||"default");if(qt(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Mc(e){var n=Lc(e,"string");return qt(n)=="symbol"?n:n+""}function Bc(e,n,r){return(n=Mc(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Os(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,s)}return r}function Ps(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Os(Object(r),!0).forEach(function(s){Bc(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Os(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function _e(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 As=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Wn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ls={INIT:"@@redux/INIT"+Wn(),REPLACE:"@@redux/REPLACE"+Wn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Wn()}};function Fc(e){if(typeof e!="object"||e===null)return!1;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function Vc(e){if(e===void 0)return"undefined";if(e===null)return"null";var n=typeof e;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(e))return"array";if(Uc(e))return"date";if(Gc(e))return"error";var r=$c(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function $c(e){return typeof e.constructor=="function"?e.constructor.name:null}function Gc(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Uc(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ut(e){var n=typeof e;return process.env.NODE_ENV!=="production"&&(n=Vc(e)),n}function Sa(e,n,r){var s;if(typeof n=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?_e(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 n=="function"&&typeof r>"u"&&(r=n,n=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?_e(1):"Expected the enhancer to be a function. Instead, received: '"+ut(r)+"'");return r(Sa)(e,n)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?_e(2):"Expected the root reducer to be a function. Instead, received: '"+ut(e)+"'");var o=e,a=n,i=[],l=i,c=!1;function d(){l===i&&(l=i.slice())}function u(){if(c)throw new Error(process.env.NODE_ENV==="production"?_e(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 a}function m(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?_e(4):"Expected the listener to be a function. Instead, received: '"+ut(b)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?_e(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 d(),l.push(b),function(){if(h){if(c)throw new Error(process.env.NODE_ENV==="production"?_e(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,d();var E=l.indexOf(b);l.splice(E,1),i=null}}}function x(b){if(!Fc(b))throw new Error(process.env.NODE_ENV==="production"?_e(7):"Actions must be plain objects. Instead, the actual type was: '"+ut(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"?_e(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"?_e(9):"Reducers may not dispatch actions.");try{c=!0,a=o(a,b)}finally{c=!1}for(var h=i=l,v=0;v<h.length;v++){var E=h[v];E()}return b}function f(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?_e(10):"Expected the nextReducer to be a function. Instead, received: '"+ut(b));o=b,x({type:Ls.REPLACE})}function g(){var b,h=m;return b={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?_e(11):"Expected the observer to be an object. Instead, received: '"+ut(E)+"'");function R(){E.next&&E.next(u())}R();var y=h(R);return{unsubscribe:y}}},b[As]=function(){return this},b}return x({type:Ls.INIT}),s={dispatch:x,subscribe:m,getState:u,replaceReducer:f},s[As]=g,s}function Ms(e,n){return function(){return n(e.apply(this,arguments))}}function Bs(e,n){if(typeof e=="function")return Ms(e,n);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?_e(16):"bindActionCreators expected an object or a function, but instead received: '"+ut(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var s in e){var o=e[s];typeof o=="function"&&(r[s]=Ms(o,n))}return r}function Da(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.length===0?function(s){return s}:n.length===1?n[0]:n.reduce(function(s,o){return function(){return s(o.apply(void 0,arguments))}})}function Wc(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(s){return function(){var o=s.apply(void 0,arguments),a=function(){throw new Error(process.env.NODE_ENV==="production"?_e(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:o.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=n.map(function(c){return c(i)});return a=Da.apply(void 0,l)(o.dispatch),Ps(Ps({},o),{},{dispatch:a})}}}var Or=p.createContext(null);process.env.NODE_ENV!=="production"&&(Or.displayName="ReactRedux");function Hc(e){e()}var Ia=Hc,zc=function(n){return Ia=n},qc=function(){return Ia};function Yc(){var e=qc(),n=null,r=null;return{clear:function(){n=null,r=null},notify:function(){e(function(){for(var o=n;o;)o.callback(),o=o.next})},get:function(){for(var o=[],a=n;a;)o.push(a),a=a.next;return o},subscribe:function(o){var a=!0,i=r={callback:o,next:null,prev:r};return i.prev?i.prev.next=i:n=i,function(){!a||n===null||(a=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:n=i.next)}}}}var Fs={notify:function(){},get:function(){return[]}};function Ta(e,n){var r,s=Fs;function o(m){return c(),s.subscribe(m)}function a(){s.notify()}function i(){u.onStateChange&&u.onStateChange()}function l(){return!!r}function c(){r||(r=n?n.addNestedSub(i):e.subscribe(i),s=Yc())}function d(){r&&(r(),r=void 0,s.clear(),s=Fs)}var u={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:i,isSubscribed:l,trySubscribe:c,tryUnsubscribe:d,getListeners:function(){return s}};return u}var _a=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?p.useLayoutEffect:p.useEffect;function ka(e){var n=e.store,r=e.context,s=e.children,o=p.useMemo(function(){var l=Ta(n);return{store:n,subscription:l}},[n]),a=p.useMemo(function(){return n.getState()},[n]);_a(function(){var l=o.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==n.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[o,a]);var i=r||Or;return p.createElement(i.Provider,{value:o},s)}process.env.NODE_ENV!=="production"&&(ka.propTypes={store:t.Oe.shape({subscribe:t.Oe.func.isRequired,dispatch:t.Oe.func.isRequired,getState:t.Oe.func.isRequired}),context:t.Oe.object,children:t.Oe.any});var Pr=t.requireReactIs(),Kc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Oa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ar={};Ar[Pr.ForwardRef]=Xc;Ar[Pr.Memo]=Oa;function Vs(e){return Pr.isMemo(e)?Oa:Ar[e.$$typeof]||Kc}var Jc=Object.defineProperty,Zc=Object.getOwnPropertyNames,$s=Object.getOwnPropertySymbols,eu=Object.getOwnPropertyDescriptor,tu=Object.getPrototypeOf,Gs=Object.prototype;function Pa(e,n,r){if(typeof n!="string"){if(Gs){var s=tu(n);s&&s!==Gs&&Pa(e,s,r)}var o=Zc(n);$s&&(o=o.concat($s(n)));for(var a=Vs(e),i=Vs(n),l=0;l<o.length;++l){var c=o[l];if(!Qc[c]&&!(r&&r[c])&&!(i&&i[c])&&!(a&&a[c])){var d=eu(n,c);try{Jc(e,c,d)}catch{}}}}return e}var nu=Pa;const Us=t.getDefaultExportFromCjs(nu);var hr={exports:{}},ue={};/** @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 a, c as E, t as Ae, a as Ar, s as Fi, g as Vi, m as zc, d as br, b as qc, e as Yc, f as Et, h as Kc, i as Xc, k as Qc, l as Jc, n as Zc, o as ed, p as td, T as Es, q as _s, r as $i, E as nd, u as Os, v as Ga, w as Ps, x as rd, y as Re, z as Ua, F as Ts, A as ad, B as id, C as od, D as sd, M as ld, G as cd, H as dd, I as ud, J as pd, K as fd, L as Ca, N as md, O as gd, P as Q, Q as mt, R as vd, S as hd, U as jt, V as ee, W as Ha, X as he, Y as Wa, Z as dt, _ as qe, $ as de, a0 as it, a1 as M, a2 as Rr, a3 as bd, a4 as xd, a5 as yd, a6 as As, a7 as wd, a8 as jd, a9 as ht, aa as Nd, ab as Dd, ac as Nr, ad as ie, ae as Rs, af as Sd, ag as Cd, ah as Id, ai as ks, aj as Bs, ak as za, al as Dr, am as Bt, an as Ed, ao as ze, ap as _d, aq as Od, ar as Pd, as as Lt, at as Td, au as Ls, av as Ad, aw as Ke, ax as xn, ay as Rd, az as rt, aA as qa, aB as Ya, aC as Ms, aD as Ka, aE as Fs, aF as Vs, aG as Te, aH as Pt, aI as kd, aJ as Bd, aK as ct, aL as Mt, aM as Ft, aN as Ld, aO as Ye, aP as pt, aQ as Md, aR as Dt, aS as Fd, aT as Vd, aU as En, aV as ft, aW as $s, aX as bt, aY as Zt, aZ as $d, a_ as Xr, a$ as en, b0 as Gs, b1 as Gd, b2 as Ud, b3 as Fn, b4 as kr, b5 as fn, b6 as Sr, b7 as Xa, b8 as Nt, b9 as Hd, ba as Us, bb as or, bc as St, bd as tn, be as mn, bf as Wd, bg as Br, bh as Hs, bi as cn, bj as Lr, bk as Qa, bl as zd, bm as qd, bn as Yd, bo as Kd, bp as Xd, bq as Qd, br as Ws, bs as Jd, bt as Zd, bu as eu, bv as tu, bw as nu, bx as ru } from "./ShortcutLinksContext-
|
|
2
|
-
import { bA as nD, by as rD, bz as aD } from "./ShortcutLinksContext-
|
|
1
|
+
import { j as a, c as E, t as Ae, a as Ar, s as Fi, g as Vi, m as zc, d as br, b as qc, e as Yc, f as Et, h as Kc, i as Xc, k as Qc, l as Jc, n as Zc, o as ed, p as td, T as Es, q as _s, r as $i, E as nd, u as Os, v as Ga, w as Ps, x as rd, y as Re, z as Ua, F as Ts, A as ad, B as id, C as od, D as sd, M as ld, G as cd, H as dd, I as ud, J as pd, K as fd, L as Ca, N as md, O as gd, P as Q, Q as mt, R as vd, S as hd, U as jt, V as ee, W as Ha, X as he, Y as Wa, Z as dt, _ as qe, $ as de, a0 as it, a1 as M, a2 as Rr, a3 as bd, a4 as xd, a5 as yd, a6 as As, a7 as wd, a8 as jd, a9 as ht, aa as Nd, ab as Dd, ac as Nr, ad as ie, ae as Rs, af as Sd, ag as Cd, ah as Id, ai as ks, aj as Bs, ak as za, al as Dr, am as Bt, an as Ed, ao as ze, ap as _d, aq as Od, ar as Pd, as as Lt, at as Td, au as Ls, av as Ad, aw as Ke, ax as xn, ay as Rd, az as rt, aA as qa, aB as Ya, aC as Ms, aD as Ka, aE as Fs, aF as Vs, aG as Te, aH as Pt, aI as kd, aJ as Bd, aK as ct, aL as Mt, aM as Ft, aN as Ld, aO as Ye, aP as pt, aQ as Md, aR as Dt, aS as Fd, aT as Vd, aU as En, aV as ft, aW as $s, aX as bt, aY as Zt, aZ as $d, a_ as Xr, a$ as en, b0 as Gs, b1 as Gd, b2 as Ud, b3 as Fn, b4 as kr, b5 as fn, b6 as Sr, b7 as Xa, b8 as Nt, b9 as Hd, ba as Us, bb as or, bc as St, bd as tn, be as mn, bf as Wd, bg as Br, bh as Hs, bi as cn, bj as Lr, bk as Qa, bl as zd, bm as qd, bn as Yd, bo as Kd, bp as Xd, bq as Qd, br as Ws, bs as Jd, bt as Zd, bu as eu, bv as tu, bw as nu, bx as ru } from "./ShortcutLinksContext-DF8__Rbl.js";
|
|
2
|
+
import { bA as nD, by as rD, bz as aD } from "./ShortcutLinksContext-DF8__Rbl.js";
|
|
3
3
|
import * as Ee from "react";
|
|
4
4
|
import ce, { useCallback as P, useMemo as k, useState as B, useRef as re, useEffect as U, useContext as V, useId as au, Component as iu, isValidElement as Gi, Suspense as ou, useLayoutEffect as Ja, useReducer as su, Fragment as lu } from "react";
|
|
5
|
-
import { c as yt, a as cu, b as du, L as Ia, F as uu } from "./FormDisabledProvider-
|
|
5
|
+
import { c as yt, a as cu, b as du, L as Ia, F as uu } from "./FormDisabledProvider-DruCyt_C.js";
|
|
6
6
|
import { InteractionType as pu } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as fu } from "@azure/msal-react";
|
|
8
8
|
import { useNavigate as Mr, Navigate as sr, Link as Ue, generatePath as gn, useParams as zs, useSearchParams as mu, useLocation as gu } from "react-router-dom";
|
|
@@ -10,7 +10,7 @@ import Vn, { unstable_batchedUpdates as vu } from "react-dom";
|
|
|
10
10
|
import { useFormContext as Ct, Controller as Za, useForm as Fr, FormProvider as Vr } from "react-hook-form";
|
|
11
11
|
import { Pivot as hu } from "react-flexmonster";
|
|
12
12
|
import { u as bu, a as xu, b as Xt, c as yu } from "./useRenderDraggableInPortal-D0OLp7Qb.js";
|
|
13
|
-
import { u as Be, a as $n } from "./useLocalStorageState-
|
|
13
|
+
import { u as Be, a as $n } from "./useLocalStorageState-bgBQaJ6D.js";
|
|
14
14
|
import { l as kn, g as Ea, h as xr, d as wu, r as ju } from "./localStorageUtils-8ScvouMK.js";
|
|
15
15
|
const Yj = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
16
16
|
const r = P(async () => {
|