react-luminus-components 1.2.32 → 1.2.34

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/main.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./UserAvatarToggle-DEb7Klk7.cjs"),c=require("react"),K=require("./EventType-DO8vvA6X.cjs"),Fe=require("./textUtils-CHVVh2oi.cjs"),L=require("./Typography-Plu1Wa0_.cjs"),je=require("./useKeyPress-BRCIx392.cjs"),hn=require("./SimpleTooltip-CjMfPKvQ.cjs"),V=require("react-hook-form");function xn(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const M=xn(c),gn=({fileLoader:n,fileName:e,children:t})=>{const r=c.useCallback(async()=>{var l;const o=await n();if(!o)return;const a=window.URL.createObjectURL(new Blob([o])),i=document.createElement("a");i.href=a,i.setAttribute("download",e),document.body.appendChild(i),i.click(),(l=i.parentNode)==null||l.removeChild(i)},[n,e]);return s.jsxRuntimeExports.jsx("div",{role:"button",onClick:r,children:t})};function jt(n,e){const t=s.toDate(n);if(isNaN(e))return s.constructFrom(n,NaN);if(!e)return t;const r=t.getDate(),o=s.constructFrom(n,t.getTime());o.setMonth(t.getMonth()+e+1,0);const a=o.getDate();return r>=a?o:(t.setFullYear(o.getFullYear(),o.getMonth(),r),t)}let jn={};function Ee(){return jn}function pe(n,e){var l,u,d,m;const t=Ee(),r=(e==null?void 0:e.weekStartsOn)??((u=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((m=(d=t.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??0,o=s.toDate(n),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function we(n){return pe(n,{weekStartsOn:1})}function wt(n){const e=s.toDate(n),t=e.getFullYear(),r=s.constructFrom(n,0);r.setFullYear(t+1,0,4),r.setHours(0,0,0,0);const o=we(r),a=s.constructFrom(n,0);a.setFullYear(t,0,4),a.setHours(0,0,0,0);const i=we(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=i.getTime()?t:t-1}function Qe(n){const e=s.toDate(n);return e.setHours(0,0,0,0),e}function Xe(n){const e=s.toDate(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function wn(n,e){const t=Qe(n),r=Qe(e),o=+t-Xe(t),a=+r-Xe(r);return Math.round((o-a)/Fe.millisecondsInDay)}function bn(n){const e=wt(n),t=s.constructFrom(n,0);return t.setFullYear(e,0,4),t.setHours(0,0,0,0),we(t)}function yn(n,e){return jt(n,e*12)}function vn(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function En(n){if(!vn(n)&&typeof n!="number")return!1;const e=s.toDate(n);return!isNaN(Number(e))}function _n(n){const e=s.toDate(n),t=s.constructFrom(n,0);return t.setFullYear(e.getFullYear(),0,1),t.setHours(0,0,0,0),t}const kn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Rn=(n,e,t)=>{let r;const o=kn[n];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Ie(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const Cn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Nn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Tn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},In={date:Ie({formats:Cn,defaultWidth:"full"}),time:Ie({formats:Nn,defaultWidth:"full"}),dateTime:Ie({formats:Tn,defaultWidth:"full"})},Sn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$n=(n,e,t,r)=>Sn[n];function ce(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let o;if(r==="formatting"&&n.formattingValues){const i=n.defaultFormattingWidth||n.defaultWidth,l=t!=null&&t.width?String(t.width):i;o=n.formattingValues[l]||n.formattingValues[i]}else{const i=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;o=n.values[l]||n.values[i]}const a=n.argumentCallback?n.argumentCallback(e):e;return o[a]}}const Mn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Pn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},On={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Dn={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},An={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Fn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Wn=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Ln={ordinalNumber:Wn,era:ce({values:Mn,defaultWidth:"wide"}),quarter:ce({values:Pn,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ce({values:On,defaultWidth:"wide"}),day:ce({values:Dn,defaultWidth:"wide"}),dayPeriod:ce({values:An,defaultWidth:"wide",formattingValues:Fn,defaultFormattingWidth:"wide"})};function ue(n){return(e,t={})=>{const r=t.width,o=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],a=e.match(o);if(!a)return null;const i=a[0],l=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],u=Array.isArray(l)?Bn(l,p=>p.test(i)):qn(l,p=>p.test(i));let d;d=n.valueCallback?n.valueCallback(u):u,d=t.valueCallback?t.valueCallback(d):d;const m=e.slice(i.length);return{value:d,rest:m}}}function qn(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function Bn(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function Yn(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const o=r[0],a=e.match(n.parsePattern);if(!a)return null;let i=n.valueCallback?n.valueCallback(a[0]):a[0];i=t.valueCallback?t.valueCallback(i):i;const l=e.slice(o.length);return{value:i,rest:l}}}const Hn=/^(\d+)(th|st|nd|rd)?/i,Gn=/\d+/i,Un={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Kn={any:[/^b/i,/^(a|c)/i]},Vn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zn={any:[/1/i,/2/i,/3/i,/4/i]},Qn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Xn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Jn={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Zn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},es={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ts={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ns={ordinalNumber:Yn({matchPattern:Hn,parsePattern:Gn,valueCallback:n=>parseInt(n,10)}),era:ue({matchPatterns:Un,defaultMatchWidth:"wide",parsePatterns:Kn,defaultParseWidth:"any"}),quarter:ue({matchPatterns:Vn,defaultMatchWidth:"wide",parsePatterns:zn,defaultParseWidth:"any",valueCallback:n=>n+1}),month:ue({matchPatterns:Qn,defaultMatchWidth:"wide",parsePatterns:Xn,defaultParseWidth:"any"}),day:ue({matchPatterns:Jn,defaultMatchWidth:"wide",parsePatterns:Zn,defaultParseWidth:"any"}),dayPeriod:ue({matchPatterns:es,defaultMatchWidth:"any",parsePatterns:ts,defaultParseWidth:"any"})},ss={code:"en-US",formatDistance:Rn,formatLong:In,formatRelative:$n,localize:Ln,match:ns,options:{weekStartsOn:0,firstWeekContainsDate:1}};function rs(n){const e=s.toDate(n);return wn(e,_n(e))+1}function os(n){const e=s.toDate(n),t=+we(e)-+bn(e);return Math.round(t/Fe.millisecondsInWeek)+1}function bt(n,e){var m,p,f,h;const t=s.toDate(n),r=t.getFullYear(),o=Ee(),a=(e==null?void 0:e.firstWeekContainsDate)??((p=(m=e==null?void 0:e.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(f=o.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=s.constructFrom(n,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=pe(i,e),u=s.constructFrom(n,0);u.setFullYear(r,0,a),u.setHours(0,0,0,0);const d=pe(u,e);return t.getTime()>=l.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function as(n,e){var l,u,d,m;const t=Ee(),r=(e==null?void 0:e.firstWeekContainsDate)??((u=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??t.firstWeekContainsDate??((m=(d=t.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??1,o=bt(n,e),a=s.constructFrom(n,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),pe(a,e)}function is(n,e){const t=s.toDate(n),r=+pe(t,e)-+as(t,e);return Math.round(r/Fe.millisecondsInWeek)+1}function P(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const J={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return P(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):P(t+1,2)},d(n,e){return P(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return P(n.getHours()%12||12,e.length)},H(n,e){return P(n.getHours(),e.length)},m(n,e){return P(n.getMinutes(),e.length)},s(n,e){return P(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),o=Math.trunc(r*Math.pow(10,t-3));return P(o,e.length)}},se={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Je={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return J.y(n,e)},Y:function(n,e,t,r){const o=bt(n,r),a=o>0?o:1-o;if(e==="YY"){const i=a%100;return P(i,2)}return e==="Yo"?t.ordinalNumber(a,{unit:"year"}):P(a,e.length)},R:function(n,e){const t=wt(n);return P(t,e.length)},u:function(n,e){const t=n.getFullYear();return P(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return P(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return P(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return J.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return P(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const o=is(n,r);return e==="wo"?t.ordinalNumber(o,{unit:"week"}):P(o,e.length)},I:function(n,e,t){const r=os(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):P(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):J.d(n,e)},D:function(n,e,t){const r=rs(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):P(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const o=n.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return P(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const o=n.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return P(a,e.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return P(o,e.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const o=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let o;switch(r===12?o=se.noon:r===0?o=se.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let o;switch(r>=17?o=se.evening:r>=12?o=se.afternoon:r>=4?o=se.morning:o=se.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return J.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):J.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):J.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):J.s(n,e)},S:function(n,e){return J.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return et(r);case"XXXX":case"XX":return ne(r);case"XXXXX":case"XXX":default:return ne(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return et(r);case"xxxx":case"xx":return ne(r);case"xxxxx":case"xxx":default:return ne(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Ze(r,":");case"OOOO":default:return"GMT"+ne(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Ze(r,":");case"zzzz":default:return"GMT"+ne(r,":")}},t:function(n,e,t){const r=Math.trunc(n.getTime()/1e3);return P(r,e.length)},T:function(n,e,t){const r=n.getTime();return P(r,e.length)}};function Ze(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),o=Math.trunc(r/60),a=r%60;return a===0?t+String(o):t+String(o)+e+P(a,2)}function et(n,e){return n%60===0?(n>0?"-":"+")+P(Math.abs(n)/60,2):ne(n,e)}function ne(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),o=P(Math.trunc(r/60),2),a=P(r%60,2);return t+o+e+a}const tt=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},yt=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},cs=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],o=t[2];if(!o)return tt(n,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",tt(r,e)).replace("{{time}}",yt(o,e))},us={p:yt,P:cs},ls=/^D+$/,ds=/^Y+$/,ms=["D","DD","YY","YYYY"];function ps(n){return ls.test(n)}function fs(n){return ds.test(n)}function hs(n,e,t){const r=xs(n,e,t);if(console.warn(r),ms.includes(n))throw new RangeError(r)}function xs(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const gs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,js=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ws=/^'([^]*?)'?$/,bs=/''/g,ys=/[a-zA-Z]/;function vt(n,e,t){var m,p,f,h,j,g,x,b;const r=Ee(),o=(t==null?void 0:t.locale)??r.locale??ss,a=(t==null?void 0:t.firstWeekContainsDate)??((p=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=(t==null?void 0:t.weekStartsOn)??((g=(j=t==null?void 0:t.locale)==null?void 0:j.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((b=(x=r.locale)==null?void 0:x.options)==null?void 0:b.weekStartsOn)??0,l=s.toDate(n);if(!En(l))throw new RangeError("Invalid time value");let u=e.match(js).map(_=>{const y=_[0];if(y==="p"||y==="P"){const C=us[y];return C(_,o.formatLong)}return _}).join("").match(gs).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const y=_[0];if(y==="'")return{isToken:!1,value:vs(_)};if(Je[y])return{isToken:!0,value:_};if(y.match(ys))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:_}});o.localize.preprocessor&&(u=o.localize.preprocessor(l,u));const d={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return u.map(_=>{if(!_.isToken)return _.value;const y=_.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&fs(y)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&ps(y))&&hs(y,e,String(n));const C=Je[y[0]];return C(l,y,o.localize,d)}).join("")}function vs(n){const e=n.match(ws);return e?e[1].replace(bs,"'"):n}var Es=function(n,e,t,r,o,a,i,l){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error("invariant requires an error message argument");if(!n){var u;if(e===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[t,r,o,a,i,l],m=0;u=new Error(e.replace(/%s/g,function(){return d[m++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}},_s=Es;const nt=s.getDefaultExportFromCjs(_s);function le(...n){return n.filter(e=>e!=null).reduce((e,t)=>{if(typeof t!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return e===null?t:function(...o){e.apply(this,o),t.apply(this,o)}},null)}const ks={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Rs(n,e){const t=`offset${n[0].toUpperCase()}${n.slice(1)}`,r=e[t],o=ks[n];return r+parseInt(s.style(e,o[0]),10)+parseInt(s.style(e,o[1]),10)}const Cs={[s.EXITED]:"collapse",[s.EXITING]:"collapsing",[s.ENTERING]:"collapsing",[s.ENTERED]:"collapse show"},Et=c.forwardRef(({onEnter:n,onEntering:e,onEntered:t,onExit:r,onExiting:o,className:a,children:i,dimension:l="height",in:u=!1,timeout:d=300,mountOnEnter:m=!1,unmountOnExit:p=!1,appear:f=!1,getDimensionValue:h=Rs,...j},g)=>{const x=typeof l=="function"?l():l,b=c.useMemo(()=>le(E=>{E.style[x]="0"},n),[x,n]),_=c.useMemo(()=>le(E=>{const v=`scroll${x[0].toUpperCase()}${x.slice(1)}`;E.style[x]=`${E[v]}px`},e),[x,e]),y=c.useMemo(()=>le(E=>{E.style[x]=null},t),[x,t]),C=c.useMemo(()=>le(E=>{E.style[x]=`${h(x,E)}px`,s.triggerBrowserReflow(E)},r),[r,h,x]),w=c.useMemo(()=>le(E=>{E.style[x]=null},o),[x,o]);return s.jsxRuntimeExports.jsx(s.TransitionWrapper,{ref:g,addEndListener:s.transitionEndListener,...j,"aria-expanded":j.role?u:null,onEnter:b,onEntering:_,onEntered:y,onExit:C,onExiting:w,childRef:i.ref,in:u,timeout:d,mountOnEnter:m,unmountOnExit:p,appear:f,children:(E,v)=>c.cloneElement(i,{...v,className:s.classNames(a,i.props.className,Cs[E],x==="width"&&"collapse-horizontal")})})});function Ns(n,e,t,r=!1){const o=s.useEventCallback(t);c.useEffect(()=>{const a=typeof n=="function"?n():n;return a.addEventListener(e,o,r),()=>a.removeEventListener(e,o,r)},[n])}const Ts=["as","disabled"];function Is(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,a;for(a=0;a<r.length;a++)o=r[a],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}function Ss(n){return!n||n.trim()==="#"}function We({tagName:n,disabled:e,href:t,target:r,rel:o,role:a,onClick:i,tabIndex:l=0,type:u}){n||(t!=null||r!=null||o!=null?n="a":n="button");const d={tagName:n};if(n==="button")return[{type:u||"button",disabled:e},d];const m=f=>{if((e||n==="a"&&Ss(t))&&f.preventDefault(),e){f.stopPropagation();return}i==null||i(f)},p=f=>{f.key===" "&&(f.preventDefault(),m(f))};return n==="a"&&(t||(t="#"),e&&(t=void 0)),[{role:a??"button",disabled:void 0,tabIndex:e?void 0:l,href:t,target:n==="a"?r:void 0,"aria-disabled":e||void 0,rel:n==="a"?o:void 0,onClick:m,onKeyDown:p},d]}const _t=M.forwardRef((n,e)=>{let{as:t,disabled:r}=n,o=Is(n,Ts);const[a,{tagName:i}]=We(Object.assign({tagName:t,disabled:r},o));return s.jsxRuntimeExports.jsx(i,Object.assign({},o,a,{ref:e}))});_t.displayName="Button";const $s=["onKeyDown"];function Ms(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,a;for(a=0;a<r.length;a++)o=r[a],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}function Ps(n){return!n||n.trim()==="#"}const kt=M.forwardRef((n,e)=>{let{onKeyDown:t}=n,r=Ms(n,$s);const[o]=We(Object.assign({tagName:"a"},r)),a=s.useEventCallback(i=>{o.onKeyDown(i),t==null||t(i)});return Ps(r.href)||r.role==="button"?s.jsxRuntimeExports.jsx("a",Object.assign({ref:e},r,o,{onKeyDown:a})):s.jsxRuntimeExports.jsx("a",Object.assign({ref:e},r,{onKeyDown:t}))});kt.displayName="Anchor";const Rt=M.forwardRef(({as:n,bsPrefix:e,variant:t="primary",size:r,active:o=!1,disabled:a=!1,className:i,...l},u)=>{const d=s.useBootstrapPrefix(e,"btn"),[m,{tagName:p}]=We({tagName:n,disabled:a,...l}),f=p;return s.jsxRuntimeExports.jsx(f,{...m,...l,ref:u,disabled:a,className:s.classNames(i,d,o&&"active",t&&`${d}-${t}`,r&&`${d}-${r}`,l.href&&a&&"disabled")})});Rt.displayName="Button";function Os(n,e){return M.Children.toArray(n).some(t=>M.isValidElement(t)&&t.type===e)}function Ds({as:n,bsPrefix:e,className:t,...r}){e=s.useBootstrapPrefix(e,"col");const o=s.useBootstrapBreakpoints(),a=s.useBootstrapMinBreakpoint(),i=[],l=[];return o.forEach(u=>{const d=r[u];delete r[u];let m,p,f;typeof d=="object"&&d!=null?{span:m,offset:p,order:f}=d:m=d;const h=u!==a?`-${u}`:"";m&&i.push(m===!0?`${e}${h}`:`${e}${h}-${m}`),f!=null&&l.push(`order${h}-${f}`),p!=null&&l.push(`offset${h}-${p}`)}),[{...r,className:s.classNames(t,...i,...l)},{as:n,bsPrefix:e,spans:i}]}const Ct=M.forwardRef((n,e)=>{const[{className:t,...r},{as:o="div",bsPrefix:a,spans:i}]=Ds(n);return s.jsxRuntimeExports.jsx(o,{...r,ref:e,className:s.classNames(t,!i.length&&a)})});Ct.displayName="Col";function As(n,e,t){const r=c.useRef(n!==void 0),[o,a]=c.useState(e),i=n!==void 0,l=r.current;return r.current=i,!i&&l&&o!==e&&a(e),[i?n:o,c.useCallback((...u)=>{const[d,...m]=u;let p=t==null?void 0:t(d,...m);return a(d),p},[t])]}function Fs(){const[,n]=c.useReducer(e=>!e,!1);return n}const _e=M.createContext(null),Ws=["children","usePopper"];function Ls(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,a;for(a=0;a<r.length;a++)o=r[a],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}const qs=()=>{};function Nt(n={}){const e=c.useContext(_e),[t,r]=s.useCallbackRef(),o=c.useRef(!1),{flip:a,offset:i,rootCloseEvent:l,fixed:u=!1,placement:d,popperConfig:m={},enableEventListeners:p=!0,usePopper:f=!!e}=n,h=(e==null?void 0:e.show)==null?!!n.show:e.show;h&&!o.current&&(o.current=!0);const j=E=>{e==null||e.toggle(!1,E)},{placement:g,setMenu:x,menuElement:b,toggleElement:_}=e||{},y=s.usePopper(_,b,s.mergeOptionsWithPopperConfig({placement:d||g||"bottom-start",enabled:f,enableEvents:p??h,offset:i,flip:a,fixed:u,arrowElement:t,popperConfig:m})),C=Object.assign({ref:x||qs,"aria-labelledby":_==null?void 0:_.id},y.attributes.popper,{style:y.styles.popper}),w={show:h,placement:g,hasShown:o.current,toggle:e==null?void 0:e.toggle,popper:f?y:null,arrowProps:f?Object.assign({ref:r},y.attributes.arrow,{style:y.styles.arrow}):{}};return s.useClickOutside(b,j,{clickTrigger:l,disabled:!h}),[C,w]}function Tt(n){let{children:e,usePopper:t=!0}=n,r=Ls(n,Ws);const[o,a]=Nt(Object.assign({},r,{usePopper:t}));return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:e(o,a)})}Tt.displayName="DropdownMenu";const be={prefix:String(Math.round(Math.random()*1e10)),current:0},It=c.createContext(be),Bs=c.createContext(!1);let Ys=!!(typeof window<"u"&&window.document&&window.document.createElement),Se=new WeakMap;function Hs(n=!1){let e=c.useContext(It),t=c.useRef(null);if(t.current===null&&!n){var r,o;let a=(o=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let i=Se.get(a);i==null?Se.set(a,{id:e.current,state:a.memoizedState}):a.memoizedState!==i.state&&(e.current=i.id,Se.delete(a))}t.current=++e.current}return t.current}function Gs(n){let e=c.useContext(It);e===be&&!Ys&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let t=Hs(!!n),r=e===be&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return n||`${r}-${t}`}function Us(n){let e=c.useId(),[t]=c.useState(Xs()),r=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${be.prefix}`;return n||`${r}-${e}`}const Ks=typeof c.useId=="function"?Us:Gs;function Vs(){return!1}function zs(){return!0}function Qs(n){return()=>{}}function Xs(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(Qs,Vs,zs):c.useContext(Bs)}const St=n=>{var e;return((e=n.getAttribute("role"))==null?void 0:e.toLowerCase())==="menu"},st=()=>{};function $t(){const n=Ks(),{show:e=!1,toggle:t=st,setToggle:r,menuElement:o}=c.useContext(_e)||{},a=c.useCallback(l=>{t(!e,l)},[e,t]),i={id:n,ref:r||st,onClick:a,"aria-expanded":!!e};return o&&St(o)&&(i["aria-haspopup"]=!0),[i,{show:e,toggle:t}]}function Mt({children:n}){const[e,t]=$t();return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:n(e,t)})}Mt.displayName="DropdownToggle";const Pe=M.createContext(null),rt=(n,e=null)=>n!=null?String(n):e||null,Pt=M.createContext(null);Pt.displayName="NavContext";const Js=["eventKey","disabled","onClick","active","as"];function Zs(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,a;for(a=0;a<r.length;a++)o=r[a],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}function Ot({key:n,href:e,active:t,disabled:r,onClick:o}){const a=c.useContext(Pe),i=c.useContext(Pt),{activeKey:l}=i||{},u=rt(n,e),d=t==null&&n!=null?rt(l)===u:t;return[{onClick:s.useEventCallback(p=>{r||(o==null||o(p),a&&!p.isPropagationStopped()&&a(u,p))}),"aria-disabled":r||void 0,"aria-selected":d,[K.dataAttr("dropdown-item")]:""},{isActive:d}]}const Dt=M.forwardRef((n,e)=>{let{eventKey:t,disabled:r,onClick:o,active:a,as:i=_t}=n,l=Zs(n,Js);const[u]=Ot({key:t,href:l.href,disabled:r,onClick:o,active:a});return s.jsxRuntimeExports.jsx(i,Object.assign({},l,{ref:e},u))});Dt.displayName="DropdownItem";function ot(){const n=Fs(),e=c.useRef(null),t=c.useCallback(r=>{e.current=r,n()},[n]);return[e,t]}function he({defaultShow:n,show:e,onSelect:t,onToggle:r,itemSelector:o=`* [${K.dataAttr("dropdown-item")}]`,focusFirstItemOnShow:a,placement:i="bottom-start",children:l}){const u=s.useWindow(),[d,m]=As(e,n,r),[p,f]=ot(),h=p.current,[j,g]=ot(),x=j.current,b=K.usePrevious(d),_=c.useRef(null),y=c.useRef(!1),C=c.useContext(Pe),w=c.useCallback((k,S,D=S==null?void 0:S.type)=>{m(k,{originalEvent:S,source:D})},[m]),E=s.useEventCallback((k,S)=>{t==null||t(k,S),w(!1,S,"select"),S.isPropagationStopped()||C==null||C(k,S)}),v=c.useMemo(()=>({toggle:w,placement:i,show:d,menuElement:h,toggleElement:x,setMenu:f,setToggle:g}),[w,i,d,h,x,f,g]);h&&b&&!d&&(y.current=h.contains(h.ownerDocument.activeElement));const R=s.useEventCallback(()=>{x&&x.focus&&x.focus()}),O=s.useEventCallback(()=>{const k=_.current;let S=a;if(S==null&&(S=p.current&&St(p.current)?"keyboard":!1),S===!1||S==="keyboard"&&!/^key.+$/.test(k))return;const D=K.qsa(p.current,o)[0];D&&D.focus&&D.focus()});c.useEffect(()=>{d?O():y.current&&(y.current=!1,R())},[d,y,R,O]),c.useEffect(()=>{_.current=null});const N=(k,S)=>{if(!p.current)return null;const D=K.qsa(p.current,o);let A=D.indexOf(k)+S;return A=Math.max(0,Math.min(A,D.length)),D[A]};return Ns(c.useCallback(()=>u.document,[u]),"keydown",k=>{var S,D;const{key:A}=k,q=k.target,W=(S=p.current)==null?void 0:S.contains(q),U=(D=j.current)==null?void 0:D.contains(q);if(/input|textarea/i.test(q.tagName)&&(A===" "||A!=="Escape"&&W||A==="Escape"&&q.type==="search")||!W&&!U||A==="Tab"&&(!p.current||!d))return;_.current=k.type;const T={originalEvent:k,source:k.type};switch(A){case"ArrowUp":{const I=N(q,-1);I&&I.focus&&I.focus(),k.preventDefault();return}case"ArrowDown":if(k.preventDefault(),!d)m(!0,T);else{const I=N(q,1);I&&I.focus&&I.focus()}return;case"Tab":s.addEventListener(q.ownerDocument,"keyup",I=>{var H;(I.key==="Tab"&&!I.target||!((H=p.current)!=null&&H.contains(I.target)))&&m(!1,T)},{once:!0});break;case"Escape":A==="Escape"&&(k.preventDefault(),k.stopPropagation()),m(!1,T);break}}),s.jsxRuntimeExports.jsx(Pe.Provider,{value:E,children:s.jsxRuntimeExports.jsx(_e.Provider,{value:v,children:l})})}he.displayName="Dropdown";he.Menu=Tt;he.Toggle=Mt;he.Item=Dt;const Le=M.createContext({});Le.displayName="DropdownContext";const At=M.forwardRef(({className:n,bsPrefix:e,as:t="hr",role:r="separator",...o},a)=>(e=s.useBootstrapPrefix(e,"dropdown-divider"),s.jsxRuntimeExports.jsx(t,{ref:a,className:s.classNames(n,e),role:r,...o})));At.displayName="DropdownDivider";const Ft=M.forwardRef(({className:n,bsPrefix:e,as:t="div",role:r="heading",...o},a)=>(e=s.useBootstrapPrefix(e,"dropdown-header"),s.jsxRuntimeExports.jsx(t,{ref:a,className:s.classNames(n,e),role:r,...o})));Ft.displayName="DropdownHeader";const Wt=M.forwardRef(({bsPrefix:n,className:e,eventKey:t,disabled:r=!1,onClick:o,active:a,as:i=kt,...l},u)=>{const d=s.useBootstrapPrefix(n,"dropdown-item"),[m,p]=Ot({key:t,href:l.href,disabled:r,onClick:o,active:a});return s.jsxRuntimeExports.jsx(i,{...l,...m,ref:u,className:s.classNames(e,d,p.isActive&&"active",r&&"disabled")})});Wt.displayName="DropdownItem";const Lt=M.forwardRef(({className:n,bsPrefix:e,as:t="span",...r},o)=>(e=s.useBootstrapPrefix(e,"dropdown-item-text"),s.jsxRuntimeExports.jsx(t,{ref:o,className:s.classNames(n,e),...r})));Lt.displayName="DropdownItemText";const ke=M.createContext(null);ke.displayName="InputGroupContext";const qt=M.createContext(null);qt.displayName="NavbarContext";function Bt(n,e){if(process.env.NODE_ENV==="production")return n;const t=c.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?nt(!1,`${e} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):nt(!1))},[e]);return s.useMergedRefs(t,n)}function Yt(n,e,t){const r=t?"top-end":"top-start",o=t?"top-start":"top-end",a=t?"bottom-end":"bottom-start",i=t?"bottom-start":"bottom-end",l=t?"right-start":"left-start",u=t?"right-end":"left-end",d=t?"left-start":"right-start",m=t?"left-end":"right-end";let p=n?i:a;return e==="up"?p=n?o:r:e==="end"?p=n?m:d:e==="start"?p=n?u:l:e==="down-centered"?p="bottom":e==="up-centered"&&(p="top"),p}const Ht=M.forwardRef(({bsPrefix:n,className:e,align:t,rootCloseEvent:r,flip:o=!0,show:a,renderOnMount:i,as:l="div",popperConfig:u,variant:d,...m},p)=>{let f=!1;const h=c.useContext(qt),j=s.useBootstrapPrefix(n,"dropdown-menu"),{align:g,drop:x,isRTL:b}=c.useContext(Le);t=t||g;const _=c.useContext(ke),y=[];if(t)if(typeof t=="object"){const k=Object.keys(t);if(process.env.NODE_ENV!=="production"&&s.warning(k.length===1,"There should only be 1 breakpoint when passing an object to `align`"),k.length){const S=k[0],D=t[S];f=D==="start",y.push(`${j}-${S}-${D}`)}}else t==="end"&&(f=!0);const C=Yt(f,x,b),[w,{hasShown:E,popper:v,show:R,toggle:O}]=Nt({flip:o,rootCloseEvent:r,show:a,usePopper:!h&&y.length===0,offset:[0,2],popperConfig:u,placement:C});if(w.ref=s.useMergedRefs(Bt(p,"DropdownMenu"),w.ref),s.useIsomorphicEffect(()=>{R&&(v==null||v.update())},[R]),!E&&!i&&!_)return null;typeof l!="string"&&(w.show=R,w.close=()=>O==null?void 0:O(!1),w.align=t);let N=m.style;return v!=null&&v.placement&&(N={...m.style,...w.style},m["x-placement"]=v.placement),s.jsxRuntimeExports.jsx(l,{...m,...w,style:N,...(y.length||h)&&{"data-bs-popper":"static"},className:s.classNames(e,j,R&&"show",f&&`${j}-end`,d&&`${j}-${d}`,...y)})});Ht.displayName="DropdownMenu";const Gt=M.forwardRef(({bsPrefix:n,split:e,className:t,childBsPrefix:r,as:o=Rt,...a},i)=>{const l=s.useBootstrapPrefix(n,"dropdown-toggle"),u=c.useContext(_e);r!==void 0&&(a.bsPrefix=r);const[d]=$t();return d.ref=s.useMergedRefs(d.ref,Bt(i,"DropdownToggle")),s.jsxRuntimeExports.jsx(o,{className:s.classNames(t,l,e&&`${l}-split`,(u==null?void 0:u.show)&&"show"),...d,...a})});Gt.displayName="DropdownToggle";const Ut=M.forwardRef((n,e)=>{const{bsPrefix:t,drop:r="down",show:o,className:a,align:i="start",onSelect:l,onToggle:u,focusFirstItemOnShow:d,as:m="div",navbar:p,autoClose:f=!0,...h}=s.useUncontrolled(n,{show:"onToggle"}),j=c.useContext(ke),g=s.useBootstrapPrefix(t,"dropdown"),x=s.useIsRTL(),b=v=>f===!1?v==="click":f==="inside"?v!=="rootClose":f==="outside"?v!=="select":!0,_=s.useEventCallback((v,R)=>{var O,N;!((O=R.originalEvent)==null||(N=O.target)==null)&&N.classList.contains("dropdown-toggle")&&R.source==="mousedown"||(R.originalEvent.currentTarget===document&&(R.source!=="keydown"||R.originalEvent.key==="Escape")&&(R.source="rootClose"),b(R.source)&&(u==null||u(v,R)))}),C=Yt(i==="end",r,x),w=c.useMemo(()=>({align:i,drop:r,isRTL:x}),[i,r,x]),E={down:g,"down-centered":`${g}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return s.jsxRuntimeExports.jsx(Le.Provider,{value:w,children:s.jsxRuntimeExports.jsx(he,{placement:C,show:o,onSelect:l,onToggle:_,focusFirstItemOnShow:d,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:j?h.children:s.jsxRuntimeExports.jsx(m,{...h,ref:e,className:s.classNames(a,o&&"show",E[r])})})})});Ut.displayName="Dropdown";const fe=Object.assign(Ut,{Toggle:Gt,Menu:Ht,Item:Wt,ItemText:Lt,Divider:At,Header:Ft}),er={type:s.PropTypes.string,tooltip:s.PropTypes.bool,as:s.PropTypes.elementType},Re=M.forwardRef(({as:n="div",className:e,type:t="valid",tooltip:r=!1,...o},a)=>s.jsxRuntimeExports.jsx(n,{...o,ref:a,className:s.classNames(e,`${t}-${r?"tooltip":"feedback"}`)}));Re.displayName="Feedback";Re.propTypes=er;const Q=M.createContext({}),xe=M.forwardRef(({id:n,bsPrefix:e,className:t,type:r="checkbox",isValid:o=!1,isInvalid:a=!1,as:i="input",...l},u)=>{const{controlId:d}=c.useContext(Q);return e=s.useBootstrapPrefix(e,"form-check-input"),s.jsxRuntimeExports.jsx(i,{...l,ref:u,type:r,id:n||d,className:s.classNames(t,e,o&&"is-valid",a&&"is-invalid")})});xe.displayName="FormCheckInput";const ye=M.forwardRef(({bsPrefix:n,className:e,htmlFor:t,...r},o)=>{const{controlId:a}=c.useContext(Q);return n=s.useBootstrapPrefix(n,"form-check-label"),s.jsxRuntimeExports.jsx("label",{...r,ref:o,htmlFor:t||a,className:s.classNames(e,n)})});ye.displayName="FormCheckLabel";const Kt=M.forwardRef(({id:n,bsPrefix:e,bsSwitchPrefix:t,inline:r=!1,reverse:o=!1,disabled:a=!1,isValid:i=!1,isInvalid:l=!1,feedbackTooltip:u=!1,feedback:d,feedbackType:m,className:p,style:f,title:h="",type:j="checkbox",label:g,children:x,as:b="input",..._},y)=>{e=s.useBootstrapPrefix(e,"form-check"),t=s.useBootstrapPrefix(t,"form-switch");const{controlId:C}=c.useContext(Q),w=c.useMemo(()=>({controlId:n||C}),[C,n]),E=!x&&g!=null&&g!==!1||Os(x,ye),v=s.jsxRuntimeExports.jsx(xe,{..._,type:j==="switch"?"checkbox":j,ref:y,isValid:i,isInvalid:l,disabled:a,as:b});return s.jsxRuntimeExports.jsx(Q.Provider,{value:w,children:s.jsxRuntimeExports.jsx("div",{style:f,className:s.classNames(p,E&&e,r&&`${e}-inline`,o&&`${e}-reverse`,j==="switch"&&t),children:x||s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[v,E&&s.jsxRuntimeExports.jsx(ye,{title:h,children:g}),d&&s.jsxRuntimeExports.jsx(Re,{type:m,tooltip:u,children:d})]})})})});Kt.displayName="FormCheck";const ve=Object.assign(Kt,{Input:xe,Label:ye}),Vt=M.forwardRef(({bsPrefix:n,type:e,size:t,htmlSize:r,id:o,className:a,isValid:i=!1,isInvalid:l=!1,plaintext:u,readOnly:d,as:m="input",...p},f)=>{const{controlId:h}=c.useContext(Q);return n=s.useBootstrapPrefix(n,"form-control"),process.env.NODE_ENV!=="production"&&s.warning(h==null||!o,"`controlId` is ignored on `<FormControl>` when `id` is specified."),s.jsxRuntimeExports.jsx(m,{...p,type:e,size:r,ref:f,readOnly:d,id:o||h,className:s.classNames(a,u?`${n}-plaintext`:n,t&&`${n}-${t}`,e==="color"&&`${n}-color`,i&&"is-valid",l&&"is-invalid")})});Vt.displayName="FormControl";const zt=Object.assign(Vt,{Feedback:Re}),Qt=M.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},o)=>(e=s.useBootstrapPrefix(e,"form-floating"),s.jsxRuntimeExports.jsx(t,{ref:o,className:s.classNames(n,e),...r})));Qt.displayName="FormFloating";const qe=M.forwardRef(({controlId:n,as:e="div",...t},r)=>{const o=c.useMemo(()=>({controlId:n}),[n]);return s.jsxRuntimeExports.jsx(Q.Provider,{value:o,children:s.jsxRuntimeExports.jsx(e,{...t,ref:r})})});qe.displayName="FormGroup";const Xt=M.forwardRef(({as:n="label",bsPrefix:e,column:t=!1,visuallyHidden:r=!1,className:o,htmlFor:a,...i},l)=>{const{controlId:u}=c.useContext(Q);e=s.useBootstrapPrefix(e,"form-label");let d="col-form-label";typeof t=="string"&&(d=`${d} ${d}-${t}`);const m=s.classNames(o,e,r&&"visually-hidden",t&&d);return process.env.NODE_ENV!=="production"&&s.warning(u==null||!a,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),a=a||u,t?s.jsxRuntimeExports.jsx(Ct,{ref:l,as:"label",className:m,htmlFor:a,...i}):s.jsxRuntimeExports.jsx(n,{ref:l,className:m,htmlFor:a,...i})});Xt.displayName="FormLabel";const Jt=M.forwardRef(({bsPrefix:n,className:e,id:t,...r},o)=>{const{controlId:a}=c.useContext(Q);return n=s.useBootstrapPrefix(n,"form-range"),s.jsxRuntimeExports.jsx("input",{...r,type:"range",ref:o,className:s.classNames(e,n),id:t||a})});Jt.displayName="FormRange";const Zt=M.forwardRef(({bsPrefix:n,size:e,htmlSize:t,className:r,isValid:o=!1,isInvalid:a=!1,id:i,...l},u)=>{const{controlId:d}=c.useContext(Q);return n=s.useBootstrapPrefix(n,"form-select"),s.jsxRuntimeExports.jsx("select",{...l,size:t,ref:u,className:s.classNames(r,n,e&&`${n}-${e}`,o&&"is-valid",a&&"is-invalid"),id:i||d})});Zt.displayName="FormSelect";const en=M.forwardRef(({bsPrefix:n,className:e,as:t="small",muted:r,...o},a)=>(n=s.useBootstrapPrefix(n,"form-text"),s.jsxRuntimeExports.jsx(t,{...o,ref:a,className:s.classNames(e,n,r&&"text-muted")})));en.displayName="FormText";const tn=M.forwardRef((n,e)=>s.jsxRuntimeExports.jsx(ve,{...n,ref:e,type:"switch"}));tn.displayName="Switch";const tr=Object.assign(tn,{Input:ve.Input,Label:ve.Label}),Be=M.forwardRef(({bsPrefix:n,className:e,children:t,controlId:r,label:o,...a},i)=>(n=s.useBootstrapPrefix(n,"form-floating"),s.jsxRuntimeExports.jsxs(qe,{ref:i,className:s.classNames(e,n),controlId:r,...a,children:[t,s.jsxRuntimeExports.jsx("label",{htmlFor:r,children:o})]})));Be.displayName="FloatingLabel";const nr={_ref:s.PropTypes.any,validated:s.PropTypes.bool,as:s.PropTypes.elementType},Ye=M.forwardRef(({className:n,validated:e,as:t="form",...r},o)=>s.jsxRuntimeExports.jsx(t,{...r,ref:o,className:s.classNames(n,e&&"was-validated")}));Ye.displayName="Form";Ye.propTypes=nr;const B=Object.assign(Ye,{Group:qe,Control:zt,Floating:Qt,Check:ve,Switch:tr,Label:Xt,Text:en,Range:Jt,Select:Zt,FloatingLabel:Be}),Ce=M.forwardRef(({className:n,bsPrefix:e,as:t="span",...r},o)=>(e=s.useBootstrapPrefix(e,"input-group-text"),s.jsxRuntimeExports.jsx(t,{ref:o,className:s.classNames(n,e),...r})));Ce.displayName="InputGroupText";const sr=n=>s.jsxRuntimeExports.jsx(Ce,{children:s.jsxRuntimeExports.jsx(xe,{type:"checkbox",...n})}),rr=n=>s.jsxRuntimeExports.jsx(Ce,{children:s.jsxRuntimeExports.jsx(xe,{type:"radio",...n})}),nn=M.forwardRef(({bsPrefix:n,size:e,hasValidation:t,className:r,as:o="div",...a},i)=>{n=s.useBootstrapPrefix(n,"input-group");const l=c.useMemo(()=>({}),[]);return s.jsxRuntimeExports.jsx(ke.Provider,{value:l,children:s.jsxRuntimeExports.jsx(o,{ref:i,...a,className:s.classNames(r,n,e&&`${n}-${e}`,t&&"has-validation")})})});nn.displayName="InputGroup";const $e=Object.assign(nn,{Text:Ce,Radio:rr,Checkbox:sr}),He=M.forwardRef(({bsPrefix:n,variant:e,animation:t="border",size:r,as:o="div",className:a,...i},l)=>{n=s.useBootstrapPrefix(n,"spinner");const u=`${n}-${t}`;return s.jsxRuntimeExports.jsx(o,{ref:l,...i,className:s.classNames(a,u,r&&`${u}-${r}`,e&&`text-${e}`)})});He.displayName="Spinner";/*! @azure/msal-common v14.10.0 2024-05-07 */const sn="client_info_decoding_error",rn="client_info_empty_error",or="token_parsing_error",ar="null_or_empty_token",ir="endpoints_resolution_error",cr="network_error",ur="openid_config_error",lr="hash_not_deserialized",dr="invalid_state",mr="state_mismatch",pr="state_not_found",fr="nonce_mismatch",hr="auth_time_not_found",xr="max_age_transpired",gr="multiple_matching_tokens",jr="multiple_matching_accounts",wr="multiple_matching_appMetadata",br="request_cannot_be_made",yr="cannot_remove_empty_scope",vr="cannot_append_scopeset",Er="empty_input_scopeset",_r="device_code_polling_cancelled",kr="device_code_expired",Rr="device_code_unknown_error",Cr="no_account_in_silent_request",Nr="invalid_cache_record",on="invalid_cache_environment",Tr="no_account_found",Ir="no_crypto_object",Sr="unexpected_credential_type",$r="invalid_assertion",Mr="invalid_client_credential",Pr="token_refresh_required",Or="user_timeout_reached",Dr="token_claims_cnf_required_for_signedjwt",Ar="authorization_code_missing_from_server_response",Fr="binding_key_not_removed",Wr="end_session_endpoint_not_supported",Lr="key_id_missing",qr="no_network_connectivity",Br="user_canceled",Yr="missing_tenant_id_error",Hr="method_not_implemented",Gr="nested_app_auth_bridge_disabled";/*! @azure/msal-common v14.10.0 2024-05-07 */const at={[sn]:"The client info could not be parsed/decoded correctly",[rn]:"The client info was empty",[or]:"Token cannot be parsed",[ar]:"The token is null or empty",[ir]:"Endpoints cannot be resolved",[cr]:"Network request failed",[ur]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[lr]:"The hash parameters could not be deserialized",[dr]:"State was not the expected format",[mr]:"State mismatch error",[pr]:"State not found",[fr]:"Nonce mismatch error",[hr]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[xr]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[gr]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[jr]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[wr]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[br]:"Token request cannot be made without authorization code or refresh token.",[yr]:"Cannot remove null or empty scope from ScopeSet",[vr]:"Cannot append ScopeSet",[Er]:"Empty input ScopeSet cannot be processed",[_r]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[kr]:"Device code is expired.",[Rr]:"Device code stopped polling for unknown reasons.",[Cr]:"Please pass an account object, silent flow is not supported without account information",[Nr]:"Cache record object was null or undefined.",[on]:"Invalid environment when attempting to create cache entry",[Tr]:"No account found in cache for given key.",[Ir]:"No crypto object detected.",[Sr]:"Unexpected credential type.",[$r]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[Mr]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[Pr]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[Or]:"User defined timeout for device code polling reached",[Dr]:"Cannot generate a POP jwt if the token_claims are not populated",[Ar]:"Server response does not contain an authorization code to proceed",[Fr]:"Could not remove the credential's binding key from storage.",[Wr]:"The provided authority does not support logout",[Lr]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[qr]:"No network connectivity. Check your internet connection.",[Br]:"User cancelled the flow.",[Yr]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[Hr]:"This method has not been implemented",[Gr]:"The nested app auth bridge is disabled"};class Ge extends s.AuthError{constructor(e,t){super(e,t?`${at[e]}: ${t}`:at[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,Ge.prototype)}}function Oe(n,e){return new Ge(n,e)}/*! @azure/msal-common v14.10.0 2024-05-07 */function it(n,e){if(!n)throw Oe(rn);try{const t=e(n);return JSON.parse(t)}catch{throw Oe(sn)}}/*! @azure/msal-common v14.10.0 2024-05-07 */function Ur(n,e){return!!n&&!!e&&n===e.split(".")[1]}function Kr(n,e){const{oid:t,sub:r,tid:o,name:a,tfp:i,acr:l}=e,u=o||i||l||"";return{tenantId:u,localAccountId:t||r||"",name:a,isHomeTenant:Ur(u,n)}}/*! @azure/msal-common v14.10.0 2024-05-07 */const Me={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.10.0 2024-05-07 */function Vr(n){return n&&(n.tid||n.tfp||n.acr)||null}/*! @azure/msal-common v14.10.0 2024-05-07 */const zr={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.10.0 2024-05-07 */class me{generateAccountId(){return[this.homeAccountId,this.environment].join(s.Separators.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return me.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const t=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",t||e.tenantId||""].join(s.Separators.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,t,r){const o=new me;t.authorityType===Me.Adfs?o.authorityType=s.CacheAccountType.ADFS_ACCOUNT_TYPE:t.protocolMode===zr.AAD?o.authorityType=s.CacheAccountType.MSSTS_ACCOUNT_TYPE:o.authorityType=s.CacheAccountType.GENERIC_ACCOUNT_TYPE;let a;e.clientInfo&&r&&(a=it(e.clientInfo,r)),o.clientInfo=e.clientInfo,o.homeAccountId=e.homeAccountId,o.nativeAccountId=e.nativeAccountId;const i=e.environment||t&&t.getPreferredCache();if(!i)throw Oe(on);o.environment=i,o.realm=(a==null?void 0:a.utid)||Vr(e.idTokenClaims)||"",o.localAccountId=(a==null?void 0:a.uid)||e.idTokenClaims.oid||e.idTokenClaims.sub||"";const l=e.idTokenClaims.preferred_username||e.idTokenClaims.upn,u=e.idTokenClaims.emails?e.idTokenClaims.emails[0]:null;if(o.username=l||u||"",o.name=e.idTokenClaims.name,o.cloudGraphHostName=e.cloudGraphHostName,o.msGraphHost=e.msGraphHost,e.tenantProfiles)o.tenantProfiles=e.tenantProfiles;else{const d=[];if(e.idTokenClaims){const m=Kr(e.homeAccountId,e.idTokenClaims);d.push(m)}o.tenantProfiles=d}return o}static createFromAccountInfo(e,t,r){var a;const o=new me;return o.authorityType=e.authorityType||s.CacheAccountType.GENERIC_ACCOUNT_TYPE,o.homeAccountId=e.homeAccountId,o.localAccountId=e.localAccountId,o.nativeAccountId=e.nativeAccountId,o.realm=e.tenantId,o.environment=e.environment,o.username=e.username,o.name=e.name,o.cloudGraphHostName=t,o.msGraphHost=r,o.tenantProfiles=Array.from(((a=e.tenantProfiles)==null?void 0:a.values())||[]),o}static generateHomeAccountId(e,t,r,o,a){if(!(t===Me.Adfs||t===Me.Dsts)){if(e)try{const i=it(e,o.base64Decode);if(i.uid&&i.utid)return`${i.uid}.${i.utid}`}catch{}r.warning("No client info in response")}return(a==null?void 0:a.sub)||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,t,r){if(!e||!t)return!1;let o=!0;if(r){const a=e.idTokenClaims||{},i=t.idTokenClaims||{};o=a.iat===i.iat&&a.nonce===i.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&o}}/*! @azure/msal-common v14.10.0 2024-05-07 */class Ue extends s.AuthError{constructor(e,t,r,o,a,i,l,u){super(e,t,r),Object.setPrototypeOf(this,Ue.prototype),this.timestamp=o||s.Constants.EMPTY_STRING,this.traceId=a||s.Constants.EMPTY_STRING,this.correlationId=i||s.Constants.EMPTY_STRING,this.claims=l||s.Constants.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=u}}/*! @azure/msal-react v2.0.16 2024-05-07 */function ct(n,e){return!e||!e.homeAccountId&&!e.localAccountId&&!e.username?n.getActiveAccount():s.getAccountByIdentifiers(n.getAllAccounts(),e)}function Qr(n){const{instance:e,inProgress:t,logger:r}=s.useMsal(),[o,a]=c.useState(()=>ct(e,n));return c.useEffect(()=>{a(i=>{const l=ct(e,n);return me.accountInfoIsEqual(i,l,!0)?i:(r.info("useAccount - Updating account"),l)})},[t,n,e,r]),o}/*! @azure/msal-react v2.0.16 2024-05-07 */const ge={invalidInteractionType:{code:"invalid_interaction_type",desc:"The provided interaction type is invalid."},unableToFallbackToInteraction:{code:"unable_to_fallback_to_interaction",desc:"Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete."}};class ae extends s.AuthError{constructor(e,t){super(e,t),Object.setPrototypeOf(this,ae.prototype),this.name="ReactAuthError"}static createInvalidInteractionTypeError(){return new ae(ge.invalidInteractionType.code,ge.invalidInteractionType.desc)}static createUnableToFallbackToInteractionError(){return new ae(ge.unableToFallbackToInteraction.code,ge.unableToFallbackToInteraction.desc)}}/*! @azure/msal-react v2.0.16 2024-05-07 */function Xr(n,e,t){const{instance:r,inProgress:o,logger:a}=s.useMsal(),i=s.useIsAuthenticated(t),l=Qr(t),[[u,d],m]=c.useState([null,null]),p=c.useRef(!0);c.useEffect(()=>()=>{p.current=!1},[]);const f=c.useRef(o!==s.InteractionStatus.None);c.useEffect(()=>{f.current=o!==s.InteractionStatus.None},[o]);const h=c.useRef(!0);c.useEffect(()=>{if(d){h.current=!1;return}if(u){h.current=!1;return}},[d,u]);const j=c.useCallback(async(x,b)=>{const _=x||n,y=b||e;switch(_){case s.InteractionType.Popup:return a.verbose("useMsalAuthentication - Calling loginPopup"),r.loginPopup(y);case s.InteractionType.Redirect:return a.verbose("useMsalAuthentication - Calling loginRedirect"),r.loginRedirect(y).then(null);case s.InteractionType.Silent:return a.verbose("useMsalAuthentication - Calling ssoSilent"),r.ssoSilent(y);default:throw ae.createInvalidInteractionTypeError()}},[r,n,e,a]),g=c.useCallback(async(x,b)=>{const _=x||n;let y;return b?(a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"),y={...b}):e?(a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"),y={...e,scopes:e.scopes||s.OIDC_DEFAULT_SCOPES}):(a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."),y={scopes:s.OIDC_DEFAULT_SCOPES}),!y.account&&l&&(a.trace("useMsalAuthentication - acquireToken - Attaching account to request"),y.account=l),(async()=>(a.verbose("useMsalAuthentication - Calling acquireTokenSilent"),r.acquireTokenSilent(y).catch(async w=>{if(w instanceof Ue){if(f.current)throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."),ae.createUnableToFallbackToInteractionError();return a.error("useMsalAuthentication - Interaction required, falling back to interaction"),j(_,y)}throw w})))().then(w=>(p.current&&m([w,null]),w)).catch(w=>{throw p.current&&m([null,w]),w})},[r,n,e,a,l,j]);return c.useEffect(()=>{const x=r.addEventCallback(b=>{switch(b.eventType){case K.EventType.LOGIN_SUCCESS:case K.EventType.SSO_SILENT_SUCCESS:b.payload&&m([b.payload,null]);break;case K.EventType.LOGIN_FAILURE:case K.EventType.SSO_SILENT_FAILURE:b.error&&m([null,b.error]);break}});return a.verbose(`useMsalAuthentication - Registered event callback with id: ${x}`),()=>{x&&(a.verbose(`useMsalAuthentication - Removing event callback ${x}`),r.removeEventCallback(x))}},[r,a]),c.useEffect(()=>{h.current&&o===s.InteractionStatus.None&&(h.current=!1,i?l&&(a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"),g().catch(()=>{})):(a.info("useMsalAuthentication - No user is authenticated, attempting to login"),j().catch(()=>{})))},[i,l,o,j,g,a]),{login:j,acquireToken:g,result:u,error:d}}/*! @azure/msal-react v2.0.16 2024-05-07 */function Jr({interactionType:n,username:e,homeAccountId:t,localAccountId:r,authenticationRequest:o,loadingComponent:a,errorComponent:i,children:l}){const u=c.useMemo(()=>({username:e,homeAccountId:t,localAccountId:r}),[e,t,r]),d=s.useMsal(),m=Xr(n,o,u),p=s.useIsAuthenticated(u);if(m.error&&d.inProgress===s.InteractionStatus.None){if(i)return c.createElement(i,{...m});throw m.error}return p?c.createElement(c.Fragment,null,s.getChildrenOrFunction(l,m)):a&&d.inProgress!==s.InteractionStatus.None?c.createElement(a,{...d}):null}const Zr="_button_1wjon_1",eo="_filled_1wjon_7",to="_sm_1wjon_13",no="_md_1wjon_18",so="_lg_1wjon_23",re={button:Zr,filled:eo,sm:to,md:no,lg:so},De=({variant:n="filled",color:e="primary",size:t="md",className:r,children:o,...a})=>{const{LinkComponent:i}=c.useContext(s.LuminusComponentsContext);return a.as==="link"?s.jsxRuntimeExports.jsx(i,{to:a.href??"/",className:s.classNames(`luminus-primary-button ${e} btn ${n==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${r??""}`,re.button,re[n],re[t]),...a,children:o}):a.as==="button"||a.as===void 0?s.jsxRuntimeExports.jsx("button",{type:"button",className:s.classNames(`luminus-primary-button ${e} btn ${n==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${r??""}`,re.button,re[n],re[t]),...a,children:o}):null},ro="_submit-container_a9slg_1",oo="_spacer_a9slg_14",ut={"submit-container":"_submit-container_a9slg_1",submitContainer:ro,spacer:oo},an=({children:n,onStorno:e})=>{const{formSubmitTexts:t}=c.useContext(s.LuminusComponentsContext);return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("div",{className:ut.spacer}),s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-floating-submit-container shadow",ut.submitContainer),children:[s.jsxRuntimeExports.jsxs(De,{as:"button",color:"primary",size:"lg",type:"submit",children:[s.jsxRuntimeExports.jsx(s.MdCheck,{}),n]}),e&&s.jsxRuntimeExports.jsxs(De,{as:"button",color:"secondary",variant:"outlined",size:"lg",onClick:e,children:[s.jsxRuntimeExports.jsx(s.MdOutlineClose,{}),t.storno]})]})]})},ao="_button_1r3i0_1",Ae={button:ao},Ke=({color:n="primary",icon:e,className:t,children:r,...o})=>{const{LinkComponent:a}=c.useContext(s.LuminusComponentsContext);return o.as==="link"?s.jsxRuntimeExports.jsxs(a,{to:o.href??"/",className:s.classNames(`luminus-context-button btn text-${n} ${t??""}`,Ae.button),...o,children:[e,r]}):o.as==="button"||o.as===void 0?s.jsxRuntimeExports.jsxs("button",{type:"button",className:s.classNames(`luminus-context-button btn text-${n} ${t??""}`,Ae.button),...o,children:[e,r]}):null},Ve=({color:n="primary",icon:e=s.jsxRuntimeExports.jsx(s.MdOutlineFileUpload,{size:12}),inputId:t="context-file-input",accept:r="*",onUpload:o,className:a,children:i,multiple:l,...u})=>{const d=m=>{m.target.files&&(o(m.target.files),m.target.value="")};return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsxs("label",{htmlFor:t,className:s.classNames(`luminus-context-button btn text-${n} ${a??""}`,Ae.button),...u,children:[e,i]}),s.jsxRuntimeExports.jsx("input",{id:t,type:"file",accept:r,onChange:d,hidden:!0,multiple:l})]})},io="_icon-button_gfs1l_1",co="_sm_gfs1l_14",uo="_md_gfs1l_19",lo="_lg_gfs1l_24",lt={"icon-button":"_icon-button_gfs1l_1",iconButton:io,sm:co,md:uo,lg:lo},Y=({type:n="button",color:e="primary",size:t="md",children:r,className:o,...a})=>s.jsxRuntimeExports.jsx("button",{type:n,className:s.classNames(`luminus-icon-button btn text-${e} ${o??""}`,lt.iconButton,lt[t]),...a,children:r}),mo=({month:n,onChangeMonth:e,locale:t})=>{const r=c.useCallback(o=>{e(jt(n,o))},[n,e]);return s.jsxRuntimeExports.jsxs("div",{className:"card d-flex flex-row align-items-center m-0 p-1 gap-2",children:[s.jsxRuntimeExports.jsx(Y,{onClick:()=>r(-1),children:s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowLeft,{})}),s.jsxRuntimeExports.jsx("div",{children:vt(n,"LLLL yyyy",{locale:t})}),s.jsxRuntimeExports.jsx(Y,{onClick:()=>r(1),children:s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowRight,{})})]})},po=({year:n,onChangeYear:e,locale:t})=>{const r=c.useCallback(o=>{e(yn(n,o))},[n,e]);return s.jsxRuntimeExports.jsxs("div",{className:"card d-flex flex-row align-items-center m-0 p-1 gap-2",children:[s.jsxRuntimeExports.jsx(Y,{onClick:()=>r(-1),children:s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowLeft,{})}),s.jsxRuntimeExports.jsx("div",{children:vt(n,"yyyy",{locale:t})}),s.jsxRuntimeExports.jsx(Y,{onClick:()=>r(1),children:s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowRight,{})})]})},fo="_widget_1sdw8_1",ho={widget:fo},dt=({onAdd:n})=>s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-empty-widget",ho.widget),children:s.jsxRuntimeExports.jsx(Y,{onClick:()=>n(0),children:s.jsxRuntimeExports.jsx(s.MdOutlineAddCircleOutline,{})})}),xo=()=>{const[n,e]=c.useState({widgets:[]});c.useEffect(()=>{const r=localStorage.getItem("dashboardConfig");r&&e(JSON.parse(r))},[]);const t=c.useCallback(r=>{e(r),localStorage.setItem("dashboardConfig",JSON.stringify(r))},[]);return{dashboardConfig:n,onChangeDashboardConfig:t}},go="_dashboard_1ikl9_1",jo="_widgets-grid_1ikl9_1",wo="_widget-wrapper_1ikl9_7",bo="_full-width_1ikl9_12",yo="_widget-edit_1ikl9_15",vo="_remove-icon_1ikl9_18",Eo="_full-width-icon_1ikl9_25",_o="_widget-edit-overlay_1ikl9_35",z={dashboard:go,"widgets-grid":"_widgets-grid_1ikl9_1",widgetsGrid:jo,"widget-wrapper":"_widget-wrapper_1ikl9_7",widgetWrapper:wo,"full-width":"_full-width_1ikl9_12",fullWidth:bo,"widget-edit":"_widget-edit_1ikl9_15",widgetEdit:yo,"remove-icon":"_remove-icon_1ikl9_18",removeIcon:vo,"full-width-icon":"_full-width-icon_1ikl9_25",fullWidthIcon:Eo,"widget-edit-overlay":"_widget-edit-overlay_1ikl9_35",widgetEditOverlay:_o},ko=({availableWidgets:n})=>{var m;const{homeDashboardTexts:e}=c.useContext(s.LuminusComponentsContext),{dashboardConfig:t,onChangeDashboardConfig:r}=xo(),[o,a]=c.useState(!1),i=c.useCallback((p,f)=>{var h,j;p===((h=t.widgets)==null?void 0:h.length)?r({...t,widgets:[...t.widgets,{widgetId:f,fullWidth:!1}]}):r({...t,widgets:((j=t.widgets)==null?void 0:j.map((g,x)=>x===p?{widgetId:f,fullWidth:!1}:g))??[]})},[t,r]),l=c.useCallback(p=>{var f,h;((f=t.widgets[p])==null?void 0:f.widgetId)===-1?r({...t,widgets:((h=t.widgets)==null?void 0:h.filter((j,g)=>g!==p))??[]}):i(p,-1)},[t,r,i]),u=c.useCallback(p=>{var f;r({...t,widgets:((f=t.widgets)==null?void 0:f.map((h,j)=>j===p?{...h,fullWidth:!h.fullWidth}:h))??[]})},[t,r]),d=c.useCallback((p,f,h)=>p?s.jsxRuntimeExports.jsxs("div",{className:s.classNames(z.widgetWrapper,{[z.widgetEdit]:o&&p.id!==-1},{[z.fullWidth]:h}),children:[o&&s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(Y,{color:"danger",onClick:()=>l(f),className:s.classNames(z.removeIcon),children:s.jsxRuntimeExports.jsx(s.MdOutlineDelete,{})}),s.jsxRuntimeExports.jsx(Y,{color:h?"danger":"primary",onClick:()=>u(f),className:s.classNames(z.fullWidthIcon),children:s.jsxRuntimeExports.jsx(s.MdOutlineExpand,{})})]}),p.id===-1?o&&s.jsxRuntimeExports.jsx("div",{className:z.widgetWrapper,children:s.jsxRuntimeExports.jsx(dt,{onAdd:j=>i(f,j)})}):p.render,p.id>-1&&o&&s.jsxRuntimeExports.jsx("div",{className:z.widgetEditOverlay})]},f):s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{}),[o,i,l,u]);return s.jsxRuntimeExports.jsxs("div",{className:z.dashboard,children:[s.jsxRuntimeExports.jsx("div",{className:"mb-3 d-flex align-items-center justify-content-end",children:s.jsxRuntimeExports.jsx(Ke,{as:"button",color:o?"success":"primary",icon:o?s.jsxRuntimeExports.jsx(s.MdOutlineCheck,{}):s.jsxRuntimeExports.jsx(s.MdOutlineEdit,{}),onClick:()=>a(!o),children:o?e.dashboardEditDone:e.dashboardEdit})}),s.jsxRuntimeExports.jsxs("div",{className:z.widgetsGrid,children:[(m=t.widgets)==null?void 0:m.map((p,f)=>d(n.find(h=>h.id===p.widgetId),f,p.fullWidth)),o&&s.jsxRuntimeExports.jsx(dt,{onAdd:p=>{var f;return i((f=t.widgets)==null?void 0:f.length,p)}})]})]})},Ro="_badge_nhser_1",Co="_sm_nhser_1",No="_md_nhser_4",To="_lg_nhser_7",mt={badge:Ro,sm:Co,md:No,lg:To},Io=({children:n,color:e="primary",size:t="md",className:r})=>s.jsxRuntimeExports.jsx("span",{className:s.classNames(`luminus-badge badge bg-${e} ${r??""}`,mt.badge,mt[t]),children:n}),So="_collapse-icon_1ahhn_1",$o="_collapsed_1ahhn_6",pt={"collapse-icon":"_collapse-icon_1ahhn_1",collapseIcon:So,collapsed:$o},Mo=({title:n,children:e,className:t,...r})=>{const o=r.controlled?!1:r.defaultOpen??!1,[a,i]=c.useState(o),l=r.controlled?r.isOpen:a;return c.useEffect(()=>{i(o)},[o]),s.jsxRuntimeExports.jsxs("div",{className:t??"",children:[s.jsxRuntimeExports.jsxs("div",{role:"button",className:"d-flex align-items-center justify-content-between pb-3 pt-2",onClick:()=>r.controlled?r.onToggle(!r.isOpen):i(!a),children:[s.jsxRuntimeExports.jsx(L.Typography,{variant:"h6",children:n}),s.jsxRuntimeExports.jsx(s.MdOutlineChevronRight,{className:s.classNames(pt.collapseIcon,{[pt.collapsed]:l})})]}),s.jsxRuntimeExports.jsx(Et,{in:l,children:s.jsxRuntimeExports.jsx("div",{children:e})}),s.jsxRuntimeExports.jsx("hr",{className:`my-0 ${l?"mt-3":""}`})]})},Po="_feedback_esh1j_1",Oo="_feedback-spacer_esh1j_8",ft={feedback:Po,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:Oo},Z=({message:n})=>s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("invalid-feedback luminus-invalid-feedback",ft.feedback),children:n}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("invalid-feedback-spacer",ft.feedbackSpacer),children:n})]});function Do(n,e,t){var r=this,o=c.useRef(null),a=c.useRef(0),i=c.useRef(null),l=c.useRef([]),u=c.useRef(),d=c.useRef(),m=c.useRef(n),p=c.useRef(!0);m.current=n;var f=typeof window<"u",h=!e&&e!==0&&f;if(typeof n!="function")throw new TypeError("Expected a function");e=+e||0;var j=!!(t=t||{}).leading,g=!("trailing"in t)||!!t.trailing,x="maxWait"in t,b="debounceOnServer"in t&&!!t.debounceOnServer,_=x?Math.max(+t.maxWait||0,e):null;c.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var y=c.useMemo(function(){var C=function(N){var k=l.current,S=u.current;return l.current=u.current=null,a.current=N,d.current=m.current.apply(S,k)},w=function(N,k){h&&cancelAnimationFrame(i.current),i.current=h?requestAnimationFrame(N):setTimeout(N,k)},E=function(N){if(!p.current)return!1;var k=N-o.current;return!o.current||k>=e||k<0||x&&N-a.current>=_},v=function(N){return i.current=null,g&&l.current?C(N):(l.current=u.current=null,d.current)},R=function N(){var k=Date.now();if(E(k))return v(k);if(p.current){var S=e-(k-o.current),D=x?Math.min(S,_-(k-a.current)):S;w(N,D)}},O=function(){if(f||b){var N=Date.now(),k=E(N);if(l.current=[].slice.call(arguments),u.current=r,o.current=N,k){if(!i.current&&p.current)return a.current=o.current,w(R,e),j?C(o.current):d.current;if(x)return w(R,e),C(o.current)}return i.current||w(R,e),d.current}};return O.cancel=function(){i.current&&(h?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,l.current=o.current=u.current=i.current=null},O.isPending=function(){return!!i.current},O.flush=function(){return i.current?v(Date.now()):d.current},O},[j,x,e,_,g,h,f,b]);return y}function Ao(n,e){return n===e}function Fo(n,e){return e}function cn(n,e,t){var r=Ao,o=c.useReducer(Fo,n),a=o[0],i=o[1],l=Do(c.useCallback(function(d){return i(d)},[i]),e,t),u=c.useRef(n);return r(u.current,n)||(l(n),u.current=n),[a,l]}const Wo="_wrapper_ov00y_1",Lo="_open_ov00y_9",qo="_dropdown_ov00y_13",Bo="_selected-button_ov00y_19",Yo="_search-input-container_ov00y_28",Ho="_search-input_ov00y_28",Go="_loading-container_ov00y_34",Uo="_items-container_ov00y_41",Ko="_header-row_ov00y_47",Vo="_item_ov00y_41",zo="_name_ov00y_66",Qo="_column-item_ov00y_71",Xo="_icon_ov00y_78",Jo="_clear-button_ov00y_86",F={wrapper:Wo,open:Lo,dropdown:qo,"selected-button":"_selected-button_ov00y_19",selectedButton:Bo,"search-input-container":"_search-input-container_ov00y_28",searchInputContainer:Yo,"search-input":"_search-input_ov00y_28",searchInput:Ho,"loading-container":"_loading-container_ov00y_34",loadingContainer:Go,"items-container":"_items-container_ov00y_41",itemsContainer:Uo,"header-row":"_header-row_ov00y_47",headerRow:Ko,item:Vo,name:zo,"column-item":"_column-item_ov00y_71",columnItem:Qo,icon:Xo,"clear-button":"_clear-button_ov00y_86",clearButton:Jo},Ne=({show:n,onCancel:e,items:t,currentSelection:r,onSelectionChange:o,onClickSelectedItem:a,onSearchQueryChange:i,texts:l,additionalColumns:u,autoHideSearch:d=!1,allItemsLength:m,disabled:p,isLoading:f=!1,inputRef:h})=>{var $;const j=c.useRef(null),g=c.useRef(null),x=c.useRef(null),[b,_]=c.useState(""),[y]=cn(b,500),[,C]=c.useState(!1),w=($=h.current)==null?void 0:$.getBoundingClientRect(),E=(w==null?void 0:w.x)??0,v=((w==null?void 0:w.x)??0)+((w==null?void 0:w.width)??0),R=(w==null?void 0:w.y)??0,O=((w==null?void 0:w.y)??0)+((w==null?void 0:w.height)??0),N=(w==null?void 0:w.width)??0,k=(w==null?void 0:w.height)??0,S=5,D=c.useMemo(()=>E?E>window.innerWidth/2:!1,[E]),A=c.useMemo(()=>R?R>window.innerHeight/2:!1,[R]);c.useEffect(()=>{var T;n&&((T=x.current)==null||T.focus())},[x,n]),c.useEffect(()=>{n||_("")},[n]),c.useEffect(()=>{i(y)},[y,i]);const q=c.useCallback(T=>{switch(T.key){case"Escape":T.stopPropagation(),e();break}},[e]),W=c.useCallback(()=>{C(T=>!T)},[]);c.useEffect(()=>(window.addEventListener("scroll",W),()=>{window.removeEventListener("scroll",W)}),[W]),c.useEffect(()=>(window.addEventListener("resize",W),()=>{window.removeEventListener("resize",W)}),[W]),je.useKeyPress(q),je.useClickOutside([j,g],e);const U=`calc(max(${N}px, ${u&&(u==null?void 0:u.length)>0?"250px":"0px"}) + ${((u==null?void 0:u.length)??0)*100}px) `;return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ze,{show:n,onClick:e}),r&&n&&!p&&s.jsxRuntimeExports.jsx("button",{ref:g,type:"button",className:s.classNames("luminus-dropdown-picker-clear-button",F.clearButton),onClick:()=>!p&&o(null),style:{top:`calc(${R}px + ${k/2}px - 12px)`,left:`calc(${E}px - 24px - 8px)`},children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"caption",className:"text-danger",children:s.jsxRuntimeExports.jsx(s.MdOutlineDelete,{size:16})})}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-dropdown-picker",F.wrapper,{[F.open]:n}),style:{top:A?`calc(${R}px - 50vh - 8px)`:`calc(${O}px + 8px)`,left:D?`calc(${v}px - ${U})`:E,right:D?`${v}px`:`calc(${E}px + ${U})`,width:U,justifyContent:A?"flex-end":"flex-start"},children:s.jsxRuntimeExports.jsxs("div",{ref:j,className:s.classNames("shadow rounded",F.dropdown),children:[r&&a&&s.jsxRuntimeExports.jsxs("button",{type:"button",onClick:()=>{e(),a(r)},className:s.classNames("selected-button",F.selectedButton),children:[s.jsxRuntimeExports.jsx("div",{className:F.name,children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"body2",children:r.name})}),s.jsxRuntimeExports.jsx("div",{className:F.icon,children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"caption",className:"text-primary align-items-center",children:s.jsxRuntimeExports.jsx(s.MdOutlineArrowOutward,{})})})]}),!p&&s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[d&&(m??t.length)<=S?null:s.jsxRuntimeExports.jsx("div",{className:s.classNames("search-input-container border-bottom",F.searchInputContainer),children:s.jsxRuntimeExports.jsx(B.Control,{ref:x,type:"search",size:"sm",className:F.searchInput,placeholder:l.searchPlaceholder,value:b,onChange:T=>{var I;return _(((I=T.target)==null?void 0:I.value)??"")}})}),f?s.jsxRuntimeExports.jsx("div",{className:F.loadingContainer,children:s.jsxRuntimeExports.jsx(He,{animation:"border",variant:"primary"})}):t.length>0&&s.jsxRuntimeExports.jsxs("div",{className:s.classNames("items",F.itemsContainer),children:[u&&u.length>0&&s.jsxRuntimeExports.jsxs("div",{className:s.classNames("header-row border-bottom",F.headerRow),children:[s.jsxRuntimeExports.jsx("div",{className:F.name}),u==null?void 0:u.map(T=>s.jsxRuntimeExports.jsx("div",{className:F.columnItem,children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"caption",children:T.name})},T.key))]}),t==null?void 0:t.map(T=>s.jsxRuntimeExports.jsxs("button",{type:"button",className:s.classNames("item cursor-pointer",F.item),onClick:()=>!p&&o(T),children:[s.jsxRuntimeExports.jsx("div",{className:F.name,children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"body2",children:T.name})}),u==null?void 0:u.map(I=>s.jsxRuntimeExports.jsx("div",{className:F.columnItem,children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"caption",className:s.classNames("text-muted"),children:T.additionalColumns&&T.additionalColumns[I.key]})},I.key))]},T.id))]})]})]})})]})};function Zo(n){return s.GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(n)}const ea="_item_1dy8x_1",un={item:ea},ln=({color:n="primary",icon:e,className:t,children:r,...o})=>s.jsxRuntimeExports.jsxs(fe.Item,{className:s.classNames(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${t??""}`,un.item),...o,children:[e,r]}),dn=n=>s.jsxRuntimeExports.jsx(fe.Toggle,{...n}),ta=({color:n="primary",icon:e=s.jsxRuntimeExports.jsx(s.MdOutlineFileUpload,{size:12}),inputId:t="context-file-input",accept:r="*",onUpload:o,multiple:a,className:i,children:l,...u})=>{const d=m=>{m.target.files&&(o(m.target.files),m.target.value="")};return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsxs("label",{htmlFor:t,className:s.classNames(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${i??""}`,un.item),...u,children:[e,l]}),s.jsxRuntimeExports.jsx("input",{id:t,type:"file",accept:r,onChange:d,hidden:!0,multiple:a})]})},na="_divider_1e6rk_1",sa={divider:na},ra=({className:n})=>s.jsxRuntimeExports.jsx(fe.Divider,{className:s.classNames("luminus-dropdown-divider",n,sa.divider)}),oa="_dropdown_1lk66_1",aa={dropdown:oa},mn=({toggle:n,children:e,...t})=>s.jsxRuntimeExports.jsxs(fe,{...t,children:[n,s.jsxRuntimeExports.jsx(fe.Menu,{className:s.classNames("luminus-dropdown rounded shadow",aa.dropdown),children:e})]}),ia=({searchTypes:n,selectedType:e,setSelectedType:t})=>s.jsxRuntimeExports.jsx(mn,{toggle:s.jsxRuntimeExports.jsx(dn,{as:s.SimpleDropdownToggle,icon:null,text:e==null?void 0:e.text}),children:n.map(r=>s.jsxRuntimeExports.jsx(ln,{icon:null,onClick:()=>t(r),children:r.text},r.key))}),ca="_dropdown_1ddrg_1",ua="_open_1ddrg_12",la="_loading-container_1ddrg_15",da="_groups-container_1ddrg_22",ma="_group_1ddrg_22",pa="_header_1ddrg_26",fa="_item_1ddrg_33",ee={dropdown:ca,open:ua,"loading-container":"_loading-container_1ddrg_15",loadingContainer:la,"groups-container":"_groups-container_1ddrg_22",groupsContainer:da,group:ma,header:pa,item:fa},ha=({show:n,query:e,onCancel:t,groups:r,isLoading:o,searchTypes:a})=>{const{LinkComponent:i,appSearchTexts:l}=c.useContext(s.LuminusComponentsContext),u=c.useRef(null),d=c.useCallback(m=>{var f;const p=(f=a.find(h=>h.key===m.type))==null?void 0:f.toPath;return p?`${p}/${m.searchKey}`:"/not-found"},[a]);return je.useClickOutside([u],t),s.jsxRuntimeExports.jsx("div",{ref:u,className:s.classNames("luminus-app-search-dropdown shadow rounded",ee.dropdown,{[ee.open]:n}),children:o?s.jsxRuntimeExports.jsx("div",{className:ee.loadingContainer,children:s.jsxRuntimeExports.jsx(He,{animation:"border",variant:"primary"})}):s.jsxRuntimeExports.jsx("div",{className:ee.groupsContainer,children:r==null?void 0:r.map(m=>{var p;return s.jsxRuntimeExports.jsxs("div",{className:s.classNames(ee.group),children:[s.jsxRuntimeExports.jsxs(i,{to:`/search?query=${e}&type=${m.key.category}`,className:s.classNames("group-header",ee.header),onClick:t,children:[s.jsxRuntimeExports.jsx(L.Typography,{variant:"body",className:"text-primary",children:m.key.categoryName}),s.jsxRuntimeExports.jsxs(L.Typography,{variant:"caption",children:[m.items.length," ",l.amountFrom," ",m.key.totalCount]})]}),(p=m.items)==null?void 0:p.map((f,h)=>s.jsxRuntimeExports.jsxs(i,{to:d(f),className:s.classNames("search-item d-flex gap-3 align-items-center justify-content-between",ee.item),onClick:t,children:[s.jsxRuntimeExports.jsx(L.Typography,{variant:"body2",className:"text-nowrap text-truncate",children:f.name}),s.jsxRuntimeExports.jsx(L.Typography,{variant:"caption",className:"text-primary",children:s.jsxRuntimeExports.jsx(s.MdOutlineArrowOutward,{})})]},h))]},m.key.category)})})})},xa="_input-group_1lkfy_1",ga="_input-group-text_1lkfy_5",ja="_left_1lkfy_9",wa="_right_1lkfy_13",ba="_input_1lkfy_1",ya="_submit-button_1lkfy_20",te={"input-group":"_input-group_1lkfy_1",inputGroup:xa,"input-group-text":"_input-group-text_1lkfy_5",inputGroupText:ga,left:ja,right:wa,input:ba,"submit-button":"_submit-button_1lkfy_20",submitButton:ya},va=(n,e)=>{const t=s.useAxios(),[r,o]=c.useState(!1),[a,i]=c.useState([]),l=!n||!n.key,u=c.useCallback(()=>{if(e.length<3){i([]);return}o(!0),t.get(`/search/${e}?count=${l?5:20}${l?"":`&type=${n.key}`}`).then(({data:d})=>{i(d),o(!1)}).catch(()=>{o(!1)})},[n,e,t,l]);return c.useEffect(()=>{u()},[u]),{isLoading:r,searchItems:a}},Ea=({searchTypes:n,navigateFunction:e})=>{const{appSearchTexts:t}=c.useContext(s.LuminusComponentsContext),[r,o]=c.useState(n.length>0?n[0]:null),[a,i]=c.useState(""),[l,u]=cn(a,500),{isLoading:d,searchItems:m}=va(r,l),[p,f]=c.useState(!1);return c.useEffect(()=>{(m.length>0||d)&&f(!0)},[m,d]),s.jsxRuntimeExports.jsx(B,{onSubmit:h=>{h.preventDefault(),h.stopPropagation(),u.flush(),f(!1),a.length>2&&e(`/search?query=${a}${r&&r.key&&`&type=${r==null?void 0:r.key}`}`)},children:s.jsxRuntimeExports.jsxs($e,{className:te.inputGroup,children:[s.jsxRuntimeExports.jsx($e.Text,{className:s.classNames("p-1 rounded",te.inputGroupText,te.left),children:s.jsxRuntimeExports.jsx(ia,{searchTypes:n,selectedType:r,setSelectedType:o})}),s.jsxRuntimeExports.jsx(B.Control,{placeholder:t.searchPlaceholder,type:"text",size:"sm",className:s.classNames("luminus-app-search-input",te.input),value:a,onChange:h=>{var j;return i(((j=h.target)==null?void 0:j.value)??"")},onFocus:()=>m.length>0&&f(!0)}),s.jsxRuntimeExports.jsx($e.Text,{className:s.classNames("p-0 rounded",te.inputGroupText,te.right),children:s.jsxRuntimeExports.jsx("button",{type:"submit",className:s.classNames("text-primary",te.submitButton),children:s.jsxRuntimeExports.jsx(Zo,{})})}),s.jsxRuntimeExports.jsx(ha,{query:l,searchTypes:n,show:p,onCancel:()=>f(!1),groups:m,isLoading:d})]})})},_a="_card_1459b_1",ka="_header_1459b_6",Ra="_header-content_1459b_13",Ca="_collapse-icon_1459b_19",Na="_collapsed_1459b_24",Ta="_content_1459b_27",oe={card:_a,header:ka,"header-content":"_header-content_1459b_13",headerContent:Ra,"collapse-icon":"_collapse-icon_1459b_19",collapseIcon:Ca,collapsed:Na,content:Ta},Ia=({title:n,headerContent:e,children:t,className:r,headerClassName:o,contentClassName:a,...i})=>{const l=i.collapsible?i.controlled?!1:i.defaultOpen??!1:!0,[u,d]=c.useState(l),m=i.collapsible?i.controlled?i.isOpen:u:!0;return c.useEffect(()=>{d(l)},[l]),s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-card rounded shadow-sm",oe.card,{[r??""]:r}),children:[s.jsxRuntimeExports.jsxs("div",{role:i.collapsible?"button":void 0,className:s.classNames("header",oe.header,{[o??""]:o}),onClick:()=>{i.collapsible&&(i.controlled?i.onToggle(!i.isOpen):d(!u))},children:[s.jsxRuntimeExports.jsxs("div",{className:s.classNames("header-content",oe.headerContent),children:[s.jsxRuntimeExports.jsx(L.Typography,{variant:"h6",className:"text-primary",children:n}),e??null]}),i.collapsible&&s.jsxRuntimeExports.jsx(s.MdOutlineChevronRight,{className:s.classNames(oe.collapseIcon,{[oe.collapsed]:m})})]}),s.jsxRuntimeExports.jsx(Et,{in:m,children:s.jsxRuntimeExports.jsx("div",{className:s.classNames("card-content border-top border-primary",oe.content,{[a??""]:a}),children:t})})]})},Sa="_lightbox_1mwxl_1",$a="_show_1mwxl_16",Ma="_header_1mwxl_20",Pa="_photo-actions_1mwxl_26",Oa="_photo-container_1mwxl_31",Da="_photo_1mwxl_26",Aa="_nav-button_1mwxl_41",Fa="_photos-preview_1mwxl_49",Wa="_selected_1mwxl_61",G={lightbox:Sa,show:$a,header:Ma,"photo-actions":"_photo-actions_1mwxl_26",photoActions:Pa,"photo-container":"_photo-container_1mwxl_31",photoContainer:Oa,photo:Da,"nav-button":"_nav-button_1mwxl_41",navButton:Aa,"photos-preview":"_photos-preview_1mwxl_49",photosPreview:Fa,selected:Wa},La="_backdrop_1sik0_1",qa="_show_1sik0_11",ht={backdrop:La,show:qa},ze=({show:n,onClick:e})=>s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-backdrop",ht.backdrop,{[ht.show]:n}),onClick:()=>e&&e()}),pn=({show:n,onClose:e,photos:t,defaultIndex:r,uploadPhotosText:o,onUploadPhotos:a,photoActions:i})=>{const l=c.useRef(null),[u,d]=c.useState(r),m=t.at(u),p=u>0,f=u<t.length-1;c.useEffect(()=>{n&&d(r)},[r,n]),c.useEffect(()=>{u>=t.length&&d(t.length-1)},[t,u]);const h=c.useCallback(j=>{switch(j.key){case"ArrowLeft":j.stopPropagation(),p&&d(g=>g-1);break;case"ArrowRight":j.stopPropagation(),f&&d(g=>g+1);break;case"Escape":j.stopPropagation(),e();break}},[f,p,e]);return je.useKeyPress(h),t.length===0?null:s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ze,{show:n,onClick:e}),s.jsxRuntimeExports.jsxs("div",{ref:l,className:s.classNames("luminus-lightbox rounded shadow",G.lightbox,{[G.show]:n}),children:[s.jsxRuntimeExports.jsxs("div",{className:G.header,children:[s.jsxRuntimeExports.jsxs("div",{className:s.classNames("rounded",G.photoActions),children:[a&&s.jsxRuntimeExports.jsx(Ve,{accept:".jpg,.jpeg,.png",onUpload:j=>{j.length>0&&a(Array.from(j))},icon:s.jsxRuntimeExports.jsx(s.MdOutlineCameraAlt,{style:{fontSize:18}}),multiple:!0,className:"me-3",children:o??null}),m&&(i==null?void 0:i.map(({label:j,onClick:g,...x},b)=>s.jsxRuntimeExports.jsx(Ke,{onClick:()=>g(m.id),...x,children:j},`action-${b}`)))]}),s.jsxRuntimeExports.jsx("div",{role:"button",onClick:e,children:s.jsxRuntimeExports.jsx(s.MdClear,{style:{fontSize:"32px"}})})]}),m&&s.jsxRuntimeExports.jsxs("div",{className:G.photoContainer,children:[s.jsxRuntimeExports.jsx("div",{role:p?"button":void 0,className:s.classNames("align-items-start",G.navButton),onClick:()=>p&&d(j=>j-1),children:p&&s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowLeft,{style:{fontSize:"40px"}})}),s.jsxRuntimeExports.jsx("img",{src:m.lgSrc,alt:m.alt,className:s.classNames("rounded",G.photo)}),s.jsxRuntimeExports.jsx("div",{role:f?"button":void 0,className:s.classNames("align-items-end",G.navButton),onClick:()=>f&&d(j=>j+1),children:f&&s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowRight,{style:{fontSize:"40px"}})})]}),s.jsxRuntimeExports.jsx("div",{className:G.photosPreview,children:t.map((j,g)=>s.jsxRuntimeExports.jsx("img",{role:g!==u?"button":void 0,src:j.smSrc,alt:j.alt,className:s.classNames("rounded",G.photo,{[G.selected]:g===u}),onClick:()=>d(g)},j.id))})]})]})},Ba=({photos:n,onUploadPhotos:e,uploadPhotosText:t,photoActions:r})=>{const[o,a]=c.useState(null),i=o!==null?n[o]:null,[l,u]=c.useState(!1);return c.useEffect(()=>{if(n.length===0){a(null),u(!1);return}const d=n.findIndex(m=>m.isDefault);a(d>-1?d:0)},[n]),i?s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("img",{role:"button",src:i.smSrc,alt:i.alt,className:"rounded w-100",onClick:()=>u(!0)}),s.jsxRuntimeExports.jsx(pn,{show:l,onClose:()=>u(!1),photos:n,defaultIndex:o??0,uploadPhotosText:t,onUploadPhotos:e,photoActions:r})]}):e?s.jsxRuntimeExports.jsx(Ve,{accept:".jpg,.jpeg,.png",onUpload:d=>{d.length>0&&e(Array.from(d))},icon:s.jsxRuntimeExports.jsx(s.MdOutlineCameraAlt,{style:{fontSize:18}}),multiple:!0,children:t??null}):null},Ya=({children:n})=>{const{NavigateComponent:e}=c.useContext(s.LuminusComponentsContext),{useMsal:t,msalScopes:r}=c.useContext(s.AuthContext),{isAuthenticated:o}=s.useAuth(),{user:a}=c.useContext(s.UserContext);return t?s.jsxRuntimeExports.jsx(Jr,{interactionType:s.InteractionType.Popup,authenticationRequest:{scopes:r},children:a&&n}):!o()||!a?s.jsxRuntimeExports.jsx(e,{to:"/login",replace:!0}):n},Ha=({heading:n,content:e,placement:t,children:r,trigger:o})=>s.jsxRuntimeExports.jsx(s.OverlayTrigger,{placement:t,overlay:s.jsxRuntimeExports.jsxs(s.Popover,{className:"luminus-tooltip",children:[s.jsxRuntimeExports.jsx(s.Popover.Header,{as:"h3",children:n}),s.jsxRuntimeExports.jsx(s.Popover.Body,{children:e})]}),trigger:o??"hover",rootClose:!0,children:r}),Ga="_floating-label_131i6_1",Ua="_without-label_131i6_21",xt={"floating-label":"_floating-label_131i6_1",floatingLabel:Ga,"without-label":"_without-label_131i6_21",withoutLabel:Ua},ie=c.forwardRef(({hidden:n,children:e,className:t,isInvalid:r,isForRadioInput:o,inputContainerClassName:a,isForCheckInput:i,...l},u)=>i?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:e}):s.jsxRuntimeExports.jsx(Be,{ref:u,label:l.withoutLabel?"":l.label,hidden:n??!1,className:s.classNames(`luminus-floating-label ${t??""}`,xt.floatingLabel,{[a??""]:a},{[xt.withoutLabel]:l.withoutLabel}),children:e}));ie.displayName="FloatingLabelInput";const Ka="_row-label-input_1je4a_1",Va="_label_1je4a_4",za="_input-container_1je4a_9",Qa="_keep-check-label_1je4a_56",Xa="_is-invalid_1je4a_59",de={"row-label-input":"_row-label-input_1je4a_1",rowLabelInput:Ka,label:Va,"input-container":"_input-container_1je4a_9",inputContainer:za,"keep-check-label":"_keep-check-label_1je4a_56",keepCheckLabel:Qa,"is-invalid":"_is-invalid_1je4a_59",isInvalid:Xa},X=c.forwardRef(({hidden:n,children:e,className:t,isInvalid:r,isForRadioInput:o,inputContainerClassName:a,...i},l)=>s.jsxRuntimeExports.jsxs("div",{ref:l,className:s.classNames("luminus-row-label row gx-0 gy-0",{"is-invalid":r},{[de.isInvalid]:r},{[t??""]:t},{"d-none":n},de.rowLabelInput),children:[!i.withoutLabel&&s.jsxRuntimeExports.jsx("label",{className:s.classNames("label col-6",de.label),children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"form-label",className:r?"text-danger":"",children:i.label})}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("input-container",de.inputContainer,{"col-6":!i.withoutLabel},{"col-12":i.withoutLabel},{[de.keepCheckLabel]:o},{[a??""]:a}),children:e})]}));X.displayName="RowLabelInput";const fn=c.forwardRef(({children:n,className:e,hidden:t},r)=>s.jsxRuntimeExports.jsx("div",{ref:r,className:`${t?"d-none":""} ${e}`,children:n}));fn.displayName="NoInputContainer";const Ja=({InputContainer:n=ie,label:e,value:t,onChange:r,hidden:o,disabled:a,className:i,type:l,withoutLabel:u})=>s.jsxRuntimeExports.jsx(n,{isForCheckInput:!0,hidden:o,label:e??"",withoutLabel:u,children:s.jsxRuntimeExports.jsx(B.Check,{id:`check-${e}`,type:l??"checkbox",label:e??"",checked:t,onChange:d=>{var m;r&&r(((m=d.target)==null?void 0:m.checked)??!1)},className:i??"",hidden:o??!1,disabled:a??!1})}),Za=({InputContainer:n=ie,type:e,value:t,onChange:r,debounceMs:o,label:a,withoutLabel:i,placeholder:l,size:u,hidden:d,disabled:m,showClearIcon:p,clearValue:f,list:h,className:j})=>{const g=e==="number",x=c.useCallback(()=>{if(!r)return;const E=f??null;r(g?E?Number(E):null:(E==null?void 0:E.toString())??"")},[f,g,r]),b=c.useRef(null),[_,y]=c.useState((t==null?void 0:t.toString())??""),C=c.useCallback(E=>{const v=E;r&&(g&&r(v?parseInt(v,10):null),r(v||null))},[g,r]),w=c.useCallback(E=>{var R;const v=(R=E.target)==null?void 0:R.value;if(!o){C(v);return}y(v),b.current!==null&&window.clearTimeout(b.current),b.current=window.setTimeout(()=>{C(v)},o)},[o,C]);return s.jsxRuntimeExports.jsxs(n,{withoutLabel:i,label:a??"",hidden:d,children:[s.jsxRuntimeExports.jsx(B.Control,{type:e,placeholder:l??a,size:u,value:o?_:t??"",onChange:w,className:j??"",hidden:d,disabled:m??!1,list:h}),p&&t&&r&&!m&&s.jsxRuntimeExports.jsx("div",{className:`luminus-input-remove-icon ${e!=="text"?"inset":""}`,children:s.jsxRuntimeExports.jsx(Y,{color:"secondary",size:"sm",onClick:x,children:s.jsxRuntimeExports.jsx(s.MdClear,{})})})]})},ei=({InputContainer:n=ie,value:e,options:t,onChange:r,label:o,withoutLabel:a,isNumber:i,size:l,hidden:u,disabled:d,showClearIcon:m,clearValue:p,noSortOptions:f,className:h})=>{const j=c.useCallback(()=>{if(!r)return;const g=p??null;r(i?g?Number(g):null:(g==null?void 0:g.toString())??"")},[p,i,r]);return s.jsxRuntimeExports.jsxs(n,{withoutLabel:a,label:o??"",hidden:u,children:[s.jsxRuntimeExports.jsxs(B.Select,{size:l,value:e??"",onChange:g=>{var b;if(!r)return;const x=(b=g.target)==null?void 0:b.value;i&&r(x?parseInt(x,10):null),r(x||null)},className:h??"",hidden:u,disabled:d??!1,children:[s.jsxRuntimeExports.jsx("option",{value:""}),t==null?void 0:t.sort((g,x)=>f?0:(g.name??"").localeCompare(x.name??"")).map(g=>s.jsxRuntimeExports.jsx("option",{value:g.id??"",children:g.name},g.id))]}),m&&e&&r&&!d&&s.jsxRuntimeExports.jsx("div",{className:"luminus-input-remove-icon inset",children:s.jsxRuntimeExports.jsx(Y,{color:"secondary",size:"sm",onClick:j,children:s.jsxRuntimeExports.jsx(s.MdClear,{})})})]})},ti=({InputContainer:n=ie,items:e,defaultSelection:t,onClickSelectedItem:r,onSearchQueryChange:o,texts:a,isLoading:i,isNumber:l,onSelect:u,label:d,withoutLabel:m,size:p,additionalColumns:f,hidden:h,disabled:j})=>{var E,v;const[g,x]=c.useState(t),[b,_]=c.useState(!1);c.useEffect(()=>{x(t)},[t]);const y=c.useCallback(R=>{x(R)},[]),C=c.useCallback(R=>{_(!1),y(R)},[y]);c.useEffect(()=>{u&&u(g)},[g,u]);const w=c.useRef(null);return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsxs(n,{withoutLabel:m,label:d??"",hidden:h,inputContainerClassName:s.classNames({"luminus-dropdown-select-open":b}),children:[s.jsxRuntimeExports.jsxs(B.Select,{ref:w,size:p,value:(g==null?void 0:g.id)??"",onChange:R=>x({id:l?Number(R.target.value)??null:R.target.value,name:""}),onMouseDown:R=>{R.currentTarget.focus(),R.preventDefault()},onClick:()=>{_(!0)},disabled:j&&r===void 0,className:s.classNames({"luminus-dropdown-picker-disabled":j}),hidden:h,children:[s.jsxRuntimeExports.jsx("option",{value:""}),t&&s.jsxRuntimeExports.jsx("option",{value:t.id??void 0,children:t.name&&((E=t.name)==null?void 0:E.length)>0?t.name:t.id}),g&&s.jsxRuntimeExports.jsx("option",{value:g.id??void 0,children:g.name&&((v=g.name)==null?void 0:v.length)>0?g.name:g.id})]}),w.current&&s.jsxRuntimeExports.jsx(Ne,{show:b,onCancel:()=>_(!1),items:e,currentSelection:g,onSelectionChange:C,onClickSelectedItem:r,onSearchQueryChange:o,texts:a,additionalColumns:f,isLoading:i,disabled:j,inputRef:w})]})})},ni=({InputContainer:n=X,formField:e,label:t,resetsFields:r,type:o,required:a,hidden:i,disabled:l,withoutLabel:u})=>{const{register:d,formState:m,setValue:p}=V.useFormContext(),[f,h]=c.useState(void 0);c.useEffect(()=>{const g=e.split(".");let x=m.errors;g.forEach(b=>{x!==void 0&&(x=x[b])}),h(x)},[m,e]);const j=f!==void 0;return s.jsxRuntimeExports.jsxs(n,{isForCheckInput:!0,hidden:i,label:`${t}${a?" *":""}`,isInvalid:j,withoutLabel:u,children:[s.jsxRuntimeExports.jsx(B.Check,{id:`check-${e}`,type:o??"checkbox",label:`${t}${a?" *":""}`,...d(e,{onChange:()=>{r&&r.forEach(g=>p(g,null))}}),isInvalid:j,hidden:i,disabled:l}),f&&s.jsxRuntimeExports.jsx(Z,{message:f.message})]})},si=({InputContainer:n=X,label:e,formField:t,options:r,resetsFields:o,required:a,disabled:i,hidden:l})=>{const{register:u,formState:d,setValue:m,watch:p}=V.useFormContext(),[f,h]=c.useState(void 0),j=c.useMemo(()=>r,[r]);c.useEffect(()=>{const x=t.split(".");let b=d.errors;x.forEach(_=>{b!==void 0&&(b=b[_])}),h(b)},[d,t]);const g=f!==void 0;return s.jsxRuntimeExports.jsxs(n,{isForRadioInput:!0,hidden:l,withoutLabel:!e,label:`${e}${a?" *":""}`,isInvalid:g,children:[j.map(x=>s.jsxRuntimeExports.jsx(B.Check,{id:`radio-${x.id}`,label:x.name,type:"radio",value:x.id??"",checked:p(t)===x.id,...u(t,{onChange:()=>{o&&o.forEach(b=>m(b,null))}}),isInvalid:g,hidden:l,disabled:i},x.id)),f&&s.jsxRuntimeExports.jsx(Z,{message:f.message})]})},ri=({InputContainer:n=X,formField:e,label:t,resetsFields:r,size:o,showClearIcon:a,clearValue:i,required:l,hidden:u,disabled:d,height:m,rows:p,withoutLabel:f})=>{const{register:h,formState:j,setValue:g,watch:x}=V.useFormContext(),[b,_]=c.useState(void 0),y=c.useCallback(()=>{const E=i??null;g(e,(E==null?void 0:E.toString())??"")},[i,g,e]),C=c.useCallback(()=>{const E=e.split(".");let v=j.errors;E.forEach(R=>{v!==void 0&&(v=v[R])}),_(v)},[j,e]);c.useEffect(()=>{C()},[C]);const w=b!==void 0;return s.jsxRuntimeExports.jsxs(n,{label:`${t}${l?" *":""}`,hidden:u,withoutLabel:f,isInvalid:w,children:[s.jsxRuntimeExports.jsx(B.Control,{as:"textarea",size:o,...h(e,{onChange:()=>{r&&r.forEach(E=>g(E,null))}}),isInvalid:w,hidden:u,disabled:d,rows:p,style:{height:m?`${m}px !important`:void 0,minHeight:m?`${m}px !important`:void 0}}),a&&x(e)&&s.jsxRuntimeExports.jsx("div",{className:"luminus-input-remove-icon",children:s.jsxRuntimeExports.jsx(Y,{color:"secondary",size:"sm",onClick:y,children:s.jsxRuntimeExports.jsx(s.MdClear,{})})}),b&&s.jsxRuntimeExports.jsx(Z,{message:b.message})]})},oi=({InputContainer:n=X,type:e,formField:t,label:r,placeholder:o,size:a,resetsFields:i,showClearIcon:l,clearValue:u,required:d,hidden:m,disabled:p,withoutLabel:f,list:h})=>{const{register:j,formState:g,setValue:x,watch:b}=V.useFormContext(),[_,y]=c.useState(void 0),C=c.useCallback(()=>{const v=u??null;e==="number"?x(t,v!==null?Number(v):null):x(t,(v==null?void 0:v.toString())??"")},[u,e,x,t]),w=c.useCallback(()=>{const v=t.split(".");let R=g.errors;v.forEach(O=>{R!==void 0&&(R=R[O])}),y(R)},[g,t]);c.useEffect(()=>{w()},[w]);const E=_!==void 0;return s.jsxRuntimeExports.jsxs(n,{label:`${r}${d?" *":""}`,hidden:m,withoutLabel:f,isInvalid:E,children:[s.jsxRuntimeExports.jsx(B.Control,{type:e,placeholder:o??r,size:a,...j(t,{setValueAs:v=>e==="number"?v==null?null:parseInt(v,10):v==null||v===""?null:v,onChange:()=>{i&&i.forEach(v=>x(v,null))}}),isInvalid:E,hidden:m,disabled:p,list:h}),l&&b(t)&&s.jsxRuntimeExports.jsx("div",{className:`luminus-input-remove-icon ${e!=="text"?"inset":""}`,children:s.jsxRuntimeExports.jsx(Y,{color:"secondary",size:"sm",onClick:C,children:s.jsxRuntimeExports.jsx(s.MdClear,{})})}),_&&s.jsxRuntimeExports.jsx(Z,{message:_.message})]})},ai=({InputContainer:n=X,formField:e,label:t,size:r,defaultSelection:o,resetsFields:a,isNumber:i,required:l,hidden:u,disabled:d,items:m,onSearchQueryChange:p,onClickSelectedItem:f,texts:h,isLoading:j,withoutLabel:g,additionalColumns:x})=>{const{formState:b,setValue:_,watch:y,control:C}=V.useFormContext(),[w,E]=c.useState(void 0),[v,R]=c.useState(!1),[O,N]=c.useState(!1),k=y(e),S=k===(o==null?void 0:o.id)?o==null?void 0:o.name:y(`${e}-DropdownName`),D=c.useMemo(()=>k==null?null:{id:k??null,name:S??""},[k,S]),A=c.useCallback(()=>{const I=e.split(".");let H=b.errors;I.forEach(Te=>{H!==void 0&&(H=H[Te])}),E(H)},[b,e]),q=c.useCallback(I=>{if((I==null?void 0:I.id)===k)return;if(a&&a.forEach(Te=>_(Te,null,{shouldDirty:!0,shouldValidate:O})),I===null){_(e,null,{shouldDirty:!0,shouldValidate:O}),_(`${e}-DropdownName`,null);return}let H=null;i?H=(I==null?void 0:I.id)!==null?parseInt(I.id.toString(),10):null:H=I.id===null||I.id===void 0||I.id===""?null:I.id,_(e,H,{shouldDirty:!0,shouldValidate:O}),_(`${e}-DropdownName`,I.name??"")},[_,e,O,i,a,k]),W=c.useCallback(I=>{R(!1),q(I)},[q]),U=c.useCallback(()=>{R(!1)},[]);c.useEffect(()=>{A()},[A]),c.useEffect(()=>{b.isSubmitted&&N(!0)},[b]);const $=c.useRef(null),T=w!==void 0;return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsxs(n,{label:`${t}${l?" *":""}`,hidden:u,withoutLabel:g,isInvalid:T,inputContainerClassName:s.classNames({"luminus-dropdown-select-open":v}),children:[s.jsxRuntimeExports.jsx(V.Controller,{control:C,name:e,render:()=>s.jsxRuntimeExports.jsx(B.Select,{size:r,onMouseDown:I=>{I.currentTarget.focus(),I.preventDefault()},onClick:()=>{R(!0)},ref:$,value:k??"",onChange:()=>{},isInvalid:T,hidden:u,disabled:d&&f===void 0,className:s.classNames({"luminus-dropdown-picker-disabled":d}),children:s.jsxRuntimeExports.jsx("option",{value:k,children:(S==null?void 0:S.length)>0?S:k})})}),w&&s.jsxRuntimeExports.jsx(Z,{message:w.message}),$.current&&s.jsxRuntimeExports.jsx(Ne,{show:v,onCancel:U,items:m,currentSelection:D,onSelectionChange:W,onClickSelectedItem:f,onSearchQueryChange:p,texts:h,additionalColumns:x,isLoading:j,disabled:d,inputRef:$})]})})},ii=({InputContainer:n=X,label:e,formField:t,hidden:r,required:o,placeholder:a,disabled:i,showClearIcon:l,resetsFields:u,multiple:d,accept:m,withoutLabel:p})=>{const{watch:f,setValue:h,register:j,formState:g}=V.useFormContext(),[x,b]=c.useState(void 0),_=c.useCallback(()=>{h(t,"")},[h,t]),y=c.useCallback(()=>{const w=t.split(".");let E=g.errors;w.forEach(v=>{E!==void 0&&(E=E[v])}),b(E)},[g,t]);c.useEffect(y,[y]);const C=x!==void 0;return s.jsxRuntimeExports.jsxs(n,{label:`${e}${o?"*":""}`,hidden:r,withoutLabel:p,isInvalid:C,children:[s.jsxRuntimeExports.jsx(zt,{type:"file",multiple:d,accept:m.join(", "),placeholder:a??e,isInvalid:C,hidden:r,disabled:i,...j(t,{onChange:()=>{u&&u.forEach(w=>h(w,null))}})}),l&&f(t)&&s.jsxRuntimeExports.jsx("div",{className:"luminus-input-remove-icon",children:s.jsxRuntimeExports.jsx(Y,{color:"secondary",size:"sm",onClick:_,children:s.jsxRuntimeExports.jsx(s.MdClear,{})})}),x&&s.jsxRuntimeExports.jsx(Z,{message:x.message})]})},ci=({children:n,onStorno:e})=>{const{formState:t}=V.useFormContext(),[r,o]=c.useState(!1);return c.useEffect(()=>{o(Object.keys(t.dirtyFields).length>0)},[t]),r?s.jsxRuntimeExports.jsx(an,{onStorno:e,children:n}):null},ui=({InputContainer:n=X,options:e,formField:t,label:r,size:o,resetsFields:a,isNumber:i,required:l,hidden:u,disabled:d,withoutLabel:m,noSortOptions:p})=>{const{customSelectTexts:f}=c.useContext(s.LuminusComponentsContext),{formState:h,setValue:j,watch:g,control:x}=V.useFormContext(),[b,_]=c.useState(void 0),[y,C]=c.useState(!1),[w,E]=c.useState(!1),[v,R]=c.useState(""),O=g(t),N=c.useMemo(()=>e.find($=>$.id===O)??null,[e,O]),k=c.useCallback(()=>{const $=t.split(".");let T=h.errors;$.forEach(I=>{T!==void 0&&(T=T[I])}),_(T)},[h,t]),S=c.useCallback($=>{if(($==null?void 0:$.id)===O)return;if(a&&a.forEach(I=>j(I,null,{shouldDirty:!0,shouldValidate:w})),$===null){j(t,null,{shouldDirty:!0,shouldValidate:w});return}let T=null;i?T=($==null?void 0:$.id)!==null?parseInt($.id.toString(),10):null:T=$.id===null||$.id===void 0||$.id===""?null:$.id,j(t,T,{shouldDirty:!0,shouldValidate:w})},[j,t,w,i,a,O]),D=c.useCallback($=>{C(!1),S($)},[S]),A=c.useCallback($=>{R($)},[]);c.useEffect(()=>{k()},[k]),c.useEffect(()=>{h.isSubmitted&&E(!0)},[h]);const q=c.useMemo(()=>e.map($=>({id:$.id,name:$.name})).filter($=>{var T;return v?(T=$.name)==null?void 0:T.toLowerCase().includes(v.toLowerCase()):!0}).sort(($,T)=>p?0:($.name??"").localeCompare(T.name??"")),[e,p,v]),W=c.useRef(null),U=b!==void 0;return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsxs(n,{label:`${r}${l?" *":""}`,hidden:u,withoutLabel:m,isInvalid:U,inputContainerClassName:s.classNames({"luminus-dropdown-select-open":y}),children:[s.jsxRuntimeExports.jsx(V.Controller,{control:x,name:t,render:()=>{var $;return s.jsxRuntimeExports.jsx(B.Select,{size:o,onMouseDown:T=>{T.currentTarget.focus(),T.preventDefault()},onClick:()=>{C(!0)},ref:W,value:O??"",onChange:()=>{},isInvalid:U,hidden:u,disabled:d,children:s.jsxRuntimeExports.jsx("option",{value:(N==null?void 0:N.id)??"",children:N!=null&&N.name&&(($=N==null?void 0:N.name)==null?void 0:$.length)>0?N==null?void 0:N.name:N==null?void 0:N.id})})}}),b&&s.jsxRuntimeExports.jsx(Z,{message:b.message}),W.current&&s.jsxRuntimeExports.jsx(Ne,{show:y,onCancel:()=>C(!1),items:q,currentSelection:N??null,onSelectionChange:D,onSearchQueryChange:A,texts:f,disabled:d,inputRef:W,autoHideSearch:!0,allItemsLength:e.length})]})})},li=({cell:{value:n}})=>s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:n?s.jsxRuntimeExports.jsx(s.AvatarIcon,{name:n,size:21,fontSize:12}):s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{})}),di="_tab-panel_so0nf_1",mi="_full-height-no-overflow_so0nf_5",gt={"tab-panel":"_tab-panel_so0nf_1",tabPanel:di,"full-height-no-overflow":"_full-height-no-overflow_so0nf_5",fullHeightNoOverflow:mi},pi=({eventKey:n,activeTab:e,fullHeightNoOverflow:t,className:r,children:o})=>n!==e?null:s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-tab-panel",gt.tabPanel,{[gt.fullHeightNoOverflow]:t},r),children:o}),fi=({activeTab:n,onSelect:e,children:t})=>s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-tabs d-flex gap-1 mb-2"),children:t.map(r=>{const o=r.type,a=r.props.eventKey,i=r.props.children,l=r.props.className,u=r.props.onClick;return c.createElement(o,{...r.props,key:r.props.eventKey,className:s.classNames({active:n===a},l),onClick:()=>{e(a),u&&u(a)}},i)})}),hi="_tab_gvohp_1",xi={tab:hi},gi=({eventKey:n,className:e,onClick:t,children:r})=>s.jsxRuntimeExports.jsx("div",{role:"button",className:s.classNames("luminus-tab text-primary rounded",xi.tab,e),onClick:()=>t&&t(n),children:typeof r=="string"?s.jsxRuntimeExports.jsx(L.Typography,{variant:"h6",className:"text-primary",children:r}):r});exports.AvatarIcon=s.AvatarIcon;exports.SimpleToggle=s.SimpleDropdownToggle;exports.UserAvatarToggle=s.UserAvatarToggle;exports.Loading=K.Loading;exports.Typography=L.Typography;exports.SimpleTooltip=hn.SimpleTooltip;exports.ApiFileDownloadButton=gn;exports.AppSearch=Ea;exports.AuthTemplate=Ya;exports.Backdrop=ze;exports.Badge=Io;exports.Card=Ia;exports.CheckInput=Ja;exports.Collapse=Mo;exports.ContextButton=Ke;exports.Dropdown=mn;exports.DropdownDivider=ra;exports.DropdownItem=ln;exports.DropdownPicker=ti;exports.DropdownToggle=dn;exports.FileUploadContextButton=Ve;exports.FileUploadDropdownItem=ta;exports.FloatingFormSubmit=an;exports.FloatingLabelInput=ie;exports.HomeDashboard=ko;exports.HookFormCheckInput=ni;exports.HookFormDropdownPicker=ai;exports.HookFormFileInput=ii;exports.HookFormFloatingSubmit=ci;exports.HookFormRadioInput=si;exports.HookFormSelectInput=ui;exports.HookFormTextAreaInput=ri;exports.HookFormTextInput=oi;exports.HtmlTooltip=Ha;exports.IconButton=Y;exports.InvalidFeedback=Z;exports.MonthPicker=mo;exports.NoInputContainer=fn;exports.PhotoLibrary=Ba;exports.PhotoLightbox=pn;exports.PrimaryButton=De;exports.RowLabelInput=X;exports.SelectInput=ei;exports.SimplePicker=Ne;exports.Tab=gi;exports.TabPanel=pi;exports.Tabs=fi;exports.TextInput=Za;exports.UserAvatarValueFormat=li;exports.YearPicker=po;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./UserAvatarToggle-DEb7Klk7.cjs"),c=require("react"),U=require("./EventType-DO8vvA6X.cjs"),Fe=require("./textUtils-CHVVh2oi.cjs"),L=require("./Typography-Plu1Wa0_.cjs"),we=require("./useKeyPress-BRCIx392.cjs"),hn=require("./SimpleTooltip-CjMfPKvQ.cjs"),K=require("react-hook-form");function xn(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const I=xn(c),gn=({fileLoader:n,fileName:e,children:t})=>{const r=c.useCallback(async()=>{var l;const o=await n();if(!o)return;const a=window.URL.createObjectURL(new Blob([o])),i=document.createElement("a");i.href=a,i.setAttribute("download",e),document.body.appendChild(i),i.click(),(l=i.parentNode)==null||l.removeChild(i)},[n,e]);return s.jsxRuntimeExports.jsx("div",{role:"button",onClick:r,children:t})};function jt(n,e){const t=s.toDate(n);if(isNaN(e))return s.constructFrom(n,NaN);if(!e)return t;const r=t.getDate(),o=s.constructFrom(n,t.getTime());o.setMonth(t.getMonth()+e+1,0);const a=o.getDate();return r>=a?o:(t.setFullYear(o.getFullYear(),o.getMonth(),r),t)}let jn={};function _e(){return jn}function fe(n,e){var l,u,d,m;const t=_e(),r=(e==null?void 0:e.weekStartsOn)??((u=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((m=(d=t.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??0,o=s.toDate(n),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function be(n){return fe(n,{weekStartsOn:1})}function wt(n){const e=s.toDate(n),t=e.getFullYear(),r=s.constructFrom(n,0);r.setFullYear(t+1,0,4),r.setHours(0,0,0,0);const o=be(r),a=s.constructFrom(n,0);a.setFullYear(t,0,4),a.setHours(0,0,0,0);const i=be(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=i.getTime()?t:t-1}function Qe(n){const e=s.toDate(n);return e.setHours(0,0,0,0),e}function Xe(n){const e=s.toDate(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function wn(n,e){const t=Qe(n),r=Qe(e),o=+t-Xe(t),a=+r-Xe(r);return Math.round((o-a)/Fe.millisecondsInDay)}function bn(n){const e=wt(n),t=s.constructFrom(n,0);return t.setFullYear(e,0,4),t.setHours(0,0,0,0),be(t)}function yn(n,e){return jt(n,e*12)}function vn(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function En(n){if(!vn(n)&&typeof n!="number")return!1;const e=s.toDate(n);return!isNaN(Number(e))}function _n(n){const e=s.toDate(n),t=s.constructFrom(n,0);return t.setFullYear(e.getFullYear(),0,1),t.setHours(0,0,0,0),t}const kn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Rn=(n,e,t)=>{let r;const o=kn[n];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Ie(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const Cn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Nn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Tn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},In={date:Ie({formats:Cn,defaultWidth:"full"}),time:Ie({formats:Nn,defaultWidth:"full"}),dateTime:Ie({formats:Tn,defaultWidth:"full"})},Sn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$n=(n,e,t,r)=>Sn[n];function ue(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let o;if(r==="formatting"&&n.formattingValues){const i=n.defaultFormattingWidth||n.defaultWidth,l=t!=null&&t.width?String(t.width):i;o=n.formattingValues[l]||n.formattingValues[i]}else{const i=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;o=n.values[l]||n.values[i]}const a=n.argumentCallback?n.argumentCallback(e):e;return o[a]}}const Mn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},On={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Pn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Dn={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},An={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Fn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Wn=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Ln={ordinalNumber:Wn,era:ue({values:Mn,defaultWidth:"wide"}),quarter:ue({values:On,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ue({values:Pn,defaultWidth:"wide"}),day:ue({values:Dn,defaultWidth:"wide"}),dayPeriod:ue({values:An,defaultWidth:"wide",formattingValues:Fn,defaultFormattingWidth:"wide"})};function le(n){return(e,t={})=>{const r=t.width,o=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],a=e.match(o);if(!a)return null;const i=a[0],l=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],u=Array.isArray(l)?Bn(l,p=>p.test(i)):qn(l,p=>p.test(i));let d;d=n.valueCallback?n.valueCallback(u):u,d=t.valueCallback?t.valueCallback(d):d;const m=e.slice(i.length);return{value:d,rest:m}}}function qn(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function Bn(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function Yn(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const o=r[0],a=e.match(n.parsePattern);if(!a)return null;let i=n.valueCallback?n.valueCallback(a[0]):a[0];i=t.valueCallback?t.valueCallback(i):i;const l=e.slice(o.length);return{value:i,rest:l}}}const Hn=/^(\d+)(th|st|nd|rd)?/i,Gn=/\d+/i,Un={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Kn={any:[/^b/i,/^(a|c)/i]},Vn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zn={any:[/1/i,/2/i,/3/i,/4/i]},Qn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Xn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Jn={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Zn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},es={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ts={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ns={ordinalNumber:Yn({matchPattern:Hn,parsePattern:Gn,valueCallback:n=>parseInt(n,10)}),era:le({matchPatterns:Un,defaultMatchWidth:"wide",parsePatterns:Kn,defaultParseWidth:"any"}),quarter:le({matchPatterns:Vn,defaultMatchWidth:"wide",parsePatterns:zn,defaultParseWidth:"any",valueCallback:n=>n+1}),month:le({matchPatterns:Qn,defaultMatchWidth:"wide",parsePatterns:Xn,defaultParseWidth:"any"}),day:le({matchPatterns:Jn,defaultMatchWidth:"wide",parsePatterns:Zn,defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:es,defaultMatchWidth:"any",parsePatterns:ts,defaultParseWidth:"any"})},ss={code:"en-US",formatDistance:Rn,formatLong:In,formatRelative:$n,localize:Ln,match:ns,options:{weekStartsOn:0,firstWeekContainsDate:1}};function rs(n){const e=s.toDate(n);return wn(e,_n(e))+1}function os(n){const e=s.toDate(n),t=+be(e)-+bn(e);return Math.round(t/Fe.millisecondsInWeek)+1}function bt(n,e){var m,p,f,g;const t=s.toDate(n),r=t.getFullYear(),o=_e(),a=(e==null?void 0:e.firstWeekContainsDate)??((p=(m=e==null?void 0:e.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(f=o.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,i=s.constructFrom(n,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=fe(i,e),u=s.constructFrom(n,0);u.setFullYear(r,0,a),u.setHours(0,0,0,0);const d=fe(u,e);return t.getTime()>=l.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function as(n,e){var l,u,d,m;const t=_e(),r=(e==null?void 0:e.firstWeekContainsDate)??((u=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??t.firstWeekContainsDate??((m=(d=t.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??1,o=bt(n,e),a=s.constructFrom(n,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),fe(a,e)}function is(n,e){const t=s.toDate(n),r=+fe(t,e)-+as(t,e);return Math.round(r/Fe.millisecondsInWeek)+1}function $(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const J={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return $(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):$(t+1,2)},d(n,e){return $(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return $(n.getHours()%12||12,e.length)},H(n,e){return $(n.getHours(),e.length)},m(n,e){return $(n.getMinutes(),e.length)},s(n,e){return $(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),o=Math.trunc(r*Math.pow(10,t-3));return $(o,e.length)}},re={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Je={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return J.y(n,e)},Y:function(n,e,t,r){const o=bt(n,r),a=o>0?o:1-o;if(e==="YY"){const i=a%100;return $(i,2)}return e==="Yo"?t.ordinalNumber(a,{unit:"year"}):$(a,e.length)},R:function(n,e){const t=wt(n);return $(t,e.length)},u:function(n,e){const t=n.getFullYear();return $(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return $(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return $(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return J.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return $(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const o=is(n,r);return e==="wo"?t.ordinalNumber(o,{unit:"week"}):$(o,e.length)},I:function(n,e,t){const r=os(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):$(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):J.d(n,e)},D:function(n,e,t){const r=rs(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):$(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const o=n.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return $(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const o=n.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return $(a,e.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return $(o,e.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const o=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let o;switch(r===12?o=re.noon:r===0?o=re.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let o;switch(r>=17?o=re.evening:r>=12?o=re.afternoon:r>=4?o=re.morning:o=re.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return J.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):J.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):$(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):$(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):J.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):J.s(n,e)},S:function(n,e){return J.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return et(r);case"XXXX":case"XX":return se(r);case"XXXXX":case"XXX":default:return se(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return et(r);case"xxxx":case"xx":return se(r);case"xxxxx":case"xxx":default:return se(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Ze(r,":");case"OOOO":default:return"GMT"+se(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Ze(r,":");case"zzzz":default:return"GMT"+se(r,":")}},t:function(n,e,t){const r=Math.trunc(n.getTime()/1e3);return $(r,e.length)},T:function(n,e,t){const r=n.getTime();return $(r,e.length)}};function Ze(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),o=Math.trunc(r/60),a=r%60;return a===0?t+String(o):t+String(o)+e+$(a,2)}function et(n,e){return n%60===0?(n>0?"-":"+")+$(Math.abs(n)/60,2):se(n,e)}function se(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),o=$(Math.trunc(r/60),2),a=$(r%60,2);return t+o+e+a}const tt=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},yt=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},cs=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],o=t[2];if(!o)return tt(n,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",tt(r,e)).replace("{{time}}",yt(o,e))},us={p:yt,P:cs},ls=/^D+$/,ds=/^Y+$/,ms=["D","DD","YY","YYYY"];function ps(n){return ls.test(n)}function fs(n){return ds.test(n)}function hs(n,e,t){const r=xs(n,e,t);if(console.warn(r),ms.includes(n))throw new RangeError(r)}function xs(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const gs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,js=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ws=/^'([^]*?)'?$/,bs=/''/g,ys=/[a-zA-Z]/;function vt(n,e,t){var m,p,f,g,j,h,x,E;const r=_e(),o=(t==null?void 0:t.locale)??r.locale??ss,a=(t==null?void 0:t.firstWeekContainsDate)??((p=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(f=r.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,i=(t==null?void 0:t.weekStartsOn)??((h=(j=t==null?void 0:t.locale)==null?void 0:j.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((E=(x=r.locale)==null?void 0:x.options)==null?void 0:E.weekStartsOn)??0,l=s.toDate(n);if(!En(l))throw new RangeError("Invalid time value");let u=e.match(js).map(_=>{const v=_[0];if(v==="p"||v==="P"){const N=us[v];return N(_,o.formatLong)}return _}).join("").match(gs).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const v=_[0];if(v==="'")return{isToken:!1,value:vs(_)};if(Je[v])return{isToken:!0,value:_};if(v.match(ys))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:_}});o.localize.preprocessor&&(u=o.localize.preprocessor(l,u));const d={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return u.map(_=>{if(!_.isToken)return _.value;const v=_.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&fs(v)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&ps(v))&&hs(v,e,String(n));const N=Je[v[0]];return N(l,v,o.localize,d)}).join("")}function vs(n){const e=n.match(ws);return e?e[1].replace(bs,"'"):n}var Es=function(n,e,t,r,o,a,i,l){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error("invariant requires an error message argument");if(!n){var u;if(e===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[t,r,o,a,i,l],m=0;u=new Error(e.replace(/%s/g,function(){return d[m++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}},_s=Es;const nt=s.getDefaultExportFromCjs(_s);function de(...n){return n.filter(e=>e!=null).reduce((e,t)=>{if(typeof t!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return e===null?t:function(...o){e.apply(this,o),t.apply(this,o)}},null)}const ks={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Rs(n,e){const t=`offset${n[0].toUpperCase()}${n.slice(1)}`,r=e[t],o=ks[n];return r+parseInt(s.style(e,o[0]),10)+parseInt(s.style(e,o[1]),10)}const Cs={[s.EXITED]:"collapse",[s.EXITING]:"collapsing",[s.ENTERING]:"collapsing",[s.ENTERED]:"collapse show"},Et=c.forwardRef(({onEnter:n,onEntering:e,onEntered:t,onExit:r,onExiting:o,className:a,children:i,dimension:l="height",in:u=!1,timeout:d=300,mountOnEnter:m=!1,unmountOnExit:p=!1,appear:f=!1,getDimensionValue:g=Rs,...j},h)=>{const x=typeof l=="function"?l():l,E=c.useMemo(()=>de(y=>{y.style[x]="0"},n),[x,n]),_=c.useMemo(()=>de(y=>{const k=`scroll${x[0].toUpperCase()}${x.slice(1)}`;y.style[x]=`${y[k]}px`},e),[x,e]),v=c.useMemo(()=>de(y=>{y.style[x]=null},t),[x,t]),N=c.useMemo(()=>de(y=>{y.style[x]=`${g(x,y)}px`,s.triggerBrowserReflow(y)},r),[r,g,x]),w=c.useMemo(()=>de(y=>{y.style[x]=null},o),[x,o]);return s.jsxRuntimeExports.jsx(s.TransitionWrapper,{ref:h,addEndListener:s.transitionEndListener,...j,"aria-expanded":j.role?u:null,onEnter:E,onEntering:_,onEntered:v,onExit:N,onExiting:w,childRef:i.ref,in:u,timeout:d,mountOnEnter:m,unmountOnExit:p,appear:f,children:(y,k)=>c.cloneElement(i,{...k,className:s.classNames(a,i.props.className,Cs[y],x==="width"&&"collapse-horizontal")})})});function Ns(n,e,t,r=!1){const o=s.useEventCallback(t);c.useEffect(()=>{const a=typeof n=="function"?n():n;return a.addEventListener(e,o,r),()=>a.removeEventListener(e,o,r)},[n])}const Ts=["as","disabled"];function Is(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,a;for(a=0;a<r.length;a++)o=r[a],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}function Ss(n){return!n||n.trim()==="#"}function We({tagName:n,disabled:e,href:t,target:r,rel:o,role:a,onClick:i,tabIndex:l=0,type:u}){n||(t!=null||r!=null||o!=null?n="a":n="button");const d={tagName:n};if(n==="button")return[{type:u||"button",disabled:e},d];const m=f=>{if((e||n==="a"&&Ss(t))&&f.preventDefault(),e){f.stopPropagation();return}i==null||i(f)},p=f=>{f.key===" "&&(f.preventDefault(),m(f))};return n==="a"&&(t||(t="#"),e&&(t=void 0)),[{role:a??"button",disabled:void 0,tabIndex:e?void 0:l,href:t,target:n==="a"?r:void 0,"aria-disabled":e||void 0,rel:n==="a"?o:void 0,onClick:m,onKeyDown:p},d]}const _t=I.forwardRef((n,e)=>{let{as:t,disabled:r}=n,o=Is(n,Ts);const[a,{tagName:i}]=We(Object.assign({tagName:t,disabled:r},o));return s.jsxRuntimeExports.jsx(i,Object.assign({},o,a,{ref:e}))});_t.displayName="Button";const $s=["onKeyDown"];function Ms(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,a;for(a=0;a<r.length;a++)o=r[a],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}function Os(n){return!n||n.trim()==="#"}const kt=I.forwardRef((n,e)=>{let{onKeyDown:t}=n,r=Ms(n,$s);const[o]=We(Object.assign({tagName:"a"},r)),a=s.useEventCallback(i=>{o.onKeyDown(i),t==null||t(i)});return Os(r.href)||r.role==="button"?s.jsxRuntimeExports.jsx("a",Object.assign({ref:e},r,o,{onKeyDown:a})):s.jsxRuntimeExports.jsx("a",Object.assign({ref:e},r,{onKeyDown:t}))});kt.displayName="Anchor";const Rt=I.forwardRef(({as:n,bsPrefix:e,variant:t="primary",size:r,active:o=!1,disabled:a=!1,className:i,...l},u)=>{const d=s.useBootstrapPrefix(e,"btn"),[m,{tagName:p}]=We({tagName:n,disabled:a,...l}),f=p;return s.jsxRuntimeExports.jsx(f,{...m,...l,ref:u,disabled:a,className:s.classNames(i,d,o&&"active",t&&`${d}-${t}`,r&&`${d}-${r}`,l.href&&a&&"disabled")})});Rt.displayName="Button";function Ps(n,e){return I.Children.toArray(n).some(t=>I.isValidElement(t)&&t.type===e)}function Ds({as:n,bsPrefix:e,className:t,...r}){e=s.useBootstrapPrefix(e,"col");const o=s.useBootstrapBreakpoints(),a=s.useBootstrapMinBreakpoint(),i=[],l=[];return o.forEach(u=>{const d=r[u];delete r[u];let m,p,f;typeof d=="object"&&d!=null?{span:m,offset:p,order:f}=d:m=d;const g=u!==a?`-${u}`:"";m&&i.push(m===!0?`${e}${g}`:`${e}${g}-${m}`),f!=null&&l.push(`order${g}-${f}`),p!=null&&l.push(`offset${g}-${p}`)}),[{...r,className:s.classNames(t,...i,...l)},{as:n,bsPrefix:e,spans:i}]}const Ct=I.forwardRef((n,e)=>{const[{className:t,...r},{as:o="div",bsPrefix:a,spans:i}]=Ds(n);return s.jsxRuntimeExports.jsx(o,{...r,ref:e,className:s.classNames(t,!i.length&&a)})});Ct.displayName="Col";function As(n,e,t){const r=c.useRef(n!==void 0),[o,a]=c.useState(e),i=n!==void 0,l=r.current;return r.current=i,!i&&l&&o!==e&&a(e),[i?n:o,c.useCallback((...u)=>{const[d,...m]=u;let p=t==null?void 0:t(d,...m);return a(d),p},[t])]}function Fs(){const[,n]=c.useReducer(e=>!e,!1);return n}const ke=I.createContext(null),Ws=["children","usePopper"];function Ls(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,a;for(a=0;a<r.length;a++)o=r[a],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}const qs=()=>{};function Nt(n={}){const e=c.useContext(ke),[t,r]=s.useCallbackRef(),o=c.useRef(!1),{flip:a,offset:i,rootCloseEvent:l,fixed:u=!1,placement:d,popperConfig:m={},enableEventListeners:p=!0,usePopper:f=!!e}=n,g=(e==null?void 0:e.show)==null?!!n.show:e.show;g&&!o.current&&(o.current=!0);const j=y=>{e==null||e.toggle(!1,y)},{placement:h,setMenu:x,menuElement:E,toggleElement:_}=e||{},v=s.usePopper(_,E,s.mergeOptionsWithPopperConfig({placement:d||h||"bottom-start",enabled:f,enableEvents:p??g,offset:i,flip:a,fixed:u,arrowElement:t,popperConfig:m})),N=Object.assign({ref:x||qs,"aria-labelledby":_==null?void 0:_.id},v.attributes.popper,{style:v.styles.popper}),w={show:g,placement:h,hasShown:o.current,toggle:e==null?void 0:e.toggle,popper:f?v:null,arrowProps:f?Object.assign({ref:r},v.attributes.arrow,{style:v.styles.arrow}):{}};return s.useClickOutside(E,j,{clickTrigger:l,disabled:!g}),[N,w]}function Tt(n){let{children:e,usePopper:t=!0}=n,r=Ls(n,Ws);const[o,a]=Nt(Object.assign({},r,{usePopper:t}));return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:e(o,a)})}Tt.displayName="DropdownMenu";const ye={prefix:String(Math.round(Math.random()*1e10)),current:0},It=c.createContext(ye),Bs=c.createContext(!1);let Ys=!!(typeof window<"u"&&window.document&&window.document.createElement),Se=new WeakMap;function Hs(n=!1){let e=c.useContext(It),t=c.useRef(null);if(t.current===null&&!n){var r,o;let a=(o=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let i=Se.get(a);i==null?Se.set(a,{id:e.current,state:a.memoizedState}):a.memoizedState!==i.state&&(e.current=i.id,Se.delete(a))}t.current=++e.current}return t.current}function Gs(n){let e=c.useContext(It);e===ye&&!Ys&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let t=Hs(!!n),r=e===ye&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return n||`${r}-${t}`}function Us(n){let e=c.useId(),[t]=c.useState(Xs()),r=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ye.prefix}`;return n||`${r}-${e}`}const Ks=typeof c.useId=="function"?Us:Gs;function Vs(){return!1}function zs(){return!0}function Qs(n){return()=>{}}function Xs(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(Qs,Vs,zs):c.useContext(Bs)}const St=n=>{var e;return((e=n.getAttribute("role"))==null?void 0:e.toLowerCase())==="menu"},st=()=>{};function $t(){const n=Ks(),{show:e=!1,toggle:t=st,setToggle:r,menuElement:o}=c.useContext(ke)||{},a=c.useCallback(l=>{t(!e,l)},[e,t]),i={id:n,ref:r||st,onClick:a,"aria-expanded":!!e};return o&&St(o)&&(i["aria-haspopup"]=!0),[i,{show:e,toggle:t}]}function Mt({children:n}){const[e,t]=$t();return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:n(e,t)})}Mt.displayName="DropdownToggle";const Oe=I.createContext(null),rt=(n,e=null)=>n!=null?String(n):e||null,Ot=I.createContext(null);Ot.displayName="NavContext";const Js=["eventKey","disabled","onClick","active","as"];function Zs(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,a;for(a=0;a<r.length;a++)o=r[a],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}function Pt({key:n,href:e,active:t,disabled:r,onClick:o}){const a=c.useContext(Oe),i=c.useContext(Ot),{activeKey:l}=i||{},u=rt(n,e),d=t==null&&n!=null?rt(l)===u:t;return[{onClick:s.useEventCallback(p=>{r||(o==null||o(p),a&&!p.isPropagationStopped()&&a(u,p))}),"aria-disabled":r||void 0,"aria-selected":d,[U.dataAttr("dropdown-item")]:""},{isActive:d}]}const Dt=I.forwardRef((n,e)=>{let{eventKey:t,disabled:r,onClick:o,active:a,as:i=_t}=n,l=Zs(n,Js);const[u]=Pt({key:t,href:l.href,disabled:r,onClick:o,active:a});return s.jsxRuntimeExports.jsx(i,Object.assign({},l,{ref:e},u))});Dt.displayName="DropdownItem";function ot(){const n=Fs(),e=c.useRef(null),t=c.useCallback(r=>{e.current=r,n()},[n]);return[e,t]}function xe({defaultShow:n,show:e,onSelect:t,onToggle:r,itemSelector:o=`* [${U.dataAttr("dropdown-item")}]`,focusFirstItemOnShow:a,placement:i="bottom-start",children:l}){const u=s.useWindow(),[d,m]=As(e,n,r),[p,f]=ot(),g=p.current,[j,h]=ot(),x=j.current,E=U.usePrevious(d),_=c.useRef(null),v=c.useRef(!1),N=c.useContext(Oe),w=c.useCallback((R,T,P=T==null?void 0:T.type)=>{m(R,{originalEvent:T,source:P})},[m]),y=s.useEventCallback((R,T)=>{t==null||t(R,T),w(!1,T,"select"),T.isPropagationStopped()||N==null||N(R,T)}),k=c.useMemo(()=>({toggle:w,placement:i,show:d,menuElement:g,toggleElement:x,setMenu:f,setToggle:h}),[w,i,d,g,x,f,h]);g&&E&&!d&&(v.current=g.contains(g.ownerDocument.activeElement));const C=s.useEventCallback(()=>{x&&x.focus&&x.focus()}),D=s.useEventCallback(()=>{const R=_.current;let T=a;if(T==null&&(T=p.current&&St(p.current)?"keyboard":!1),T===!1||T==="keyboard"&&!/^key.+$/.test(R))return;const P=U.qsa(p.current,o)[0];P&&P.focus&&P.focus()});c.useEffect(()=>{d?D():v.current&&(v.current=!1,C())},[d,v,C,D]),c.useEffect(()=>{_.current=null});const S=(R,T)=>{if(!p.current)return null;const P=U.qsa(p.current,o);let A=P.indexOf(R)+T;return A=Math.max(0,Math.min(A,P.length)),P[A]};return Ns(c.useCallback(()=>u.document,[u]),"keydown",R=>{var T,P;const{key:A}=R,q=R.target,W=(T=p.current)==null?void 0:T.contains(q),V=(P=j.current)==null?void 0:P.contains(q);if(/input|textarea/i.test(q.tagName)&&(A===" "||A!=="Escape"&&W||A==="Escape"&&q.type==="search")||!W&&!V||A==="Tab"&&(!p.current||!d))return;_.current=R.type;const M={originalEvent:R,source:R.type};switch(A){case"ArrowUp":{const b=S(q,-1);b&&b.focus&&b.focus(),R.preventDefault();return}case"ArrowDown":if(R.preventDefault(),!d)m(!0,M);else{const b=S(q,1);b&&b.focus&&b.focus()}return;case"Tab":s.addEventListener(q.ownerDocument,"keyup",b=>{var O;(b.key==="Tab"&&!b.target||!((O=p.current)!=null&&O.contains(b.target)))&&m(!1,M)},{once:!0});break;case"Escape":A==="Escape"&&(R.preventDefault(),R.stopPropagation()),m(!1,M);break}}),s.jsxRuntimeExports.jsx(Oe.Provider,{value:y,children:s.jsxRuntimeExports.jsx(ke.Provider,{value:k,children:l})})}xe.displayName="Dropdown";xe.Menu=Tt;xe.Toggle=Mt;xe.Item=Dt;const Le=I.createContext({});Le.displayName="DropdownContext";const At=I.forwardRef(({className:n,bsPrefix:e,as:t="hr",role:r="separator",...o},a)=>(e=s.useBootstrapPrefix(e,"dropdown-divider"),s.jsxRuntimeExports.jsx(t,{ref:a,className:s.classNames(n,e),role:r,...o})));At.displayName="DropdownDivider";const Ft=I.forwardRef(({className:n,bsPrefix:e,as:t="div",role:r="heading",...o},a)=>(e=s.useBootstrapPrefix(e,"dropdown-header"),s.jsxRuntimeExports.jsx(t,{ref:a,className:s.classNames(n,e),role:r,...o})));Ft.displayName="DropdownHeader";const Wt=I.forwardRef(({bsPrefix:n,className:e,eventKey:t,disabled:r=!1,onClick:o,active:a,as:i=kt,...l},u)=>{const d=s.useBootstrapPrefix(n,"dropdown-item"),[m,p]=Pt({key:t,href:l.href,disabled:r,onClick:o,active:a});return s.jsxRuntimeExports.jsx(i,{...l,...m,ref:u,className:s.classNames(e,d,p.isActive&&"active",r&&"disabled")})});Wt.displayName="DropdownItem";const Lt=I.forwardRef(({className:n,bsPrefix:e,as:t="span",...r},o)=>(e=s.useBootstrapPrefix(e,"dropdown-item-text"),s.jsxRuntimeExports.jsx(t,{ref:o,className:s.classNames(n,e),...r})));Lt.displayName="DropdownItemText";const Re=I.createContext(null);Re.displayName="InputGroupContext";const qt=I.createContext(null);qt.displayName="NavbarContext";function Bt(n,e){if(process.env.NODE_ENV==="production")return n;const t=c.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?nt(!1,`${e} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):nt(!1))},[e]);return s.useMergedRefs(t,n)}function Yt(n,e,t){const r=t?"top-end":"top-start",o=t?"top-start":"top-end",a=t?"bottom-end":"bottom-start",i=t?"bottom-start":"bottom-end",l=t?"right-start":"left-start",u=t?"right-end":"left-end",d=t?"left-start":"right-start",m=t?"left-end":"right-end";let p=n?i:a;return e==="up"?p=n?o:r:e==="end"?p=n?m:d:e==="start"?p=n?u:l:e==="down-centered"?p="bottom":e==="up-centered"&&(p="top"),p}const Ht=I.forwardRef(({bsPrefix:n,className:e,align:t,rootCloseEvent:r,flip:o=!0,show:a,renderOnMount:i,as:l="div",popperConfig:u,variant:d,...m},p)=>{let f=!1;const g=c.useContext(qt),j=s.useBootstrapPrefix(n,"dropdown-menu"),{align:h,drop:x,isRTL:E}=c.useContext(Le);t=t||h;const _=c.useContext(Re),v=[];if(t)if(typeof t=="object"){const R=Object.keys(t);if(process.env.NODE_ENV!=="production"&&s.warning(R.length===1,"There should only be 1 breakpoint when passing an object to `align`"),R.length){const T=R[0],P=t[T];f=P==="start",v.push(`${j}-${T}-${P}`)}}else t==="end"&&(f=!0);const N=Yt(f,x,E),[w,{hasShown:y,popper:k,show:C,toggle:D}]=Nt({flip:o,rootCloseEvent:r,show:a,usePopper:!g&&v.length===0,offset:[0,2],popperConfig:u,placement:N});if(w.ref=s.useMergedRefs(Bt(p,"DropdownMenu"),w.ref),s.useIsomorphicEffect(()=>{C&&(k==null||k.update())},[C]),!y&&!i&&!_)return null;typeof l!="string"&&(w.show=C,w.close=()=>D==null?void 0:D(!1),w.align=t);let S=m.style;return k!=null&&k.placement&&(S={...m.style,...w.style},m["x-placement"]=k.placement),s.jsxRuntimeExports.jsx(l,{...m,...w,style:S,...(v.length||g)&&{"data-bs-popper":"static"},className:s.classNames(e,j,C&&"show",f&&`${j}-end`,d&&`${j}-${d}`,...v)})});Ht.displayName="DropdownMenu";const Gt=I.forwardRef(({bsPrefix:n,split:e,className:t,childBsPrefix:r,as:o=Rt,...a},i)=>{const l=s.useBootstrapPrefix(n,"dropdown-toggle"),u=c.useContext(ke);r!==void 0&&(a.bsPrefix=r);const[d]=$t();return d.ref=s.useMergedRefs(d.ref,Bt(i,"DropdownToggle")),s.jsxRuntimeExports.jsx(o,{className:s.classNames(t,l,e&&`${l}-split`,(u==null?void 0:u.show)&&"show"),...d,...a})});Gt.displayName="DropdownToggle";const Ut=I.forwardRef((n,e)=>{const{bsPrefix:t,drop:r="down",show:o,className:a,align:i="start",onSelect:l,onToggle:u,focusFirstItemOnShow:d,as:m="div",navbar:p,autoClose:f=!0,...g}=s.useUncontrolled(n,{show:"onToggle"}),j=c.useContext(Re),h=s.useBootstrapPrefix(t,"dropdown"),x=s.useIsRTL(),E=k=>f===!1?k==="click":f==="inside"?k!=="rootClose":f==="outside"?k!=="select":!0,_=s.useEventCallback((k,C)=>{var D,S;!((D=C.originalEvent)==null||(S=D.target)==null)&&S.classList.contains("dropdown-toggle")&&C.source==="mousedown"||(C.originalEvent.currentTarget===document&&(C.source!=="keydown"||C.originalEvent.key==="Escape")&&(C.source="rootClose"),E(C.source)&&(u==null||u(k,C)))}),N=Yt(i==="end",r,x),w=c.useMemo(()=>({align:i,drop:r,isRTL:x}),[i,r,x]),y={down:h,"down-centered":`${h}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return s.jsxRuntimeExports.jsx(Le.Provider,{value:w,children:s.jsxRuntimeExports.jsx(xe,{placement:N,show:o,onSelect:l,onToggle:_,focusFirstItemOnShow:d,itemSelector:`.${h}-item:not(.disabled):not(:disabled)`,children:j?g.children:s.jsxRuntimeExports.jsx(m,{...g,ref:e,className:s.classNames(a,o&&"show",y[r])})})})});Ut.displayName="Dropdown";const he=Object.assign(Ut,{Toggle:Gt,Menu:Ht,Item:Wt,ItemText:Lt,Divider:At,Header:Ft}),er={type:s.PropTypes.string,tooltip:s.PropTypes.bool,as:s.PropTypes.elementType},Ce=I.forwardRef(({as:n="div",className:e,type:t="valid",tooltip:r=!1,...o},a)=>s.jsxRuntimeExports.jsx(n,{...o,ref:a,className:s.classNames(e,`${t}-${r?"tooltip":"feedback"}`)}));Ce.displayName="Feedback";Ce.propTypes=er;const Q=I.createContext({}),ge=I.forwardRef(({id:n,bsPrefix:e,className:t,type:r="checkbox",isValid:o=!1,isInvalid:a=!1,as:i="input",...l},u)=>{const{controlId:d}=c.useContext(Q);return e=s.useBootstrapPrefix(e,"form-check-input"),s.jsxRuntimeExports.jsx(i,{...l,ref:u,type:r,id:n||d,className:s.classNames(t,e,o&&"is-valid",a&&"is-invalid")})});ge.displayName="FormCheckInput";const ve=I.forwardRef(({bsPrefix:n,className:e,htmlFor:t,...r},o)=>{const{controlId:a}=c.useContext(Q);return n=s.useBootstrapPrefix(n,"form-check-label"),s.jsxRuntimeExports.jsx("label",{...r,ref:o,htmlFor:t||a,className:s.classNames(e,n)})});ve.displayName="FormCheckLabel";const Kt=I.forwardRef(({id:n,bsPrefix:e,bsSwitchPrefix:t,inline:r=!1,reverse:o=!1,disabled:a=!1,isValid:i=!1,isInvalid:l=!1,feedbackTooltip:u=!1,feedback:d,feedbackType:m,className:p,style:f,title:g="",type:j="checkbox",label:h,children:x,as:E="input",..._},v)=>{e=s.useBootstrapPrefix(e,"form-check"),t=s.useBootstrapPrefix(t,"form-switch");const{controlId:N}=c.useContext(Q),w=c.useMemo(()=>({controlId:n||N}),[N,n]),y=!x&&h!=null&&h!==!1||Ps(x,ve),k=s.jsxRuntimeExports.jsx(ge,{..._,type:j==="switch"?"checkbox":j,ref:v,isValid:i,isInvalid:l,disabled:a,as:E});return s.jsxRuntimeExports.jsx(Q.Provider,{value:w,children:s.jsxRuntimeExports.jsx("div",{style:f,className:s.classNames(p,y&&e,r&&`${e}-inline`,o&&`${e}-reverse`,j==="switch"&&t),children:x||s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[k,y&&s.jsxRuntimeExports.jsx(ve,{title:g,children:h}),d&&s.jsxRuntimeExports.jsx(Ce,{type:m,tooltip:u,children:d})]})})})});Kt.displayName="FormCheck";const Ee=Object.assign(Kt,{Input:ge,Label:ve}),Vt=I.forwardRef(({bsPrefix:n,type:e,size:t,htmlSize:r,id:o,className:a,isValid:i=!1,isInvalid:l=!1,plaintext:u,readOnly:d,as:m="input",...p},f)=>{const{controlId:g}=c.useContext(Q);return n=s.useBootstrapPrefix(n,"form-control"),process.env.NODE_ENV!=="production"&&s.warning(g==null||!o,"`controlId` is ignored on `<FormControl>` when `id` is specified."),s.jsxRuntimeExports.jsx(m,{...p,type:e,size:r,ref:f,readOnly:d,id:o||g,className:s.classNames(a,u?`${n}-plaintext`:n,t&&`${n}-${t}`,e==="color"&&`${n}-color`,i&&"is-valid",l&&"is-invalid")})});Vt.displayName="FormControl";const zt=Object.assign(Vt,{Feedback:Ce}),Qt=I.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},o)=>(e=s.useBootstrapPrefix(e,"form-floating"),s.jsxRuntimeExports.jsx(t,{ref:o,className:s.classNames(n,e),...r})));Qt.displayName="FormFloating";const qe=I.forwardRef(({controlId:n,as:e="div",...t},r)=>{const o=c.useMemo(()=>({controlId:n}),[n]);return s.jsxRuntimeExports.jsx(Q.Provider,{value:o,children:s.jsxRuntimeExports.jsx(e,{...t,ref:r})})});qe.displayName="FormGroup";const Xt=I.forwardRef(({as:n="label",bsPrefix:e,column:t=!1,visuallyHidden:r=!1,className:o,htmlFor:a,...i},l)=>{const{controlId:u}=c.useContext(Q);e=s.useBootstrapPrefix(e,"form-label");let d="col-form-label";typeof t=="string"&&(d=`${d} ${d}-${t}`);const m=s.classNames(o,e,r&&"visually-hidden",t&&d);return process.env.NODE_ENV!=="production"&&s.warning(u==null||!a,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),a=a||u,t?s.jsxRuntimeExports.jsx(Ct,{ref:l,as:"label",className:m,htmlFor:a,...i}):s.jsxRuntimeExports.jsx(n,{ref:l,className:m,htmlFor:a,...i})});Xt.displayName="FormLabel";const Jt=I.forwardRef(({bsPrefix:n,className:e,id:t,...r},o)=>{const{controlId:a}=c.useContext(Q);return n=s.useBootstrapPrefix(n,"form-range"),s.jsxRuntimeExports.jsx("input",{...r,type:"range",ref:o,className:s.classNames(e,n),id:t||a})});Jt.displayName="FormRange";const Zt=I.forwardRef(({bsPrefix:n,size:e,htmlSize:t,className:r,isValid:o=!1,isInvalid:a=!1,id:i,...l},u)=>{const{controlId:d}=c.useContext(Q);return n=s.useBootstrapPrefix(n,"form-select"),s.jsxRuntimeExports.jsx("select",{...l,size:t,ref:u,className:s.classNames(r,n,e&&`${n}-${e}`,o&&"is-valid",a&&"is-invalid"),id:i||d})});Zt.displayName="FormSelect";const en=I.forwardRef(({bsPrefix:n,className:e,as:t="small",muted:r,...o},a)=>(n=s.useBootstrapPrefix(n,"form-text"),s.jsxRuntimeExports.jsx(t,{...o,ref:a,className:s.classNames(e,n,r&&"text-muted")})));en.displayName="FormText";const tn=I.forwardRef((n,e)=>s.jsxRuntimeExports.jsx(Ee,{...n,ref:e,type:"switch"}));tn.displayName="Switch";const tr=Object.assign(tn,{Input:Ee.Input,Label:Ee.Label}),Be=I.forwardRef(({bsPrefix:n,className:e,children:t,controlId:r,label:o,...a},i)=>(n=s.useBootstrapPrefix(n,"form-floating"),s.jsxRuntimeExports.jsxs(qe,{ref:i,className:s.classNames(e,n),controlId:r,...a,children:[t,s.jsxRuntimeExports.jsx("label",{htmlFor:r,children:o})]})));Be.displayName="FloatingLabel";const nr={_ref:s.PropTypes.any,validated:s.PropTypes.bool,as:s.PropTypes.elementType},Ye=I.forwardRef(({className:n,validated:e,as:t="form",...r},o)=>s.jsxRuntimeExports.jsx(t,{...r,ref:o,className:s.classNames(n,e&&"was-validated")}));Ye.displayName="Form";Ye.propTypes=nr;const B=Object.assign(Ye,{Group:qe,Control:zt,Floating:Qt,Check:Ee,Switch:tr,Label:Xt,Text:en,Range:Jt,Select:Zt,FloatingLabel:Be}),Ne=I.forwardRef(({className:n,bsPrefix:e,as:t="span",...r},o)=>(e=s.useBootstrapPrefix(e,"input-group-text"),s.jsxRuntimeExports.jsx(t,{ref:o,className:s.classNames(n,e),...r})));Ne.displayName="InputGroupText";const sr=n=>s.jsxRuntimeExports.jsx(Ne,{children:s.jsxRuntimeExports.jsx(ge,{type:"checkbox",...n})}),rr=n=>s.jsxRuntimeExports.jsx(Ne,{children:s.jsxRuntimeExports.jsx(ge,{type:"radio",...n})}),nn=I.forwardRef(({bsPrefix:n,size:e,hasValidation:t,className:r,as:o="div",...a},i)=>{n=s.useBootstrapPrefix(n,"input-group");const l=c.useMemo(()=>({}),[]);return s.jsxRuntimeExports.jsx(Re.Provider,{value:l,children:s.jsxRuntimeExports.jsx(o,{ref:i,...a,className:s.classNames(r,n,e&&`${n}-${e}`,t&&"has-validation")})})});nn.displayName="InputGroup";const $e=Object.assign(nn,{Text:Ne,Radio:rr,Checkbox:sr}),He=I.forwardRef(({bsPrefix:n,variant:e,animation:t="border",size:r,as:o="div",className:a,...i},l)=>{n=s.useBootstrapPrefix(n,"spinner");const u=`${n}-${t}`;return s.jsxRuntimeExports.jsx(o,{ref:l,...i,className:s.classNames(a,u,r&&`${u}-${r}`,e&&`text-${e}`)})});He.displayName="Spinner";/*! @azure/msal-common v14.10.0 2024-05-07 */const sn="client_info_decoding_error",rn="client_info_empty_error",or="token_parsing_error",ar="null_or_empty_token",ir="endpoints_resolution_error",cr="network_error",ur="openid_config_error",lr="hash_not_deserialized",dr="invalid_state",mr="state_mismatch",pr="state_not_found",fr="nonce_mismatch",hr="auth_time_not_found",xr="max_age_transpired",gr="multiple_matching_tokens",jr="multiple_matching_accounts",wr="multiple_matching_appMetadata",br="request_cannot_be_made",yr="cannot_remove_empty_scope",vr="cannot_append_scopeset",Er="empty_input_scopeset",_r="device_code_polling_cancelled",kr="device_code_expired",Rr="device_code_unknown_error",Cr="no_account_in_silent_request",Nr="invalid_cache_record",on="invalid_cache_environment",Tr="no_account_found",Ir="no_crypto_object",Sr="unexpected_credential_type",$r="invalid_assertion",Mr="invalid_client_credential",Or="token_refresh_required",Pr="user_timeout_reached",Dr="token_claims_cnf_required_for_signedjwt",Ar="authorization_code_missing_from_server_response",Fr="binding_key_not_removed",Wr="end_session_endpoint_not_supported",Lr="key_id_missing",qr="no_network_connectivity",Br="user_canceled",Yr="missing_tenant_id_error",Hr="method_not_implemented",Gr="nested_app_auth_bridge_disabled";/*! @azure/msal-common v14.10.0 2024-05-07 */const at={[sn]:"The client info could not be parsed/decoded correctly",[rn]:"The client info was empty",[or]:"Token cannot be parsed",[ar]:"The token is null or empty",[ir]:"Endpoints cannot be resolved",[cr]:"Network request failed",[ur]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[lr]:"The hash parameters could not be deserialized",[dr]:"State was not the expected format",[mr]:"State mismatch error",[pr]:"State not found",[fr]:"Nonce mismatch error",[hr]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[xr]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[gr]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[jr]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[wr]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[br]:"Token request cannot be made without authorization code or refresh token.",[yr]:"Cannot remove null or empty scope from ScopeSet",[vr]:"Cannot append ScopeSet",[Er]:"Empty input ScopeSet cannot be processed",[_r]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[kr]:"Device code is expired.",[Rr]:"Device code stopped polling for unknown reasons.",[Cr]:"Please pass an account object, silent flow is not supported without account information",[Nr]:"Cache record object was null or undefined.",[on]:"Invalid environment when attempting to create cache entry",[Tr]:"No account found in cache for given key.",[Ir]:"No crypto object detected.",[Sr]:"Unexpected credential type.",[$r]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[Mr]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[Or]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[Pr]:"User defined timeout for device code polling reached",[Dr]:"Cannot generate a POP jwt if the token_claims are not populated",[Ar]:"Server response does not contain an authorization code to proceed",[Fr]:"Could not remove the credential's binding key from storage.",[Wr]:"The provided authority does not support logout",[Lr]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[qr]:"No network connectivity. Check your internet connection.",[Br]:"User cancelled the flow.",[Yr]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[Hr]:"This method has not been implemented",[Gr]:"The nested app auth bridge is disabled"};class Ge extends s.AuthError{constructor(e,t){super(e,t?`${at[e]}: ${t}`:at[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,Ge.prototype)}}function Pe(n,e){return new Ge(n,e)}/*! @azure/msal-common v14.10.0 2024-05-07 */function it(n,e){if(!n)throw Pe(rn);try{const t=e(n);return JSON.parse(t)}catch{throw Pe(sn)}}/*! @azure/msal-common v14.10.0 2024-05-07 */function Ur(n,e){return!!n&&!!e&&n===e.split(".")[1]}function Kr(n,e){const{oid:t,sub:r,tid:o,name:a,tfp:i,acr:l}=e,u=o||i||l||"";return{tenantId:u,localAccountId:t||r||"",name:a,isHomeTenant:Ur(u,n)}}/*! @azure/msal-common v14.10.0 2024-05-07 */const Me={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.10.0 2024-05-07 */function Vr(n){return n&&(n.tid||n.tfp||n.acr)||null}/*! @azure/msal-common v14.10.0 2024-05-07 */const zr={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.10.0 2024-05-07 */class pe{generateAccountId(){return[this.homeAccountId,this.environment].join(s.Separators.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return pe.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const t=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",t||e.tenantId||""].join(s.Separators.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,t,r){const o=new pe;t.authorityType===Me.Adfs?o.authorityType=s.CacheAccountType.ADFS_ACCOUNT_TYPE:t.protocolMode===zr.AAD?o.authorityType=s.CacheAccountType.MSSTS_ACCOUNT_TYPE:o.authorityType=s.CacheAccountType.GENERIC_ACCOUNT_TYPE;let a;e.clientInfo&&r&&(a=it(e.clientInfo,r)),o.clientInfo=e.clientInfo,o.homeAccountId=e.homeAccountId,o.nativeAccountId=e.nativeAccountId;const i=e.environment||t&&t.getPreferredCache();if(!i)throw Pe(on);o.environment=i,o.realm=(a==null?void 0:a.utid)||Vr(e.idTokenClaims)||"",o.localAccountId=(a==null?void 0:a.uid)||e.idTokenClaims.oid||e.idTokenClaims.sub||"";const l=e.idTokenClaims.preferred_username||e.idTokenClaims.upn,u=e.idTokenClaims.emails?e.idTokenClaims.emails[0]:null;if(o.username=l||u||"",o.name=e.idTokenClaims.name,o.cloudGraphHostName=e.cloudGraphHostName,o.msGraphHost=e.msGraphHost,e.tenantProfiles)o.tenantProfiles=e.tenantProfiles;else{const d=[];if(e.idTokenClaims){const m=Kr(e.homeAccountId,e.idTokenClaims);d.push(m)}o.tenantProfiles=d}return o}static createFromAccountInfo(e,t,r){var a;const o=new pe;return o.authorityType=e.authorityType||s.CacheAccountType.GENERIC_ACCOUNT_TYPE,o.homeAccountId=e.homeAccountId,o.localAccountId=e.localAccountId,o.nativeAccountId=e.nativeAccountId,o.realm=e.tenantId,o.environment=e.environment,o.username=e.username,o.name=e.name,o.cloudGraphHostName=t,o.msGraphHost=r,o.tenantProfiles=Array.from(((a=e.tenantProfiles)==null?void 0:a.values())||[]),o}static generateHomeAccountId(e,t,r,o,a){if(!(t===Me.Adfs||t===Me.Dsts)){if(e)try{const i=it(e,o.base64Decode);if(i.uid&&i.utid)return`${i.uid}.${i.utid}`}catch{}r.warning("No client info in response")}return(a==null?void 0:a.sub)||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,t,r){if(!e||!t)return!1;let o=!0;if(r){const a=e.idTokenClaims||{},i=t.idTokenClaims||{};o=a.iat===i.iat&&a.nonce===i.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&o}}/*! @azure/msal-common v14.10.0 2024-05-07 */class Ue extends s.AuthError{constructor(e,t,r,o,a,i,l,u){super(e,t,r),Object.setPrototypeOf(this,Ue.prototype),this.timestamp=o||s.Constants.EMPTY_STRING,this.traceId=a||s.Constants.EMPTY_STRING,this.correlationId=i||s.Constants.EMPTY_STRING,this.claims=l||s.Constants.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=u}}/*! @azure/msal-react v2.0.16 2024-05-07 */function ct(n,e){return!e||!e.homeAccountId&&!e.localAccountId&&!e.username?n.getActiveAccount():s.getAccountByIdentifiers(n.getAllAccounts(),e)}function Qr(n){const{instance:e,inProgress:t,logger:r}=s.useMsal(),[o,a]=c.useState(()=>ct(e,n));return c.useEffect(()=>{a(i=>{const l=ct(e,n);return pe.accountInfoIsEqual(i,l,!0)?i:(r.info("useAccount - Updating account"),l)})},[t,n,e,r]),o}/*! @azure/msal-react v2.0.16 2024-05-07 */const je={invalidInteractionType:{code:"invalid_interaction_type",desc:"The provided interaction type is invalid."},unableToFallbackToInteraction:{code:"unable_to_fallback_to_interaction",desc:"Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete."}};class ie extends s.AuthError{constructor(e,t){super(e,t),Object.setPrototypeOf(this,ie.prototype),this.name="ReactAuthError"}static createInvalidInteractionTypeError(){return new ie(je.invalidInteractionType.code,je.invalidInteractionType.desc)}static createUnableToFallbackToInteractionError(){return new ie(je.unableToFallbackToInteraction.code,je.unableToFallbackToInteraction.desc)}}/*! @azure/msal-react v2.0.16 2024-05-07 */function Xr(n,e,t){const{instance:r,inProgress:o,logger:a}=s.useMsal(),i=s.useIsAuthenticated(t),l=Qr(t),[[u,d],m]=c.useState([null,null]),p=c.useRef(!0);c.useEffect(()=>()=>{p.current=!1},[]);const f=c.useRef(o!==s.InteractionStatus.None);c.useEffect(()=>{f.current=o!==s.InteractionStatus.None},[o]);const g=c.useRef(!0);c.useEffect(()=>{if(d){g.current=!1;return}if(u){g.current=!1;return}},[d,u]);const j=c.useCallback(async(x,E)=>{const _=x||n,v=E||e;switch(_){case s.InteractionType.Popup:return a.verbose("useMsalAuthentication - Calling loginPopup"),r.loginPopup(v);case s.InteractionType.Redirect:return a.verbose("useMsalAuthentication - Calling loginRedirect"),r.loginRedirect(v).then(null);case s.InteractionType.Silent:return a.verbose("useMsalAuthentication - Calling ssoSilent"),r.ssoSilent(v);default:throw ie.createInvalidInteractionTypeError()}},[r,n,e,a]),h=c.useCallback(async(x,E)=>{const _=x||n;let v;return E?(a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"),v={...E}):e?(a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"),v={...e,scopes:e.scopes||s.OIDC_DEFAULT_SCOPES}):(a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."),v={scopes:s.OIDC_DEFAULT_SCOPES}),!v.account&&l&&(a.trace("useMsalAuthentication - acquireToken - Attaching account to request"),v.account=l),(async()=>(a.verbose("useMsalAuthentication - Calling acquireTokenSilent"),r.acquireTokenSilent(v).catch(async w=>{if(w instanceof Ue){if(f.current)throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."),ie.createUnableToFallbackToInteractionError();return a.error("useMsalAuthentication - Interaction required, falling back to interaction"),j(_,v)}throw w})))().then(w=>(p.current&&m([w,null]),w)).catch(w=>{throw p.current&&m([null,w]),w})},[r,n,e,a,l,j]);return c.useEffect(()=>{const x=r.addEventCallback(E=>{switch(E.eventType){case U.EventType.LOGIN_SUCCESS:case U.EventType.SSO_SILENT_SUCCESS:E.payload&&m([E.payload,null]);break;case U.EventType.LOGIN_FAILURE:case U.EventType.SSO_SILENT_FAILURE:E.error&&m([null,E.error]);break}});return a.verbose(`useMsalAuthentication - Registered event callback with id: ${x}`),()=>{x&&(a.verbose(`useMsalAuthentication - Removing event callback ${x}`),r.removeEventCallback(x))}},[r,a]),c.useEffect(()=>{g.current&&o===s.InteractionStatus.None&&(g.current=!1,i?l&&(a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"),h().catch(()=>{})):(a.info("useMsalAuthentication - No user is authenticated, attempting to login"),j().catch(()=>{})))},[i,l,o,j,h,a]),{login:j,acquireToken:h,result:u,error:d}}/*! @azure/msal-react v2.0.16 2024-05-07 */function Jr({interactionType:n,username:e,homeAccountId:t,localAccountId:r,authenticationRequest:o,loadingComponent:a,errorComponent:i,children:l}){const u=c.useMemo(()=>({username:e,homeAccountId:t,localAccountId:r}),[e,t,r]),d=s.useMsal(),m=Xr(n,o,u),p=s.useIsAuthenticated(u);if(m.error&&d.inProgress===s.InteractionStatus.None){if(i)return c.createElement(i,{...m});throw m.error}return p?c.createElement(c.Fragment,null,s.getChildrenOrFunction(l,m)):a&&d.inProgress!==s.InteractionStatus.None?c.createElement(a,{...d}):null}const Zr="_button_1wjon_1",eo="_filled_1wjon_7",to="_sm_1wjon_13",no="_md_1wjon_18",so="_lg_1wjon_23",oe={button:Zr,filled:eo,sm:to,md:no,lg:so},De=({variant:n="filled",color:e="primary",size:t="md",className:r,children:o,...a})=>{const{LinkComponent:i}=c.useContext(s.LuminusComponentsContext);return a.as==="link"?s.jsxRuntimeExports.jsx(i,{to:a.href??"/",className:s.classNames(`luminus-primary-button ${e} btn ${n==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${r??""}`,oe.button,oe[n],oe[t]),...a,children:o}):a.as==="button"||a.as===void 0?s.jsxRuntimeExports.jsx("button",{type:"button",className:s.classNames(`luminus-primary-button ${e} btn ${n==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${r??""}`,oe.button,oe[n],oe[t]),...a,children:o}):null},ro="_submit-container_a9slg_1",oo="_spacer_a9slg_14",ut={"submit-container":"_submit-container_a9slg_1",submitContainer:ro,spacer:oo},an=({children:n,onStorno:e})=>{const{formSubmitTexts:t}=c.useContext(s.LuminusComponentsContext);return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("div",{className:ut.spacer}),s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-floating-submit-container shadow",ut.submitContainer),children:[s.jsxRuntimeExports.jsxs(De,{as:"button",color:"primary",size:"lg",type:"submit",children:[s.jsxRuntimeExports.jsx(s.MdCheck,{}),n]}),e&&s.jsxRuntimeExports.jsxs(De,{as:"button",color:"secondary",variant:"outlined",size:"lg",onClick:e,children:[s.jsxRuntimeExports.jsx(s.MdOutlineClose,{}),t.storno]})]})]})},ao="_button_1r3i0_1",Ae={button:ao},Ke=({color:n="primary",icon:e,className:t,children:r,...o})=>{const{LinkComponent:a}=c.useContext(s.LuminusComponentsContext);return o.as==="link"?s.jsxRuntimeExports.jsxs(a,{to:o.href??"/",className:s.classNames(`luminus-context-button btn text-${n} ${t??""}`,Ae.button),...o,children:[e,r]}):o.as==="button"||o.as===void 0?s.jsxRuntimeExports.jsxs("button",{type:"button",className:s.classNames(`luminus-context-button btn text-${n} ${t??""}`,Ae.button),...o,children:[e,r]}):null},Ve=({color:n="primary",icon:e=s.jsxRuntimeExports.jsx(s.MdOutlineFileUpload,{size:12}),inputId:t="context-file-input",accept:r="*",onUpload:o,className:a,children:i,multiple:l,...u})=>{const d=m=>{m.target.files&&(o(m.target.files),m.target.value="")};return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsxs("label",{htmlFor:t,className:s.classNames(`luminus-context-button btn text-${n} ${a??""}`,Ae.button),...u,children:[e,i]}),s.jsxRuntimeExports.jsx("input",{id:t,type:"file",accept:r,onChange:d,hidden:!0,multiple:l})]})},io="_icon-button_gfs1l_1",co="_sm_gfs1l_14",uo="_md_gfs1l_19",lo="_lg_gfs1l_24",lt={"icon-button":"_icon-button_gfs1l_1",iconButton:io,sm:co,md:uo,lg:lo},Y=({type:n="button",color:e="primary",size:t="md",children:r,className:o,...a})=>s.jsxRuntimeExports.jsx("button",{type:n,className:s.classNames(`luminus-icon-button btn text-${e} ${o??""}`,lt.iconButton,lt[t]),...a,children:r}),mo=({month:n,onChangeMonth:e,locale:t})=>{const r=c.useCallback(o=>{e(jt(n,o))},[n,e]);return s.jsxRuntimeExports.jsxs("div",{className:"card d-flex flex-row align-items-center m-0 p-1 gap-2",children:[s.jsxRuntimeExports.jsx(Y,{onClick:()=>r(-1),children:s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowLeft,{})}),s.jsxRuntimeExports.jsx("div",{children:vt(n,"LLLL yyyy",{locale:t})}),s.jsxRuntimeExports.jsx(Y,{onClick:()=>r(1),children:s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowRight,{})})]})},po=({year:n,onChangeYear:e,locale:t})=>{const r=c.useCallback(o=>{e(yn(n,o))},[n,e]);return s.jsxRuntimeExports.jsxs("div",{className:"card d-flex flex-row align-items-center m-0 p-1 gap-2",children:[s.jsxRuntimeExports.jsx(Y,{onClick:()=>r(-1),children:s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowLeft,{})}),s.jsxRuntimeExports.jsx("div",{children:vt(n,"yyyy",{locale:t})}),s.jsxRuntimeExports.jsx(Y,{onClick:()=>r(1),children:s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowRight,{})})]})},fo="_widget_1sdw8_1",ho={widget:fo},dt=({onAdd:n})=>s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-empty-widget",ho.widget),children:s.jsxRuntimeExports.jsx(Y,{onClick:()=>n(0),children:s.jsxRuntimeExports.jsx(s.MdOutlineAddCircleOutline,{})})}),xo=()=>{const[n,e]=c.useState({widgets:[]});c.useEffect(()=>{const r=localStorage.getItem("dashboardConfig");r&&e(JSON.parse(r))},[]);const t=c.useCallback(r=>{e(r),localStorage.setItem("dashboardConfig",JSON.stringify(r))},[]);return{dashboardConfig:n,onChangeDashboardConfig:t}},go="_dashboard_1ikl9_1",jo="_widgets-grid_1ikl9_1",wo="_widget-wrapper_1ikl9_7",bo="_full-width_1ikl9_12",yo="_widget-edit_1ikl9_15",vo="_remove-icon_1ikl9_18",Eo="_full-width-icon_1ikl9_25",_o="_widget-edit-overlay_1ikl9_35",z={dashboard:go,"widgets-grid":"_widgets-grid_1ikl9_1",widgetsGrid:jo,"widget-wrapper":"_widget-wrapper_1ikl9_7",widgetWrapper:wo,"full-width":"_full-width_1ikl9_12",fullWidth:bo,"widget-edit":"_widget-edit_1ikl9_15",widgetEdit:yo,"remove-icon":"_remove-icon_1ikl9_18",removeIcon:vo,"full-width-icon":"_full-width-icon_1ikl9_25",fullWidthIcon:Eo,"widget-edit-overlay":"_widget-edit-overlay_1ikl9_35",widgetEditOverlay:_o},ko=({availableWidgets:n})=>{var m;const{homeDashboardTexts:e}=c.useContext(s.LuminusComponentsContext),{dashboardConfig:t,onChangeDashboardConfig:r}=xo(),[o,a]=c.useState(!1),i=c.useCallback((p,f)=>{var g,j;p===((g=t.widgets)==null?void 0:g.length)?r({...t,widgets:[...t.widgets,{widgetId:f,fullWidth:!1}]}):r({...t,widgets:((j=t.widgets)==null?void 0:j.map((h,x)=>x===p?{widgetId:f,fullWidth:!1}:h))??[]})},[t,r]),l=c.useCallback(p=>{var f,g;((f=t.widgets[p])==null?void 0:f.widgetId)===-1?r({...t,widgets:((g=t.widgets)==null?void 0:g.filter((j,h)=>h!==p))??[]}):i(p,-1)},[t,r,i]),u=c.useCallback(p=>{var f;r({...t,widgets:((f=t.widgets)==null?void 0:f.map((g,j)=>j===p?{...g,fullWidth:!g.fullWidth}:g))??[]})},[t,r]),d=c.useCallback((p,f,g)=>p?s.jsxRuntimeExports.jsxs("div",{className:s.classNames(z.widgetWrapper,{[z.widgetEdit]:o&&p.id!==-1},{[z.fullWidth]:g}),children:[o&&s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(Y,{color:"danger",onClick:()=>l(f),className:s.classNames(z.removeIcon),children:s.jsxRuntimeExports.jsx(s.MdOutlineDelete,{})}),s.jsxRuntimeExports.jsx(Y,{color:g?"danger":"primary",onClick:()=>u(f),className:s.classNames(z.fullWidthIcon),children:s.jsxRuntimeExports.jsx(s.MdOutlineExpand,{})})]}),p.id===-1?o&&s.jsxRuntimeExports.jsx("div",{className:z.widgetWrapper,children:s.jsxRuntimeExports.jsx(dt,{onAdd:j=>i(f,j)})}):p.render,p.id>-1&&o&&s.jsxRuntimeExports.jsx("div",{className:z.widgetEditOverlay})]},f):s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{}),[o,i,l,u]);return s.jsxRuntimeExports.jsxs("div",{className:z.dashboard,children:[s.jsxRuntimeExports.jsx("div",{className:"mb-3 d-flex align-items-center justify-content-end",children:s.jsxRuntimeExports.jsx(Ke,{as:"button",color:o?"success":"primary",icon:o?s.jsxRuntimeExports.jsx(s.MdOutlineCheck,{}):s.jsxRuntimeExports.jsx(s.MdOutlineEdit,{}),onClick:()=>a(!o),children:o?e.dashboardEditDone:e.dashboardEdit})}),s.jsxRuntimeExports.jsxs("div",{className:z.widgetsGrid,children:[(m=t.widgets)==null?void 0:m.map((p,f)=>d(n.find(g=>g.id===p.widgetId),f,p.fullWidth)),o&&s.jsxRuntimeExports.jsx(dt,{onAdd:p=>{var f;return i((f=t.widgets)==null?void 0:f.length,p)}})]})]})},Ro="_badge_nhser_1",Co="_sm_nhser_1",No="_md_nhser_4",To="_lg_nhser_7",mt={badge:Ro,sm:Co,md:No,lg:To},Io=({children:n,color:e="primary",size:t="md",className:r})=>s.jsxRuntimeExports.jsx("span",{className:s.classNames(`luminus-badge badge bg-${e} ${r??""}`,mt.badge,mt[t]),children:n}),So="_collapse-icon_1ahhn_1",$o="_collapsed_1ahhn_6",pt={"collapse-icon":"_collapse-icon_1ahhn_1",collapseIcon:So,collapsed:$o},Mo=({title:n,children:e,className:t,...r})=>{const o=r.controlled?!1:r.defaultOpen??!1,[a,i]=c.useState(o),l=r.controlled?r.isOpen:a;return c.useEffect(()=>{i(o)},[o]),s.jsxRuntimeExports.jsxs("div",{className:t??"",children:[s.jsxRuntimeExports.jsxs("div",{role:"button",className:"d-flex align-items-center justify-content-between pb-3 pt-2",onClick:()=>r.controlled?r.onToggle(!r.isOpen):i(!a),children:[s.jsxRuntimeExports.jsx(L.Typography,{variant:"h6",children:n}),s.jsxRuntimeExports.jsx(s.MdOutlineChevronRight,{className:s.classNames(pt.collapseIcon,{[pt.collapsed]:l})})]}),s.jsxRuntimeExports.jsx(Et,{in:l,children:s.jsxRuntimeExports.jsx("div",{children:e})}),s.jsxRuntimeExports.jsx("hr",{className:`my-0 ${l?"mt-3":""}`})]})},Oo="_feedback_esh1j_1",Po="_feedback-spacer_esh1j_8",ft={feedback:Oo,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:Po},Z=({message:n})=>s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("invalid-feedback luminus-invalid-feedback",ft.feedback),children:n}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("invalid-feedback-spacer",ft.feedbackSpacer),children:n})]});function Do(n,e,t){var r=this,o=c.useRef(null),a=c.useRef(0),i=c.useRef(null),l=c.useRef([]),u=c.useRef(),d=c.useRef(),m=c.useRef(n),p=c.useRef(!0);m.current=n;var f=typeof window<"u",g=!e&&e!==0&&f;if(typeof n!="function")throw new TypeError("Expected a function");e=+e||0;var j=!!(t=t||{}).leading,h=!("trailing"in t)||!!t.trailing,x="maxWait"in t,E="debounceOnServer"in t&&!!t.debounceOnServer,_=x?Math.max(+t.maxWait||0,e):null;c.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var v=c.useMemo(function(){var N=function(S){var R=l.current,T=u.current;return l.current=u.current=null,a.current=S,d.current=m.current.apply(T,R)},w=function(S,R){g&&cancelAnimationFrame(i.current),i.current=g?requestAnimationFrame(S):setTimeout(S,R)},y=function(S){if(!p.current)return!1;var R=S-o.current;return!o.current||R>=e||R<0||x&&S-a.current>=_},k=function(S){return i.current=null,h&&l.current?N(S):(l.current=u.current=null,d.current)},C=function S(){var R=Date.now();if(y(R))return k(R);if(p.current){var T=e-(R-o.current),P=x?Math.min(T,_-(R-a.current)):T;w(S,P)}},D=function(){if(f||E){var S=Date.now(),R=y(S);if(l.current=[].slice.call(arguments),u.current=r,o.current=S,R){if(!i.current&&p.current)return a.current=o.current,w(C,e),j?N(o.current):d.current;if(x)return w(C,e),N(o.current)}return i.current||w(C,e),d.current}};return D.cancel=function(){i.current&&(g?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,l.current=o.current=u.current=i.current=null},D.isPending=function(){return!!i.current},D.flush=function(){return i.current?k(Date.now()):d.current},D},[j,x,e,_,h,g,f,E]);return v}function Ao(n,e){return n===e}function Fo(n,e){return e}function cn(n,e,t){var r=Ao,o=c.useReducer(Fo,n),a=o[0],i=o[1],l=Do(c.useCallback(function(d){return i(d)},[i]),e,t),u=c.useRef(n);return r(u.current,n)||(l(n),u.current=n),[a,l]}const Wo="_wrapper_ov00y_1",Lo="_open_ov00y_9",qo="_dropdown_ov00y_13",Bo="_selected-button_ov00y_19",Yo="_search-input-container_ov00y_28",Ho="_search-input_ov00y_28",Go="_loading-container_ov00y_34",Uo="_items-container_ov00y_41",Ko="_header-row_ov00y_47",Vo="_item_ov00y_41",zo="_name_ov00y_66",Qo="_column-item_ov00y_71",Xo="_icon_ov00y_78",Jo="_clear-button_ov00y_86",F={wrapper:Wo,open:Lo,dropdown:qo,"selected-button":"_selected-button_ov00y_19",selectedButton:Bo,"search-input-container":"_search-input-container_ov00y_28",searchInputContainer:Yo,"search-input":"_search-input_ov00y_28",searchInput:Ho,"loading-container":"_loading-container_ov00y_34",loadingContainer:Go,"items-container":"_items-container_ov00y_41",itemsContainer:Uo,"header-row":"_header-row_ov00y_47",headerRow:Ko,item:Vo,name:zo,"column-item":"_column-item_ov00y_71",columnItem:Qo,icon:Xo,"clear-button":"_clear-button_ov00y_86",clearButton:Jo},Te=({show:n,onCancel:e,items:t,currentSelection:r,onSelectionChange:o,onClickSelectedItem:a,onSearchQueryChange:i,texts:l,additionalColumns:u,autoHideSearch:d=!1,allItemsLength:m,disabled:p,isLoading:f=!1,inputRef:g})=>{var H;const j=c.useRef(null),h=c.useRef(null),x=c.useRef(null),[E,_]=c.useState(""),[v]=cn(E,500),[,N]=c.useState(!1),w=(H=g.current)==null?void 0:H.getBoundingClientRect(),y=(w==null?void 0:w.x)??0,k=((w==null?void 0:w.x)??0)+((w==null?void 0:w.width)??0),C=(w==null?void 0:w.y)??0,D=((w==null?void 0:w.y)??0)+((w==null?void 0:w.height)??0),S=(w==null?void 0:w.width)??0,R=(w==null?void 0:w.height)??0,T=5,P=c.useMemo(()=>y?y>window.innerWidth/2:!1,[y]),A=c.useMemo(()=>C?C>window.innerHeight/2:!1,[C]);c.useEffect(()=>{var M;n&&((M=x.current)==null||M.focus())},[x,n]),c.useEffect(()=>{n||_("")},[n]),c.useEffect(()=>{i(v)},[v,i]);const q=c.useCallback(M=>{switch(M.key){case"Escape":M.stopPropagation(),e();break}},[e]),W=c.useCallback(()=>{N(M=>!M)},[]);c.useEffect(()=>(window.addEventListener("scroll",W),()=>{window.removeEventListener("scroll",W)}),[W]),c.useEffect(()=>(window.addEventListener("resize",W),()=>{window.removeEventListener("resize",W)}),[W]),we.useKeyPress(q),we.useClickOutside([j,h],e);const V=`calc(max(${S}px, ${u&&(u==null?void 0:u.length)>0?"250px":"0px"}) + ${((u==null?void 0:u.length)??0)*100}px) `;return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ze,{show:n,onClick:e}),r&&n&&!p&&s.jsxRuntimeExports.jsx("button",{ref:h,type:"button",className:s.classNames("luminus-dropdown-picker-clear-button",F.clearButton),onClick:()=>!p&&o(null),style:{top:`calc(${C}px + ${R/2}px - 12px)`,left:`calc(${y}px - 24px - 8px)`},children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"caption",className:"text-danger",children:s.jsxRuntimeExports.jsx(s.MdOutlineDelete,{size:16})})}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-dropdown-picker",F.wrapper,{[F.open]:n}),style:{top:A?`calc(${C}px - 50vh - 8px)`:`calc(${D}px + 8px)`,left:P?`calc(${k}px - ${V})`:y,right:P?`${k}px`:`calc(${y}px + ${V})`,width:V,justifyContent:A?"flex-end":"flex-start"},children:s.jsxRuntimeExports.jsxs("div",{ref:j,className:s.classNames("shadow rounded",F.dropdown),children:[r&&a&&s.jsxRuntimeExports.jsxs("button",{type:"button",onClick:()=>{e(),a(r)},className:s.classNames("selected-button",F.selectedButton),children:[s.jsxRuntimeExports.jsx("div",{className:F.name,children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"body2",children:r.name})}),s.jsxRuntimeExports.jsx("div",{className:F.icon,children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"caption",className:"text-primary align-items-center",children:s.jsxRuntimeExports.jsx(s.MdOutlineArrowOutward,{})})})]}),!p&&s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[d&&(m??t.length)<=T?null:s.jsxRuntimeExports.jsx("div",{className:s.classNames("search-input-container border-bottom",F.searchInputContainer),children:s.jsxRuntimeExports.jsx(B.Control,{ref:x,type:"search",size:"sm",className:F.searchInput,placeholder:l.searchPlaceholder,value:E,onChange:M=>{var b;return _(((b=M.target)==null?void 0:b.value)??"")}})}),f?s.jsxRuntimeExports.jsx("div",{className:F.loadingContainer,children:s.jsxRuntimeExports.jsx(He,{animation:"border",variant:"primary"})}):t.length>0&&s.jsxRuntimeExports.jsxs("div",{className:s.classNames("items",F.itemsContainer),children:[u&&u.length>0&&s.jsxRuntimeExports.jsxs("div",{className:s.classNames("header-row border-bottom",F.headerRow),children:[s.jsxRuntimeExports.jsx("div",{className:F.name}),u==null?void 0:u.map(M=>s.jsxRuntimeExports.jsx("div",{className:F.columnItem,children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"caption",children:M.name})},M.key))]}),t==null?void 0:t.map(M=>s.jsxRuntimeExports.jsxs("button",{type:"button",className:s.classNames("item cursor-pointer",F.item),onClick:()=>!p&&o(M),children:[s.jsxRuntimeExports.jsx("div",{className:F.name,children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"body2",children:M.name})}),u==null?void 0:u.map(b=>s.jsxRuntimeExports.jsx("div",{className:F.columnItem,children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"caption",className:s.classNames("text-muted"),children:M.additionalColumns&&M.additionalColumns[b.key]})},b.key))]},M.id))]})]})]})})]})};function Zo(n){return s.GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(n)}const ea="_item_1dy8x_1",un={item:ea},ln=({color:n="primary",icon:e,className:t,children:r,...o})=>s.jsxRuntimeExports.jsxs(he.Item,{className:s.classNames(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${t??""}`,un.item),...o,children:[e,r]}),dn=n=>s.jsxRuntimeExports.jsx(he.Toggle,{...n}),ta=({color:n="primary",icon:e=s.jsxRuntimeExports.jsx(s.MdOutlineFileUpload,{size:12}),inputId:t="context-file-input",accept:r="*",onUpload:o,multiple:a,className:i,children:l,...u})=>{const d=m=>{m.target.files&&(o(m.target.files),m.target.value="")};return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsxs("label",{htmlFor:t,className:s.classNames(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${i??""}`,un.item),...u,children:[e,l]}),s.jsxRuntimeExports.jsx("input",{id:t,type:"file",accept:r,onChange:d,hidden:!0,multiple:a})]})},na="_divider_1e6rk_1",sa={divider:na},ra=({className:n})=>s.jsxRuntimeExports.jsx(he.Divider,{className:s.classNames("luminus-dropdown-divider",n,sa.divider)}),oa="_dropdown_1lk66_1",aa={dropdown:oa},mn=({toggle:n,children:e,...t})=>s.jsxRuntimeExports.jsxs(he,{...t,children:[n,s.jsxRuntimeExports.jsx(he.Menu,{className:s.classNames("luminus-dropdown rounded shadow",aa.dropdown),children:e})]}),ia=({searchTypes:n,selectedType:e,setSelectedType:t})=>s.jsxRuntimeExports.jsx(mn,{toggle:s.jsxRuntimeExports.jsx(dn,{as:s.SimpleDropdownToggle,icon:null,text:e==null?void 0:e.text}),children:n.map(r=>s.jsxRuntimeExports.jsx(ln,{icon:null,onClick:()=>t(r),children:r.text},r.key))}),ca="_dropdown_1ddrg_1",ua="_open_1ddrg_12",la="_loading-container_1ddrg_15",da="_groups-container_1ddrg_22",ma="_group_1ddrg_22",pa="_header_1ddrg_26",fa="_item_1ddrg_33",te={dropdown:ca,open:ua,"loading-container":"_loading-container_1ddrg_15",loadingContainer:la,"groups-container":"_groups-container_1ddrg_22",groupsContainer:da,group:ma,header:pa,item:fa},ha=({show:n,query:e,onCancel:t,groups:r,isLoading:o,searchTypes:a})=>{const{LinkComponent:i,appSearchTexts:l}=c.useContext(s.LuminusComponentsContext),u=c.useRef(null),d=c.useCallback(m=>{var f;const p=(f=a.find(g=>g.key===m.type))==null?void 0:f.toPath;return p?`${p}/${m.searchKey}`:"/not-found"},[a]);return we.useClickOutside([u],t),s.jsxRuntimeExports.jsx("div",{ref:u,className:s.classNames("luminus-app-search-dropdown shadow rounded",te.dropdown,{[te.open]:n}),children:o?s.jsxRuntimeExports.jsx("div",{className:te.loadingContainer,children:s.jsxRuntimeExports.jsx(He,{animation:"border",variant:"primary"})}):s.jsxRuntimeExports.jsx("div",{className:te.groupsContainer,children:r==null?void 0:r.map(m=>{var p;return s.jsxRuntimeExports.jsxs("div",{className:s.classNames(te.group),children:[s.jsxRuntimeExports.jsxs(i,{to:`/search?query=${e}&type=${m.key.category}`,className:s.classNames("group-header",te.header),onClick:t,children:[s.jsxRuntimeExports.jsx(L.Typography,{variant:"body",className:"text-primary",children:m.key.categoryName}),s.jsxRuntimeExports.jsxs(L.Typography,{variant:"caption",children:[m.items.length," ",l.amountFrom," ",m.key.totalCount]})]}),(p=m.items)==null?void 0:p.map((f,g)=>s.jsxRuntimeExports.jsxs(i,{to:d(f),className:s.classNames("search-item d-flex gap-3 align-items-center justify-content-between",te.item),onClick:t,children:[s.jsxRuntimeExports.jsx(L.Typography,{variant:"body2",className:"text-nowrap text-truncate",children:f.name}),s.jsxRuntimeExports.jsx(L.Typography,{variant:"caption",className:"text-primary",children:s.jsxRuntimeExports.jsx(s.MdOutlineArrowOutward,{})})]},g))]},m.key.category)})})})},xa="_input-group_1lkfy_1",ga="_input-group-text_1lkfy_5",ja="_left_1lkfy_9",wa="_right_1lkfy_13",ba="_input_1lkfy_1",ya="_submit-button_1lkfy_20",ne={"input-group":"_input-group_1lkfy_1",inputGroup:xa,"input-group-text":"_input-group-text_1lkfy_5",inputGroupText:ga,left:ja,right:wa,input:ba,"submit-button":"_submit-button_1lkfy_20",submitButton:ya},va=(n,e)=>{const t=s.useAxios(),[r,o]=c.useState(!1),[a,i]=c.useState([]),l=!n||!n.key,u=c.useCallback(()=>{if(e.length<3){i([]);return}o(!0),t.get(`/search/${e}?count=${l?5:20}${l?"":`&type=${n.key}`}`).then(({data:d})=>{i(d),o(!1)}).catch(()=>{o(!1)})},[n,e,t,l]);return c.useEffect(()=>{u()},[u]),{isLoading:r,searchItems:a}},Ea=({searchTypes:n,navigateFunction:e})=>{const{appSearchTexts:t}=c.useContext(s.LuminusComponentsContext),[r,o]=c.useState(n.length>0?n[0]:null),[a,i]=c.useState(""),[l,u]=cn(a,500),{isLoading:d,searchItems:m}=va(r,l),[p,f]=c.useState(!1);return c.useEffect(()=>{(m.length>0||d)&&f(!0)},[m,d]),s.jsxRuntimeExports.jsx(B,{onSubmit:g=>{g.preventDefault(),g.stopPropagation(),u.flush(),f(!1),a.length>2&&e(`/search?query=${a}${r&&r.key&&`&type=${r==null?void 0:r.key}`}`)},children:s.jsxRuntimeExports.jsxs($e,{className:ne.inputGroup,children:[s.jsxRuntimeExports.jsx($e.Text,{className:s.classNames("p-1 rounded",ne.inputGroupText,ne.left),children:s.jsxRuntimeExports.jsx(ia,{searchTypes:n,selectedType:r,setSelectedType:o})}),s.jsxRuntimeExports.jsx(B.Control,{placeholder:t.searchPlaceholder,type:"text",size:"sm",className:s.classNames("luminus-app-search-input",ne.input),value:a,onChange:g=>{var j;return i(((j=g.target)==null?void 0:j.value)??"")},onFocus:()=>m.length>0&&f(!0)}),s.jsxRuntimeExports.jsx($e.Text,{className:s.classNames("p-0 rounded",ne.inputGroupText,ne.right),children:s.jsxRuntimeExports.jsx("button",{type:"submit",className:s.classNames("text-primary",ne.submitButton),children:s.jsxRuntimeExports.jsx(Zo,{})})}),s.jsxRuntimeExports.jsx(ha,{query:l,searchTypes:n,show:p,onCancel:()=>f(!1),groups:m,isLoading:d})]})})},_a="_card_1459b_1",ka="_header_1459b_6",Ra="_header-content_1459b_13",Ca="_collapse-icon_1459b_19",Na="_collapsed_1459b_24",Ta="_content_1459b_27",ae={card:_a,header:ka,"header-content":"_header-content_1459b_13",headerContent:Ra,"collapse-icon":"_collapse-icon_1459b_19",collapseIcon:Ca,collapsed:Na,content:Ta},Ia=({title:n,headerContent:e,children:t,className:r,headerClassName:o,contentClassName:a,...i})=>{const l=i.collapsible?i.controlled?!1:i.defaultOpen??!1:!0,[u,d]=c.useState(l),m=i.collapsible?i.controlled?i.isOpen:u:!0;return c.useEffect(()=>{d(l)},[l]),s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-card rounded shadow-sm",ae.card,{[r??""]:r}),children:[s.jsxRuntimeExports.jsxs("div",{role:i.collapsible?"button":void 0,className:s.classNames("header",ae.header,{[o??""]:o}),onClick:()=>{i.collapsible&&(i.controlled?i.onToggle(!i.isOpen):d(!u))},children:[s.jsxRuntimeExports.jsxs("div",{className:s.classNames("header-content",ae.headerContent),children:[s.jsxRuntimeExports.jsx(L.Typography,{variant:"h6",className:"text-primary",children:n}),e??null]}),i.collapsible&&s.jsxRuntimeExports.jsx(s.MdOutlineChevronRight,{className:s.classNames(ae.collapseIcon,{[ae.collapsed]:m})})]}),s.jsxRuntimeExports.jsx(Et,{in:m,children:s.jsxRuntimeExports.jsx("div",{className:s.classNames("card-content border-top border-primary",ae.content,{[a??""]:a}),children:t})})]})},Sa="_lightbox_1mwxl_1",$a="_show_1mwxl_16",Ma="_header_1mwxl_20",Oa="_photo-actions_1mwxl_26",Pa="_photo-container_1mwxl_31",Da="_photo_1mwxl_26",Aa="_nav-button_1mwxl_41",Fa="_photos-preview_1mwxl_49",Wa="_selected_1mwxl_61",G={lightbox:Sa,show:$a,header:Ma,"photo-actions":"_photo-actions_1mwxl_26",photoActions:Oa,"photo-container":"_photo-container_1mwxl_31",photoContainer:Pa,photo:Da,"nav-button":"_nav-button_1mwxl_41",navButton:Aa,"photos-preview":"_photos-preview_1mwxl_49",photosPreview:Fa,selected:Wa},La="_backdrop_1sik0_1",qa="_show_1sik0_11",ht={backdrop:La,show:qa},ze=({show:n,onClick:e})=>s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-backdrop",ht.backdrop,{[ht.show]:n}),onClick:()=>e&&e()}),pn=({show:n,onClose:e,photos:t,defaultIndex:r,uploadPhotosText:o,onUploadPhotos:a,photoActions:i})=>{const l=c.useRef(null),[u,d]=c.useState(r),m=t.at(u),p=u>0,f=u<t.length-1;c.useEffect(()=>{n&&d(r)},[r,n]),c.useEffect(()=>{u>=t.length&&d(t.length-1)},[t,u]);const g=c.useCallback(j=>{switch(j.key){case"ArrowLeft":j.stopPropagation(),p&&d(h=>h-1);break;case"ArrowRight":j.stopPropagation(),f&&d(h=>h+1);break;case"Escape":j.stopPropagation(),e();break}},[f,p,e]);return we.useKeyPress(g),t.length===0?null:s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ze,{show:n,onClick:e}),s.jsxRuntimeExports.jsxs("div",{ref:l,className:s.classNames("luminus-lightbox rounded shadow",G.lightbox,{[G.show]:n}),children:[s.jsxRuntimeExports.jsxs("div",{className:G.header,children:[s.jsxRuntimeExports.jsxs("div",{className:s.classNames("rounded",G.photoActions),children:[a&&s.jsxRuntimeExports.jsx(Ve,{accept:".jpg,.jpeg,.png",onUpload:j=>{j.length>0&&a(Array.from(j))},icon:s.jsxRuntimeExports.jsx(s.MdOutlineCameraAlt,{style:{fontSize:18}}),multiple:!0,className:"me-3",children:o??null}),m&&(i==null?void 0:i.map(({label:j,onClick:h,...x},E)=>s.jsxRuntimeExports.jsx(Ke,{onClick:()=>h(m.id),...x,children:j},`action-${E}`)))]}),s.jsxRuntimeExports.jsx("div",{role:"button",onClick:e,children:s.jsxRuntimeExports.jsx(s.MdClear,{style:{fontSize:"32px"}})})]}),m&&s.jsxRuntimeExports.jsxs("div",{className:G.photoContainer,children:[s.jsxRuntimeExports.jsx("div",{role:p?"button":void 0,className:s.classNames("align-items-start",G.navButton),onClick:()=>p&&d(j=>j-1),children:p&&s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowLeft,{style:{fontSize:"40px"}})}),s.jsxRuntimeExports.jsx("img",{src:m.lgSrc,alt:m.alt,className:s.classNames("rounded",G.photo)}),s.jsxRuntimeExports.jsx("div",{role:f?"button":void 0,className:s.classNames("align-items-end",G.navButton),onClick:()=>f&&d(j=>j+1),children:f&&s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowRight,{style:{fontSize:"40px"}})})]}),s.jsxRuntimeExports.jsx("div",{className:G.photosPreview,children:t.map((j,h)=>s.jsxRuntimeExports.jsx("img",{role:h!==u?"button":void 0,src:j.smSrc,alt:j.alt,className:s.classNames("rounded",G.photo,{[G.selected]:h===u}),onClick:()=>d(h)},j.id))})]})]})},Ba=({photos:n,onUploadPhotos:e,uploadPhotosText:t,photoActions:r})=>{const[o,a]=c.useState(null),i=o!==null?n[o]:null,[l,u]=c.useState(!1);return c.useEffect(()=>{if(n.length===0){a(null),u(!1);return}const d=n.findIndex(m=>m.isDefault);a(d>-1?d:0)},[n]),i?s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("img",{role:"button",src:i.smSrc,alt:i.alt,className:"rounded w-100",onClick:()=>u(!0)}),s.jsxRuntimeExports.jsx(pn,{show:l,onClose:()=>u(!1),photos:n,defaultIndex:o??0,uploadPhotosText:t,onUploadPhotos:e,photoActions:r})]}):e?s.jsxRuntimeExports.jsx(Ve,{accept:".jpg,.jpeg,.png",onUpload:d=>{d.length>0&&e(Array.from(d))},icon:s.jsxRuntimeExports.jsx(s.MdOutlineCameraAlt,{style:{fontSize:18}}),multiple:!0,children:t??null}):null},Ya=({children:n})=>{const{NavigateComponent:e}=c.useContext(s.LuminusComponentsContext),{useMsal:t,msalScopes:r}=c.useContext(s.AuthContext),{isAuthenticated:o}=s.useAuth(),{user:a}=c.useContext(s.UserContext);return t?s.jsxRuntimeExports.jsx(Jr,{interactionType:s.InteractionType.Popup,authenticationRequest:{scopes:r},children:a&&n}):!o()||!a?s.jsxRuntimeExports.jsx(e,{to:"/login",replace:!0}):n},Ha=({heading:n,content:e,placement:t,children:r,trigger:o})=>s.jsxRuntimeExports.jsx(s.OverlayTrigger,{placement:t,overlay:s.jsxRuntimeExports.jsxs(s.Popover,{className:"luminus-tooltip",children:[s.jsxRuntimeExports.jsx(s.Popover.Header,{as:"h3",children:n}),s.jsxRuntimeExports.jsx(s.Popover.Body,{children:e})]}),trigger:o??"hover",rootClose:!0,children:r}),Ga="_floating-label_131i6_1",Ua="_without-label_131i6_21",xt={"floating-label":"_floating-label_131i6_1",floatingLabel:Ga,"without-label":"_without-label_131i6_21",withoutLabel:Ua},ce=c.forwardRef(({hidden:n,children:e,className:t,isInvalid:r,isForRadioInput:o,inputContainerClassName:a,isForCheckInput:i,...l},u)=>i?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:e}):s.jsxRuntimeExports.jsx(Be,{ref:u,label:l.withoutLabel?"":l.label,hidden:n??!1,className:s.classNames(`luminus-floating-label ${t??""}`,xt.floatingLabel,{[a??""]:a},{[xt.withoutLabel]:l.withoutLabel}),children:e}));ce.displayName="FloatingLabelInput";const Ka="_row-label-input_1je4a_1",Va="_label_1je4a_4",za="_input-container_1je4a_9",Qa="_keep-check-label_1je4a_56",Xa="_is-invalid_1je4a_59",me={"row-label-input":"_row-label-input_1je4a_1",rowLabelInput:Ka,label:Va,"input-container":"_input-container_1je4a_9",inputContainer:za,"keep-check-label":"_keep-check-label_1je4a_56",keepCheckLabel:Qa,"is-invalid":"_is-invalid_1je4a_59",isInvalid:Xa},X=c.forwardRef(({hidden:n,children:e,className:t,isInvalid:r,isForRadioInput:o,inputContainerClassName:a,...i},l)=>s.jsxRuntimeExports.jsxs("div",{ref:l,className:s.classNames("luminus-row-label row gx-0 gy-0",{"is-invalid":r},{[me.isInvalid]:r},{[t??""]:t},{"d-none":n},me.rowLabelInput),children:[!i.withoutLabel&&s.jsxRuntimeExports.jsx("label",{className:s.classNames("label col-6",me.label),children:s.jsxRuntimeExports.jsx(L.Typography,{variant:"form-label",className:r?"text-danger":"",children:i.label})}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("input-container",me.inputContainer,{"col-6":!i.withoutLabel},{"col-12":i.withoutLabel},{[me.keepCheckLabel]:o},{[a??""]:a}),children:e})]}));X.displayName="RowLabelInput";const fn=c.forwardRef(({children:n,className:e,hidden:t},r)=>s.jsxRuntimeExports.jsx("div",{ref:r,className:`${t?"d-none":""} ${e}`,children:n}));fn.displayName="NoInputContainer";const Ja=({InputContainer:n=ce,label:e,value:t,onChange:r,hidden:o,disabled:a,className:i,type:l,withoutLabel:u})=>s.jsxRuntimeExports.jsx(n,{isForCheckInput:!0,hidden:o,label:e??"",withoutLabel:u,children:s.jsxRuntimeExports.jsx(B.Check,{id:`check-${e}`,type:l??"checkbox",label:e??"",checked:t,onChange:d=>{var m;r&&r(((m=d.target)==null?void 0:m.checked)??!1)},className:i??"",hidden:o??!1,disabled:a??!1})}),Za=({InputContainer:n=ce,type:e,value:t,onChange:r,debounceMs:o,label:a,withoutLabel:i,placeholder:l,size:u,hidden:d,disabled:m,showClearIcon:p,clearValue:f,list:g,className:j})=>{const h=e==="number",x=c.useCallback(()=>{if(!r)return;const y=f??null;r(h?y?Number(y):null:(y==null?void 0:y.toString())??"")},[f,h,r]),E=c.useRef(null),[_,v]=c.useState((t==null?void 0:t.toString())??""),N=c.useCallback(y=>{const k=y;r&&(h&&r(k?parseInt(k,10):null),r(k||null))},[h,r]),w=c.useCallback(y=>{var C;const k=(C=y.target)==null?void 0:C.value;if(!o){N(k);return}v(k),E.current!==null&&window.clearTimeout(E.current),E.current=window.setTimeout(()=>{N(k)},o)},[o,N]);return s.jsxRuntimeExports.jsxs(n,{withoutLabel:i,label:a??"",hidden:d,children:[s.jsxRuntimeExports.jsx(B.Control,{type:e,placeholder:l??a,size:u,value:o?_:t??"",onChange:w,className:j??"",hidden:d,disabled:m??!1,list:g}),p&&t&&r&&!m&&s.jsxRuntimeExports.jsx("div",{className:`luminus-input-remove-icon ${e!=="text"?"inset":""}`,children:s.jsxRuntimeExports.jsx(Y,{color:"secondary",size:"sm",onClick:x,children:s.jsxRuntimeExports.jsx(s.MdClear,{})})})]})},ei=({InputContainer:n=ce,value:e,options:t,onChange:r,label:o,withoutLabel:a,isNumber:i,size:l,hidden:u,disabled:d,showClearIcon:m,clearValue:p,noSortOptions:f,className:g})=>{const j=c.useCallback(()=>{if(!r)return;const h=p??null;r(i?h?Number(h):null:(h==null?void 0:h.toString())??"")},[p,i,r]);return s.jsxRuntimeExports.jsxs(n,{withoutLabel:a,label:o??"",hidden:u,children:[s.jsxRuntimeExports.jsxs(B.Select,{size:l,value:e??"",onChange:h=>{var E;if(!r)return;const x=(E=h.target)==null?void 0:E.value;i&&r(x?parseInt(x,10):null),r(x||null)},className:g??"",hidden:u,disabled:d??!1,children:[s.jsxRuntimeExports.jsx("option",{value:""}),t==null?void 0:t.sort((h,x)=>f?0:(h.name??"").localeCompare(x.name??"")).map(h=>s.jsxRuntimeExports.jsx("option",{value:h.id??"",children:h.name},h.id))]}),m&&e&&r&&!d&&s.jsxRuntimeExports.jsx("div",{className:"luminus-input-remove-icon inset",children:s.jsxRuntimeExports.jsx(Y,{color:"secondary",size:"sm",onClick:j,children:s.jsxRuntimeExports.jsx(s.MdClear,{})})})]})},ti=({InputContainer:n=ce,items:e,defaultSelection:t,onClickSelectedItem:r,onSearchQueryChange:o,texts:a,isLoading:i,isNumber:l,onSelect:u,label:d,withoutLabel:m,size:p,additionalColumns:f,hidden:g,disabled:j})=>{var y,k;const[h,x]=c.useState(t),[E,_]=c.useState(!1);c.useEffect(()=>{x(t)},[t]);const v=c.useCallback(C=>{x(C)},[]),N=c.useCallback(C=>{_(!1),v(C)},[v]);c.useEffect(()=>{u&&u(h)},[h,u]);const w=c.useRef(null);return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsxs(n,{withoutLabel:m,label:d??"",hidden:g,inputContainerClassName:s.classNames({"luminus-dropdown-select-open":E}),children:[s.jsxRuntimeExports.jsxs(B.Select,{ref:w,size:p,value:(h==null?void 0:h.id)??"",onChange:C=>x({id:l?Number(C.target.value)??null:C.target.value,name:""}),onMouseDown:C=>{C.currentTarget.focus(),C.preventDefault()},onClick:()=>{_(!0)},disabled:j&&r===void 0,className:s.classNames({"luminus-dropdown-picker-disabled":j}),hidden:g,children:[s.jsxRuntimeExports.jsx("option",{value:""}),t&&s.jsxRuntimeExports.jsx("option",{value:t.id??void 0,children:t.name&&((y=t.name)==null?void 0:y.length)>0?t.name:t.id}),h&&s.jsxRuntimeExports.jsx("option",{value:h.id??void 0,children:h.name&&((k=h.name)==null?void 0:k.length)>0?h.name:h.id})]}),w.current&&s.jsxRuntimeExports.jsx(Te,{show:E,onCancel:()=>_(!1),items:e,currentSelection:h,onSelectionChange:N,onClickSelectedItem:r,onSearchQueryChange:o,texts:a,additionalColumns:f,isLoading:i,disabled:j,inputRef:w})]})})},ni=({InputContainer:n=X,formField:e,label:t,resetsFields:r,type:o,required:a,hidden:i,disabled:l,withoutLabel:u})=>{const{register:d,formState:m,setValue:p}=K.useFormContext(),[f,g]=c.useState(void 0);c.useEffect(()=>{const h=e.split(".");let x=m.errors;h.forEach(E=>{x!==void 0&&(x=x[E])}),g(x)},[m,e]);const j=f!==void 0;return s.jsxRuntimeExports.jsxs(n,{isForCheckInput:!0,hidden:i,label:`${t}${a?" *":""}`,isInvalid:j,withoutLabel:u,children:[s.jsxRuntimeExports.jsx(B.Check,{id:`check-${e}`,type:o??"checkbox",label:`${t}${a?" *":""}`,...d(e,{onChange:()=>{r&&r.forEach(h=>p(h,null))}}),isInvalid:j,hidden:i,disabled:l}),f&&s.jsxRuntimeExports.jsx(Z,{message:f.message})]})},si=({InputContainer:n=X,label:e,formField:t,options:r,resetsFields:o,required:a,disabled:i,hidden:l})=>{const{register:u,formState:d,setValue:m,watch:p}=K.useFormContext(),[f,g]=c.useState(void 0),j=c.useMemo(()=>r,[r]);c.useEffect(()=>{const x=t.split(".");let E=d.errors;x.forEach(_=>{E!==void 0&&(E=E[_])}),g(E)},[d,t]);const h=f!==void 0;return s.jsxRuntimeExports.jsxs(n,{isForRadioInput:!0,hidden:l,withoutLabel:!e,label:`${e}${a?" *":""}`,isInvalid:h,children:[j.map(x=>s.jsxRuntimeExports.jsx(B.Check,{id:`radio-${x.id}`,label:x.name,type:"radio",value:x.id??"",checked:p(t)===x.id,...u(t,{onChange:()=>{o&&o.forEach(E=>m(E,null))}}),isInvalid:h,hidden:l,disabled:i},x.id)),f&&s.jsxRuntimeExports.jsx(Z,{message:f.message})]})},ri=({InputContainer:n=X,formField:e,label:t,resetsFields:r,size:o,showClearIcon:a,clearValue:i,required:l,hidden:u,disabled:d,height:m,rows:p,withoutLabel:f})=>{const{register:g,formState:j,setValue:h,watch:x}=K.useFormContext(),[E,_]=c.useState(void 0),v=c.useCallback(()=>{const y=i??null;h(e,(y==null?void 0:y.toString())??"")},[i,h,e]),N=c.useCallback(()=>{const y=e.split(".");let k=j.errors;y.forEach(C=>{k!==void 0&&(k=k[C])}),_(k)},[j,e]);c.useEffect(()=>{N()},[N]);const w=E!==void 0;return s.jsxRuntimeExports.jsxs(n,{label:`${t}${l?" *":""}`,hidden:u,withoutLabel:f,isInvalid:w,children:[s.jsxRuntimeExports.jsx(B.Control,{as:"textarea",size:o,...g(e,{onChange:()=>{r&&r.forEach(y=>h(y,null))}}),isInvalid:w,hidden:u,disabled:d,rows:p,style:{height:m?`${m}px !important`:void 0,minHeight:m?`${m}px !important`:void 0}}),a&&x(e)&&s.jsxRuntimeExports.jsx("div",{className:"luminus-input-remove-icon",children:s.jsxRuntimeExports.jsx(Y,{color:"secondary",size:"sm",onClick:v,children:s.jsxRuntimeExports.jsx(s.MdClear,{})})}),E&&s.jsxRuntimeExports.jsx(Z,{message:E.message})]})},oi=({InputContainer:n=X,type:e,formField:t,label:r,placeholder:o,size:a,resetsFields:i,showClearIcon:l,clearValue:u,required:d,hidden:m,disabled:p,withoutLabel:f,list:g})=>{const{register:j,formState:h,setValue:x,watch:E}=K.useFormContext(),[_,v]=c.useState(void 0),N=c.useCallback(()=>{const k=u??null;e==="number"?x(t,k!==null?Number(k):null):x(t,(k==null?void 0:k.toString())??"")},[u,e,x,t]),w=c.useCallback(()=>{const k=t.split(".");let C=h.errors;k.forEach(D=>{C!==void 0&&(C=C[D])}),v(C)},[h,t]);c.useEffect(()=>{w()},[w]);const y=_!==void 0;return s.jsxRuntimeExports.jsxs(n,{label:`${r}${d?" *":""}`,hidden:m,withoutLabel:f,isInvalid:y,children:[s.jsxRuntimeExports.jsx(B.Control,{type:e,placeholder:o??r,size:a,...j(t,{setValueAs:k=>e==="number"?k==null?null:parseInt(k,10):k==null||k===""?null:k,onChange:()=>{i&&i.forEach(k=>x(k,null))}}),isInvalid:y,hidden:m,disabled:p,list:g}),l&&E(t)&&s.jsxRuntimeExports.jsx("div",{className:`luminus-input-remove-icon ${e!=="text"?"inset":""}`,children:s.jsxRuntimeExports.jsx(Y,{color:"secondary",size:"sm",onClick:N,children:s.jsxRuntimeExports.jsx(s.MdClear,{})})}),_&&s.jsxRuntimeExports.jsx(Z,{message:_.message})]})},ai=({InputContainer:n=X,formField:e,label:t,size:r,defaultSelection:o,resetsFields:a,isNumber:i,required:l,hidden:u,disabled:d,items:m,onSearchQueryChange:p,onClickSelectedItem:f,texts:g,isLoading:j,withoutLabel:h,additionalColumns:x})=>{const{formState:E,setValue:_,watch:v,control:N}=K.useFormContext(),[w,y]=c.useState(void 0),[k,C]=c.useState(!1),[D,S]=c.useState(!1),R=v(e),T=R===(o==null?void 0:o.id)?o==null?void 0:o.name:v(`${e}-DropdownName`),P=c.useMemo(()=>R==null?null:{id:R??null,name:T??""},[R,T]),A=c.useCallback(()=>{const b=e.split(".");let O=E.errors;b.forEach(ee=>{O!==void 0&&(O=O[ee])}),y(O)},[E,e]),q=c.useCallback(b=>{if((b==null?void 0:b.id)===R)return;if(a&&a.forEach(ee=>_(ee,null,{shouldDirty:!0,shouldValidate:D})),b===null){_(e,null,{shouldDirty:!0,shouldValidate:D}),_(`${e}-DropdownName`,null);return}let O=null;i?O=(b==null?void 0:b.id)!==null?parseInt(b.id.toString(),10):null:O=b.id===null||b.id===void 0||b.id===""?null:b.id,_(e,O,{shouldDirty:!0,shouldValidate:D}),_(`${e}-DropdownName`,b.name??"")},[_,e,D,i,a,R]),W=c.useCallback(b=>{C(!1),q(b)},[q]),V=c.useCallback(()=>{C(!1)},[]);c.useEffect(()=>{A()},[A]),c.useEffect(()=>{E.isSubmitted&&S(!0)},[E]);const H=c.useRef(null),M=w!==void 0;return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsxs(n,{label:`${t}${l?" *":""}`,hidden:u,withoutLabel:h,isInvalid:M,inputContainerClassName:s.classNames({"luminus-dropdown-select-open":k}),children:[s.jsxRuntimeExports.jsx(K.Controller,{control:N,name:e,render:()=>s.jsxRuntimeExports.jsx(B.Select,{size:r,onMouseDown:b=>{b.currentTarget.focus(),b.preventDefault()},onClick:()=>{C(!0)},ref:H,value:R??"",onChange:()=>{},isInvalid:M,hidden:u,disabled:d&&f===void 0,className:s.classNames({"luminus-dropdown-picker-disabled":d}),children:s.jsxRuntimeExports.jsx("option",{value:R,children:(T==null?void 0:T.length)>0?T:R})})}),w&&s.jsxRuntimeExports.jsx(Z,{message:w.message}),H.current&&s.jsxRuntimeExports.jsx(Te,{show:k,onCancel:V,items:m,currentSelection:P,onSelectionChange:W,onClickSelectedItem:f,onSearchQueryChange:p,texts:g,additionalColumns:x,isLoading:j,disabled:d,inputRef:H})]})})},ii=({InputContainer:n=X,label:e,formField:t,hidden:r,required:o,placeholder:a,disabled:i,showClearIcon:l,resetsFields:u,multiple:d,accept:m,withoutLabel:p})=>{const{watch:f,setValue:g,register:j,formState:h}=K.useFormContext(),[x,E]=c.useState(void 0),_=c.useCallback(()=>{g(t,"")},[g,t]),v=c.useCallback(()=>{const w=t.split(".");let y=h.errors;w.forEach(k=>{y!==void 0&&(y=y[k])}),E(y)},[h,t]);c.useEffect(v,[v]);const N=x!==void 0;return s.jsxRuntimeExports.jsxs(n,{label:`${e}${o?"*":""}`,hidden:r,withoutLabel:p,isInvalid:N,children:[s.jsxRuntimeExports.jsx(zt,{type:"file",multiple:d,accept:m.join(", "),placeholder:a??e,isInvalid:N,hidden:r,disabled:i,...j(t,{onChange:()=>{u&&u.forEach(w=>g(w,null))}})}),l&&f(t)&&s.jsxRuntimeExports.jsx("div",{className:"luminus-input-remove-icon",children:s.jsxRuntimeExports.jsx(Y,{color:"secondary",size:"sm",onClick:_,children:s.jsxRuntimeExports.jsx(s.MdClear,{})})}),x&&s.jsxRuntimeExports.jsx(Z,{message:x.message})]})},ci=({children:n,onStorno:e})=>{const{formState:t}=K.useFormContext(),[r,o]=c.useState(!1);return c.useEffect(()=>{o(Object.keys(t.dirtyFields).length>0)},[t]),r?s.jsxRuntimeExports.jsx(an,{onStorno:e,children:n}):null},ui=({InputContainer:n=X,options:e,formField:t,label:r,size:o,resetsFields:a,isNumber:i,required:l,hidden:u,disabled:d,withoutLabel:m,noSortOptions:p,suffixIdToName:f})=>{const{customSelectTexts:g}=c.useContext(s.LuminusComponentsContext),{formState:j,setValue:h,watch:x,control:E}=K.useFormContext(),[_,v]=c.useState(void 0),[N,w]=c.useState(!1),[y,k]=c.useState(!1),[C,D]=c.useState(""),S=x(t),R=c.useMemo(()=>e.find(b=>b.id===S)??null,[e,S]),T=c.useCallback(()=>{const b=t.split(".");let O=j.errors;b.forEach(ee=>{O!==void 0&&(O=O[ee])}),v(O)},[j,t]),P=c.useCallback(b=>{if((b==null?void 0:b.id)===S)return;if(a&&a.forEach(ee=>h(ee,null,{shouldDirty:!0,shouldValidate:y})),b===null){h(t,null,{shouldDirty:!0,shouldValidate:y});return}let O=null;i?O=(b==null?void 0:b.id)!==null?parseInt(b.id.toString(),10):null:O=b.id===null||b.id===void 0||b.id===""?null:b.id,h(t,O,{shouldDirty:!0,shouldValidate:y})},[h,t,y,i,a,S]),A=c.useCallback(b=>{w(!1),P(b)},[P]),q=c.useCallback(b=>{D(b)},[]);c.useEffect(()=>{T()},[T]),c.useEffect(()=>{j.isSubmitted&&k(!0)},[j]);const W=c.useCallback(b=>{var O;return b===null?"":!b.name||b.name.length===0?((O=b.id)==null?void 0:O.toString())??"":f?`${b.name} (${b.id})`:b.name},[f]),V=c.useMemo(()=>e.map(b=>({id:b.id,name:W(b)})).filter(b=>{var O;return C?(O=b.name)==null?void 0:O.toLowerCase().includes(C.toLowerCase()):!0}).sort((b,O)=>p?0:(b.name??"").localeCompare(O.name??"")),[e,p,C,W]),H=c.useRef(null),M=_!==void 0;return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsxs(n,{label:`${r}${l?" *":""}`,hidden:u,withoutLabel:m,isInvalid:M,inputContainerClassName:s.classNames({"luminus-dropdown-select-open":N}),children:[s.jsxRuntimeExports.jsx(K.Controller,{control:E,name:t,render:()=>s.jsxRuntimeExports.jsx(B.Select,{size:o,onMouseDown:b=>{b.currentTarget.focus(),b.preventDefault()},onClick:()=>{w(!0)},ref:H,value:S??"",onChange:()=>{},isInvalid:M,hidden:u,disabled:d,children:s.jsxRuntimeExports.jsx("option",{value:(R==null?void 0:R.id)??"",children:W(R)})})}),_&&s.jsxRuntimeExports.jsx(Z,{message:_.message}),H.current&&s.jsxRuntimeExports.jsx(Te,{show:N,onCancel:()=>w(!1),items:V,currentSelection:R??null,onSelectionChange:A,onSearchQueryChange:q,texts:g,disabled:d,inputRef:H,autoHideSearch:!0,allItemsLength:e.length})]})})},li=({cell:{value:n}})=>s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:n?s.jsxRuntimeExports.jsx(s.AvatarIcon,{name:n,size:21,fontSize:12}):s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{})}),di="_tab-panel_so0nf_1",mi="_full-height-no-overflow_so0nf_5",gt={"tab-panel":"_tab-panel_so0nf_1",tabPanel:di,"full-height-no-overflow":"_full-height-no-overflow_so0nf_5",fullHeightNoOverflow:mi},pi=({eventKey:n,activeTab:e,fullHeightNoOverflow:t,className:r,children:o})=>n!==e?null:s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-tab-panel",gt.tabPanel,{[gt.fullHeightNoOverflow]:t},r),children:o}),fi=({activeTab:n,onSelect:e,children:t})=>s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-tabs d-flex gap-1 mb-2"),children:t.map(r=>{const o=r.type,a=r.props.eventKey,i=r.props.children,l=r.props.className,u=r.props.onClick;return c.createElement(o,{...r.props,key:r.props.eventKey,className:s.classNames({active:n===a},l),onClick:()=>{e(a),u&&u(a)}},i)})}),hi="_tab_gvohp_1",xi={tab:hi},gi=({eventKey:n,className:e,onClick:t,children:r})=>s.jsxRuntimeExports.jsx("div",{role:"button",className:s.classNames("luminus-tab text-primary rounded",xi.tab,e),onClick:()=>t&&t(n),children:typeof r=="string"?s.jsxRuntimeExports.jsx(L.Typography,{variant:"h6",className:"text-primary",children:r}):r});exports.AvatarIcon=s.AvatarIcon;exports.SimpleToggle=s.SimpleDropdownToggle;exports.UserAvatarToggle=s.UserAvatarToggle;exports.Loading=U.Loading;exports.Typography=L.Typography;exports.SimpleTooltip=hn.SimpleTooltip;exports.ApiFileDownloadButton=gn;exports.AppSearch=Ea;exports.AuthTemplate=Ya;exports.Backdrop=ze;exports.Badge=Io;exports.Card=Ia;exports.CheckInput=Ja;exports.Collapse=Mo;exports.ContextButton=Ke;exports.Dropdown=mn;exports.DropdownDivider=ra;exports.DropdownItem=ln;exports.DropdownPicker=ti;exports.DropdownToggle=dn;exports.FileUploadContextButton=Ve;exports.FileUploadDropdownItem=ta;exports.FloatingFormSubmit=an;exports.FloatingLabelInput=ce;exports.HomeDashboard=ko;exports.HookFormCheckInput=ni;exports.HookFormDropdownPicker=ai;exports.HookFormFileInput=ii;exports.HookFormFloatingSubmit=ci;exports.HookFormRadioInput=si;exports.HookFormSelectInput=ui;exports.HookFormTextAreaInput=ri;exports.HookFormTextInput=oi;exports.HtmlTooltip=Ha;exports.IconButton=Y;exports.InvalidFeedback=Z;exports.MonthPicker=mo;exports.NoInputContainer=fn;exports.PhotoLibrary=Ba;exports.PhotoLightbox=pn;exports.PrimaryButton=De;exports.RowLabelInput=X;exports.SelectInput=ei;exports.SimplePicker=Te;exports.Tab=gi;exports.TabPanel=pi;exports.Tabs=fi;exports.TextInput=Za;exports.UserAvatarValueFormat=li;exports.YearPicker=po;