slick-table 1.1.36 → 1.1.37

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/index.cjs.js CHANGED
@@ -348,11 +348,11 @@ return o.version="2.30.1",r(Mt),o.fn=ye,o.min=Jw,o.max=eC,o.now=tC,o.utc=b,o.uni
348
348
  Expecting `+ce.join(", ")+", got '"+(this.terminals_[B]||B)+"'":le="Parse error on line "+($+1)+": Unexpected "+(B==q?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(le,{text:H.match,token:this.terminals_[B]||B,line:H.yylineno,loc:A,expected:ce})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+B);switch(oe[0]){case 1:O.push(B),I.push(H.yytext),F.push(H.yylloc),O.push(oe[1]),B=null,K=H.yyleng,R=H.yytext,$=H.yylineno,A=H.yylloc;break;case 2:if(J=this.productions_[oe[1]][1],j.$=I[I.length-J],j._$={first_line:F[F.length-(J||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(J||1)].first_column,last_column:F[F.length-1].last_column},M&&(j._$.range=[F[F.length-(J||1)].range[0],F[F.length-1].range[1]]),se=this.performAction.apply(j,[R,K,$,ae.yy,oe[1],I,F].concat(Y)),typeof se<"u")return se;J&&(O=O.slice(0,-1*J*2),I=I.slice(0,-1*J),F=F.slice(0,-1*J)),O.push(this.productions_[oe[1]][0]),I.push(j.$),F.push(j._$),te=z[O[O.length-2]][O[O.length-1]],O.push(te);break;case 3:return!0}}return!0}},P=function(){return{EOF:1,parseError:function(C,O){if(this.yy.parser)this.yy.parser.parseError(C,O);else throw new Error(C)},setInput:function(S,C){return this.yy=C||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){const S=this._input[0];return this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S,S.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},unput:function(S){const C=S.length,O=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;const I=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),O.length-1&&(this.yylineno-=O.length-1);const F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length===I.length?this.yylloc.first_column:0)+I[I.length-O.length].length-O[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
349
349
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(S){this.unput(this.match.slice(S))},pastInput:function(){const S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},upcomingInput:function(){let S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){const S=this.pastInput(),C=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
350
350
  `+C+"^"},test_match:function(S,C){let O,I,F;if(this.options.backtrack_lexer&&(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(F.yylloc.range=this.yylloc.range.slice(0))),I=S[0].match(/(?:\r\n?|\n).*/g),I&&(this.yylineno+=I.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:I?I[I.length-1].length-I[I.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(S[0].length),this.matched+=S[0],O=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(let z in F)this[z]=F[z];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);let S,C,O,I;this._more||(this.yytext="",this.match="");const F=this._currentRules();for(let z=0;z<F.length;z++)if(O=this._input.match(this.rules[F[z]]),O&&(!C||O[0].length>C[0].length)){if(C=O,I=z,this.options.backtrack_lexer){if(S=this.test_match(O,F[z]),S!==!1)return S;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(S=this.test_match(C,F[I]),S!==!1?S:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
351
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){const C=this.next();return C||this.lex()},begin:function(C){this.conditionStack.push(C)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},pushState:function(C){this.begin(C)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(C,O,I,F){switch(I){case 0:break;case 1:return 15;case 2:return 8;case 3:return 9;case 4:return 7;case 5:return 6;case 6:return 10;case 7:return 11;case 8:return 12;case 9:return 13;case 10:return 14;case 11:return 17;case 12:return 16;case 13:return 5;case 14:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:[0-9]+(\.[0-9]+)?\b)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:!)/,/^(?:%)/,/^(?:\()/,/^(?:\))/,/^(?:PI\b)/,/^(?:E\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],inclusive:!0}}}}();v.lexer=P;function k(){this.yy={},this.parse=this.parse.bind(this)}return k.prototype=v,v.Parser=k,new k}();typeof require<"u"&&typeof exports<"u"&&(exports.parser=$r,exports.Parser=$r.Parser,exports.parse=function(){return $r.parse.apply($r,arguments)});const Gv=2;class TF extends Rm{isValueChanged(){const t=RF(this.defaultValue);let n=0;try{n=$r.parse(this.input.value||"0")}catch{return!0}return!n&&!t?!1:n!==t}loadValue(t){const n=Number(t[this.args.column.field]||"0");this.defaultValue=n.toFixed(Gv),this.input.value=this.defaultValue,this.input.defaultValue=this.input.value,this.input.select()}serializeValue(){let t=$r.parse(this.input.value||"0");Rm.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;const n=this.getDecimalPlaces();return n!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t}validate(){let t=0;try{if(t=$r.parse(`${this.input.value}`),t===1/0)throw new Error}catch{return{valid:!1,msg:"Please enter a valid number"}}if(this.args.column.validator){const n=this.args.column.validator(t,this.args);if(!n.valid)return n}return{valid:!0,msg:null}}}TF.DefaultDecimalPlaces=Gv;class kF{constructor(){this.currentFocus=-1,this.defaultValue="",this.id="autocomplete",this.input=document.createElement("input"),this.keyCaptureList=[Br.UP,Br.DOWN,Br.ENTER]}applyValue(t,n){t[this.args.column.field]=n}closeAllList(){this.list?.remove(),this.list=void 0,this.currentFocus=-1}destroy(){this.input.removeEventListener("input",this.onInput.bind(this)),this.input.removeEventListener("keydown",this.onKeydown.bind(this)),this.closeAllList(),this.input.remove()}focus(){this.input.focus()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input.setAttribute("type","text"),this.input.classList.add("editor-text"),this.args.container.append(this.input),this.input.addEventListener("input",this.onInput.bind(this)),this.input.addEventListener("keydown",this.onKeydown.bind(this)),this.input.focus(),this.input.select()}isValueChanged(){return!(this.input.value==""&&this.defaultValue==null)&&this.input.value!=this.defaultValue}loadValue(t){this.defaultValue=t[this.args.column.field]||"",this.input.value=this.defaultValue,this.input.defaultValue=this.defaultValue,this.input.focus(),this.input.select()}makeVisible(t){const n=t.closest(".slick-viewport");if(!n)return;const{bottom:o,right:r}=t.getBoundingClientRect(),{bottom:i,right:a}=n.getBoundingClientRect();if(o>=i){const l=this.args.grid.getOptions().rowHeight;t.style.position="absolute",t.style.bottom=`${l}px`,t.style.top="auto"}r>=a&&(t.style.position="absolute",t.style.right="0",t.style.left="auto")}onKeydown(t){if(t.key===Ar.ArrowLeft){this.navOnLR&&this.args.grid.navigatePrev(),t.stopImmediatePropagation();return}else if(t.key===Ar.ArrowRight){this.navOnLR&&this.args.grid.navigateNext(),t.stopImmediatePropagation();return}if(!this.list)return;const n=this.list.getElementsByTagName("div");t.key===Ar.ArrowDown?(this.currentFocus++,this.setActive(n)):t.key===Ar.ArrowUp?(this.currentFocus--,this.setActive(n)):(t.key===Ar.Enter||t.key===Ar.Tab)&&(t.preventDefault(),n.length===1&&(this.currentFocus=0),this.currentFocus>-1&&n&&n[this.currentFocus].click())}removeActive(t){for(let n=0;n<t.length;n++)t[n].classList.remove("active")}scrollToElement(t){const n=t.parentElement;if(!n)return;const{clientHeight:o,offsetTop:r}=t,{clientHeight:i,scrollTop:a}=n;r>=a+i?n.scrollTop=r-o*1.5:r-o<=a&&(n.scrollTop=r-i)}serializeValue(){return this.input.value}setActive(t){if(!t.length)return;this.removeActive(t),this.currentFocus>=t.length&&(this.currentFocus=0),this.currentFocus<0&&(this.currentFocus=t.length-1);const n=t[this.currentFocus];n.classList.add("active"),this.scrollToElement(n)}validate(){if(this.args.column.validator){const t=this.args.column.validator(this.input.value,this.args);if(!t.valid)return t}return{valid:!0,msg:null}}}var yl={exports:{}};const EF=f0(VN);/*!
351
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){const C=this.next();return C||this.lex()},begin:function(C){this.conditionStack.push(C)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},pushState:function(C){this.begin(C)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(C,O,I,F){switch(I){case 0:break;case 1:return 15;case 2:return 8;case 3:return 9;case 4:return 7;case 5:return 6;case 6:return 10;case 7:return 11;case 8:return 12;case 9:return 13;case 10:return 14;case 11:return 17;case 12:return 16;case 13:return 5;case 14:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:[0-9]+(\.[0-9]+)?\b)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:!)/,/^(?:%)/,/^(?:\()/,/^(?:\))/,/^(?:PI\b)/,/^(?:E\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],inclusive:!0}}}}();v.lexer=P;function k(){this.yy={},this.parse=this.parse.bind(this)}return k.prototype=v,v.Parser=k,new k}();typeof require<"u"&&typeof exports<"u"&&(exports.parser=$r,exports.Parser=$r.Parser,exports.parse=function(){return $r.parse.apply($r,arguments)});const Gv=2;class TF extends Rm{isValueChanged(){const t=RF(this.defaultValue);let n=0;try{n=$r.parse(this.input.value||"0")}catch{return!0}return!n&&!t?!1:n!==t}loadValue(t){const n=Number(t[this.args.column.field]||"0");this.defaultValue=n.toFixed(Gv),this.input.value=this.defaultValue,this.input.defaultValue=this.input.value,this.input.select()}serializeValue(){let t=$r.parse(this.input.value||"0");Rm.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;const n=this.getDecimalPlaces();return n!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t}validate(){let t=0;try{if(t=$r.parse(`${this.input.value}`),t===1/0)throw new Error}catch{return{valid:!1,msg:"Please enter a valid number"}}if(this.args.column.validator){const n=this.args.column.validator(t,this.args);if(!n.valid)return n}return{valid:!0,msg:null}}}TF.DefaultDecimalPlaces=Gv;class kF{constructor(){this.currentFocus=-1,this.defaultValue="",this.id="autocomplete",this.input=document.createElement("input"),this.keyCaptureList=[Br.UP,Br.DOWN,Br.ENTER]}applyValue(t,n){t[this.args.column.field]=n}closeAllList(){this.list?.remove(),this.list=void 0,this.currentFocus=-1}destroy(){this.input.removeEventListener("input",this.onInput.bind(this)),this.input.removeEventListener("keydown",this.onKeydown.bind(this)),this.closeAllList(),this.input.remove()}focus(){this.input.focus()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input.setAttribute("type","text"),this.input.classList.add("editor-text"),this.args.container.append(this.input),this.input.addEventListener("input",this.onInput.bind(this)),this.input.addEventListener("keydown",this.onKeydown.bind(this)),this.input.focus(),this.input.select()}isValueChanged(){return!(this.input.value==""&&this.defaultValue==null)&&this.input.value!=this.defaultValue}loadValue(t){this.defaultValue=t[this.args.column.field]||"",this.input.value=this.defaultValue,this.input.defaultValue=this.defaultValue,this.input.focus(),this.input.select()}makeVisible(t){const n=t.closest(".slick-viewport");if(!n)return;const{bottom:o,right:r}=t.getBoundingClientRect(),{bottom:i,right:a}=n.getBoundingClientRect();if(t.style.left="0",o>=i){const l=this.args.grid.getOptions().rowHeight;t.style.position="absolute",t.style.bottom=`${l}px`,t.style.top="auto"}r>=a&&(t.style.position="absolute",t.style.right="0",t.style.left="auto")}onKeydown(t){if(t.key===Ar.ArrowLeft){this.navOnLR&&this.args.grid.navigatePrev(),t.stopImmediatePropagation();return}else if(t.key===Ar.ArrowRight){this.navOnLR&&this.args.grid.navigateNext(),t.stopImmediatePropagation();return}if(!this.list)return;const n=this.list.getElementsByTagName("div");t.key===Ar.ArrowDown?(this.currentFocus++,this.setActive(n)):t.key===Ar.ArrowUp?(this.currentFocus--,this.setActive(n)):(t.key===Ar.Enter||t.key===Ar.Tab)&&(t.preventDefault(),n.length===1&&(this.currentFocus=0),this.currentFocus>-1&&n&&n[this.currentFocus].click())}removeActive(t){for(let n=0;n<t.length;n++)t[n].classList.remove("active")}scrollToElement(t){const n=t.parentElement;if(!n)return;const{clientHeight:o,offsetTop:r}=t,{clientHeight:i,scrollTop:a}=n;r>=a+i?n.scrollTop=r-o*1.5:r-o<=a&&(n.scrollTop=r-i)}serializeValue(){return this.input.value}setActive(t){if(!t.length)return;this.removeActive(t),this.currentFocus>=t.length&&(this.currentFocus=0),this.currentFocus<0&&(this.currentFocus=t.length-1);const n=t[this.currentFocus];n.classList.add("active"),this.scrollToElement(n)}validate(){if(this.args.column.validator){const t=this.args.column.validator(this.input.value,this.args);if(!t.valid)return t}return{valid:!0,msg:null}}}var yl={exports:{}};const EF=f0(VN);/*!
352
352
  * Pikaday
353
353
  *
354
354
  * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
355
- */var PF=yl.exports,Nm;function DF(){return Nm||(Nm=1,function(e,t){(function(n,o){var r;{try{r=EF}catch{}e.exports=o(r)}})(PF,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(A,M,L,B){r?A.addEventListener(M,L,!!B):A.attachEvent("on"+M,L)},d=function(A,M,L,B){r?A.removeEventListener(M,L,!!B):A.detachEvent("on"+M,L)},u=function(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")},h=function(A,M){return(" "+A.className+" ").indexOf(" "+M+" ")!==-1},p=function(A,M){h(A,M)||(A.className=A.className===""?M:A.className+" "+M)},y=function(A,M){A.className=u((" "+A.className+" ").replace(" "+M+" "," "))},w=function(A){return/Array/.test(Object.prototype.toString.call(A))},b=function(A){return/Date/.test(Object.prototype.toString.call(A))&&!isNaN(A.getTime())},m=function(A){var M=A.getDay();return M===0||M===6},v=function(A){return A%4===0&&A%100!==0||A%400===0},P=function(A,M){return[31,v(A)?29:28,31,30,31,30,31,31,30,31,30,31][M]},k=function(A){b(A)&&A.setHours(0,0,0,0)},_=function(A,M){return A.getTime()===M.getTime()},S=function(A,M,L){var B,ne;for(B in M)ne=A[B]!==void 0,ne&&typeof M[B]=="object"&&M[B]!==null&&M[B].nodeName===void 0?b(M[B])?L&&(A[B]=new Date(M[B].getTime())):w(M[B])?L&&(A[B]=M[B].slice(0)):A[B]=S({},M[B],L):(L||!ne)&&(A[B]=M[B]);return A},C=function(A,M,L){var B;i.createEvent?(B=i.createEvent("HTMLEvents"),B.initEvent(M,!0,!1),B=S(B,L),A.dispatchEvent(B)):i.createEventObject&&(B=i.createEventObject(),B=S(B,L),A.fireEvent("on"+M,B))},O=function(A){return A.month<0&&(A.year-=Math.ceil(Math.abs(A.month)/12),A.month+=12),A.month>11&&(A.year+=Math.floor(Math.abs(A.month)/12),A.month-=12),A},I={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(A,M,L){for(M+=A.firstDay;M>=7;)M-=7;return L?A.i18n.weekdaysShort[M]:A.i18n.weekdays[M]},z=function(A){var M=[],L="false";if(A.isEmpty)if(A.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),A.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return A.isDisabled&&M.push("is-disabled"),A.isToday&&M.push("is-today"),A.isSelected&&(M.push("is-selected"),L="true"),A.hasEvent&&M.push("has-event"),A.isInRange&&M.push("is-inrange"),A.isStartRange&&M.push("is-startrange"),A.isEndRange&&M.push("is-endrange"),'<td data-day="'+A.day+'" class="'+M.join(" ")+'" aria-selected="'+L+'"><button class="pika-button pika-day" type="button" data-pika-year="'+A.year+'" data-pika-month="'+A.month+'" data-pika-day="'+A.day+'">'+A.day+"</button></td>"},R=function(A,M){A.setHours(0,0,0,0);var L=A.getDate(),B=A.getDay(),ne=M,oe=ne-1,se=7,j=function(le){return(le+se-1)%se};A.setDate(L+oe-j(B));var ee=new Date(A.getFullYear(),0,ne),J=24*60*60*1e3,te=(A.getTime()-ee.getTime())/J,ce=1+Math.round((te-oe+j(ee.getDay()))/se);return ce},$=function(A,M,L,B){var ne=new Date(L,M,A),oe=o?n(ne).isoWeek():R(ne,B);return'<td class="pika-week">'+oe+"</td>"},K=function(A,M,L,B){return'<tr class="pika-row'+(L?" pick-whole-week":"")+(B?" is-selected":"")+'">'+(M?A.reverse():A).join("")+"</tr>"},G=function(A){return"<tbody>"+A.join("")+"</tbody>"},q=function(A){var M,L=[];for(A.showWeekNumber&&L.push("<th></th>"),M=0;M<7;M++)L.push('<th scope="col"><abbr title="'+F(A,M)+'">'+F(A,M,!0)+"</abbr></th>");return"<thead><tr>"+(A.isRTL?L.reverse():L).join("")+"</tr></thead>"},Y=function(A,M,L,B,ne,oe){var se,j,ee,J=A._o,te=L===J.minYear,ce=L===J.maxYear,le='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,W,re=!0,Z=!0;for(ee=[],se=0;se<12;se++)ee.push('<option value="'+(L===ne?se-M:12+se-M)+'"'+(se===B?' selected="selected"':"")+(te&&se<J.minMonth||ce&&se>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+J.i18n.months[B]+'<select class="pika-select pika-select-month" tabindex="-1">'+ee.join("")+"</select></div>",w(J.yearRange)?(se=J.yearRange[0],j=J.yearRange[1]+1):(se=L-J.yearRange,j=1+L+J.yearRange),ee=[];se<j&&se<=J.maxYear;se++)se>=J.minYear&&ee.push('<option value="'+se+'"'+(se===L?' selected="selected"':"")+">"+se+"</option>");return W='<div class="pika-label">'+L+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+ee.join("")+"</select></div>",J.showMonthAfterYear?le+=W+he:le+=he+W,te&&(B===0||J.minMonth>=B)&&(re=!1),ce&&(B===11||J.maxMonth<=B)&&(Z=!1),M===0&&(le+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),M===A._o.numberOfMonths-1&&(le+='<button class="pika-next'+(Z?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),le+="</div>"},H=function(A,M,L){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+L+'">'+q(A)+G(M)+"</table>"},ae=function(A){var M=this,L=M.config(A);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(h(oe,"is-disabled")||(h(oe,"pika-button")&&!h(oe,"is-empty")&&!h(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),L.bound&&a(function(){M.hide(),L.blurFieldOnSelect&&L.field&&L.field.blur()},100)):h(oe,"pika-prev")?M.prevMonth():h(oe,"pika-next")&&M.nextMonth()),h(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(h(oe,"pika-select-month")?M.gotoMonth(oe.value):h(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:L.field&&L.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(L.parse)return L.parse(L.field.value,L.format);if(o){var ne=n(L.field.value,L.format,L.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(L.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(h(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&h(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(h(se,"pika-single")||se===L.trigger)return;while(se=se.parentNode);M._v&&oe!==L.trigger&&se!==L.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(L.isRTL?" is-rtl":"")+(L.theme?" "+L.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),L.keyboardInput&&l(i,"keydown",M._onKeyChange),L.field&&(L.container?L.container.appendChild(M.el):L.bound?i.body.appendChild(M.el):L.field.parentNode.insertBefore(M.el,L.field.nextSibling),l(L.field,"change",M._onInputChange),L.defaultDate||(L.defaultDate=M._parseFieldValue(),L.setDefaultDate=!0));var B=L.defaultDate;b(B)?L.setDefaultDate?M.setDate(B,!0):M.gotoDate(B):M.gotoDate(new Date),L.bound?(this.hide(),M.el.className+=" is-bound",l(L.trigger,"click",M._onInputClick),l(L.trigger,"focus",M._onInputFocus),l(L.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(A){this._o||(this._o=S({},I,!0));var M=S(this._o,A,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var L=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=L>4?4:L,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var B=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||B,M.yearRange[1]=parseInt(M.yearRange[1],10)||B}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||I.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(A){return A=A||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,A):o?n(this._d).format(A):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(A,M){o&&n.isMoment(A)&&this.setDate(A.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(A,M){if(!A)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof A=="string"&&(A=new Date(Date.parse(A))),!!b(A)){var L=this._o.minDate,B=this._o.maxDate;b(L)&&A<L?A=L:b(B)&&A>B&&(A=B),this._d=new Date(A.getTime()),k(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(A){var M=!0;if(b(A)){if(this.calendars){var L=new Date(this.calendars[0].year,this.calendars[0].month,1),B=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=A.getTime();B.setMonth(B.getMonth()+1),B.setDate(B.getDate()-1),M=ne<L.getTime()||B.getTime()<ne}M&&(this.calendars=[{month:A.getMonth(),year:A.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(A,M){var L=this.getDate()||new Date,B=parseInt(M)*24*60*60*1e3,ne;A==="add"?ne=new Date(L.valueOf()+B):A==="subtract"&&(ne=new Date(L.valueOf()-B)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var A=1;A<this._o.numberOfMonths;A++)this.calendars[A]=O({month:this.calendars[0].month+A,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(A){isNaN(A)||(this.calendars[0].month=parseInt(A,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(A){isNaN(A)||(this.calendars[0].year=parseInt(A,10),this.adjustCalendars())},setMinDate:function(A){A instanceof Date?(k(A),this._o.minDate=A,this._o.minYear=A.getFullYear(),this._o.minMonth=A.getMonth()):(this._o.minDate=I.minDate,this._o.minYear=I.minYear,this._o.minMonth=I.minMonth,this._o.startRange=I.startRange),this.draw()},setMaxDate:function(A){A instanceof Date?(k(A),this._o.maxDate=A,this._o.maxYear=A.getFullYear(),this._o.maxMonth=A.getMonth()):(this._o.maxDate=I.maxDate,this._o.maxYear=I.maxYear,this._o.maxMonth=I.maxMonth,this._o.endRange=I.endRange),this.draw()},setStartRange:function(A){this._o.startRange=A},setEndRange:function(A){this._o.endRange=A},draw:function(A){if(!(!this._v&&!A)){var M=this._o,L=M.minYear,B=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=L&&(this._y=L,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=B&&(this._y=B,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var ee=0;ee<M.numberOfMonths;ee++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,ee,this.calendars[ee].year,this.calendars[ee].month,this.calendars[0].year,j)+this.render(this.calendars[ee].year,this.calendars[ee].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var A,M,L,B,ne,oe,se,j,ee,J,te,ce;if(!this._o.container){if(this.el.style.position="absolute",A=this._o.trigger,M=A,L=this.el.offsetWidth,B=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof A.getBoundingClientRect=="function")J=A.getBoundingClientRect(),j=J.left+window.pageXOffset,ee=J.bottom+window.pageYOffset;else for(j=M.offsetLeft,ee=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,ee+=M.offsetTop;(this._o.reposition&&j+L>ne||this._o.position.indexOf("right")>-1&&j-L+A.offsetWidth>0)&&(j=j-L+A.offsetWidth,te=!1),(this._o.reposition&&ee+B>oe+se||this._o.position.indexOf("top")>-1&&ee-B-A.offsetHeight>0)&&(ee=ee-B-A.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=ee+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(A,M,L){var B=this._o,ne=new Date,oe=P(A,M),se=new Date(A,M,1).getDay(),j=[],ee=[];k(ne),B.firstDay>0&&(se-=B.firstDay,se<0&&(se+=7));for(var J=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?A-1:A,le=M===11?A+1:A,he=P(ce,J),W=oe+se,re=W;re>7;)re-=7;W+=7-re;for(var Z=!1,fe=0,pe=0;fe<W;fe++){var be=new Date(A,M,1+(fe-se)),ge=b(this._d)?_(be,this._d):!1,Re=_(be,ne),Ve=B.events.indexOf(be.toDateString())!==-1,Ne=fe<se||fe>=oe+se,Je=1+(fe-se),ke=M,ut=A,Yt=B.startRange&&_(B.startRange,be),rt=B.endRange&&_(B.endRange,be),Ot=B.startRange&&B.endRange&&B.startRange<be&&be<B.endRange,Ut=B.minDate&&be<B.minDate||B.maxDate&&be>B.maxDate||B.disableWeekends&&m(be)||B.disableDayFn&&B.disableDayFn(be);Ne&&(fe<se?(Je=he+Je,ke=J,ut=ce):(Je=Je-oe,ke=te,ut=le));var Lt={day:Je,month:ke,year:ut,hasEvent:Ve,isSelected:ge,isToday:Re,isDisabled:Ut,isEmpty:Ne,isStartRange:Yt,isEndRange:rt,isInRange:Ot,showDaysInNextAndPreviousMonths:B.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:B.enableSelectionDaysInNextAndPreviousMonths};B.pickWholeWeek&&ge&&(Z=!0),ee.push(z(Lt)),++pe===7&&(B.showWeekNumber&&ee.unshift($(fe-se,M,A,B.firstWeekOfYearMinDays)),j.push(K(ee,B.isRTL,B.pickWholeWeek,Z)),ee=[],pe=0,Z=!1)}return H(B,j,L)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var A=this._v;A!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,A!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var A=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),A.keyboardInput&&d(i,"keydown",this._onKeyChange),A.field&&(d(A.field,"change",this._onInputChange),A.bound&&(d(A.trigger,"click",this._onInputClick),d(A.trigger,"focus",this._onInputFocus),d(A.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(yl)),yl.exports}DF();const OF=(e,t,n)=>n?"<span class='sgi sgi-check'></span>":"";function MF(e){return`(${IF(e)})`}function IF(e){return e.replace("-","")}function Mh(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:h=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&h)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),P=`${n}${v}`,k=p?`-${P}`:P,_=p&&a?MF(k):k;return l?_:p?i?`<span class="${i}">${_}</span>`:_:d?`<span class="${d}">${_}</span>`:_}function Kv(e){return function(n,o,r){return Mh(r,e)}}const NF=Kv().name,AF=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${Mh(n)}`:""};function FF(e,t,n){return n?"✓":""}function LF(e){if(!e.getSelectionModel())return Am(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Am(e)),t}function Am(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}var Ec=(e=>(e.slickTable="slick-table",e.sorting="sorting",e))(Ec||{});function Ad(){return JSON.parse(localStorage.getItem(Ec.slickTable)||"{}")}function Fd(e){return e[Ec.sorting]||{}}function Fm(e,t){localStorage.setItem(Ec.slickTable,JSON.stringify({...e,sorting:t}))}class $F{getTableSorting(t){const n=Ad();return Fd(n)[t]}resetTableSorting(t){const n=Ad(),o=Fd(n);delete o[t],Fm(n,o)}setTableSorting(t,n,o){const r=Ad(),i=Fd(r);i[t]={columnId:n,isAscending:o},Fm(r,i)}}const Ld=new $F;class VF{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=Ss(t||this.emptyValue),r=Ss(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}stringsNumeric(t,n){return!t&&!n?0:t?n?t.localeCompare(n,void 0,{numeric:!0}):1:-1}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const jF=new VF;class Xv{constructor(){this.sort=jF,this.withFormatter=[Co.TEXT,Co.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,h=a.sortCol;if(!l||!h)return;const p=h.field;if(!p)return;const y=h.sortAs;if(!y)return;const{formatter:w}=h,b=l.getData();d&&n===h?.id?(o=!0,Ld.resetTableSorting(t),l.setSortColumns([]),n=""):(o=!1,n=u,Ld.setTableSorting(t,u,d));const m=d?-1:1,v=b.getGrouping(),P=v.find(({getter:k})=>k===h.id);if(P){if(r||(r=v.map(({comparer:k})=>k)),o){const k=b.getGrouping(),_=k.findIndex(({getter:S})=>S===h.id);k[_].comparer=r[_],b.refresh();return}P.comparer=(k,_)=>{let S=k.value,C=_.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,h,null,l),C=w(0,0,C,h,null,l)),this.priority(k,_)||this.compare(S,C,m,y)}}else{const k=b.getItems(),_=b.getIdPropertyName();k.sort((S,C)=>{if(o)return S[_]-C[_];let O=S[p],I=C[p];return w&&this.withFormatter.includes(y)&&(O=w(0,0,O,h,S,l),I=w(0,0,I,h,C,l)),this.priority(S,C)||this.compare(O,I,m,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=Ld.getTableSorting(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);l&&(a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]}),document.querySelector(`#${t.id} [data-id="${r}"] .slick-sort-indicator`)?.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate())}}compare(t,n,o,r){switch(r){case Co.DATE:return this.sort.dates(t,n)*o;case Co.NUMBER:case Co.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case Co.TEXT_NUMERIC:return this.sort.stringsNumeric(t,n)*o;case Co.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const BF=new Xv;class WF{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}function HF(e){const t={};if(!e)return t;const n=e.summaryColumnIds,o=e.grid;if(!o)return t;const r=o.getSelectedRows();o.getColumns().forEach((l,d)=>{const{formatter:u,id:h,name:p}=l;n.includes(h)&&(t[h]={cell:d,column:l,formatter:u,label:p,total:0,totalFormatted:u?u(0,0,0,l,{},o):"0"})});const a=o.getData();return r.forEach(l=>{const d=a.getItem(l);Object.keys(t).forEach(u=>{t[u].total+=d[u],t[u].totalFormatted=t[u].formatter?t[u].formatter(l,t[u].cell,t[u].total,t[u].column,d,o):`${t[u].total}`})}),t}const Zv=ie(Ry)({alignItems:"center",color:"#1E456F",display:"flex",justifyContent:"space-between"}),zF=ie("span")({display:"flex",alignItems:"center"}),YF=ie("span")({marginLeft:"0.5em",width:"20px",cursor:"pointer",backgroundColor:"#1E456F","&:hover":{scale:"1.3"}}),$d={Icon:YF,Total:zF},UF=({label:e,total:t,totalFormatted:n})=>{const[o,r]=Fe.useState(!1);function i(){navigator.clipboard.writeText(`${t}`),r(!0),setTimeout(()=>{r(!1)},1e3)}return E.jsxs(Zv,{children:[E.jsx("span",{children:`Total ${e}:`}),E.jsxs($d.Total,{children:[E.jsx("span",{children:`${n}`}),o?E.jsx($d.Icon,{className:"sgi sgi-check"}):E.jsx(jy,{title:"Copy to clipboard",children:E.jsx($d.Icon,{className:"sgi sgi-content-copy",onClick:i})})]})]})},qF=ie(qu)({"& .MuiPaper-root":{minWidth:"25em"}}),GF=ie(Ty)({color:"#1E456F"}),KF=ie(fc)({padding:0}),XF=ie(ko)({borderColor:"#1E9577",color:"#1E9577",textTransform:"none"}),el={Button:XF,Dialog:qF,DialogTitle:GF,List:KF},ZF=()=>{const[e,t]=Fe.useState(0),[n,o]=Fe.useState(!1),[r,i]=Fe.useState({});function a(){qo.open=!1}return Fe.useEffect(()=>{function l(){const d=qo.open;if(d){const u=qo.table,h=u?.grid;t(h?.getSelectedRows().length||0),i(HF(u))}o(d)}return qo.subscribe(l),()=>{qo.unsubscribe(l)}},[]),n?E.jsxs(el.Dialog,{open:n,onClose:a,children:[E.jsx(el.DialogTitle,{children:"Selected rows summary"}),E.jsx(Ku,{children:E.jsxs(el.List,{children:[E.jsx(Zv,{children:`Number of selected rows: ${e}`}),Object.entries(r).map(([l,{label:d,total:u,totalFormatted:h}])=>E.jsx(Bn,{children:E.jsx(UF,{label:d,total:u,totalFormatted:h})},l))]})}),E.jsx(Gu,{children:E.jsx(el.Button,{variant:"outlined",onClick:a,children:"Close"})})]}):null};function Ih(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const QF=ie(Bn)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),JF={Wrapper:QF},Nh=({setIsOpened:e})=>E.jsx(JF.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),eL=ie(Bn)({visibility:"hidden",borderRadius:"5px",backgroundColor:"#FFFFFF",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0}),tL={Wrapper:eL},Ah=({children:e,id:t})=>E.jsx(tL.Wrapper,{id:t,children:e});function nL(e){const{columnId:t,table:n}=Rn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?Io.highlightColumn(n,t):Io.resetColumn(n,t))}const rr=qv(nL),js={1:"",2:""},Qv="column_filters",lo={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function oL(e){switch(e){case hn.Boolean:return je.Boolean;case hn.Date:return je.DateEqual;case hn.MultipleSelect:return je.MultipleSelect;case hn.Number:case hn.NumberFormatted:return je.NumberEqual;case hn.Text:return je.TextContain}}function rL(e,t,n){Fe.useEffect(()=>{if(!e)return;const o=document.getElementById(Qv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=Rn;if(!a?.grid)return;const h=a.filter.args;Ih(o,l,d);const{filterId:p,value:y}=h.columnFilters?.[r]||{},w=p||oL(i),b=y||js;a.filter.args={...h,columnFilters:{...h.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function sL(e){Fe.useEffect(()=>{function t(){e(!0)}return Rn.subscribe(t),()=>{Rn.unsubscribe(t)}},[])}function gu(e){return{format:Yr.ui,value:e?xe(e,jN):null}}const iL=ie(ko)({width:"5em",alignSelf:"flex-end"}),aL={Button:iL},lL=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=Rn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,Io.resetColumn(i,r),t(js),e(!1)}return E.jsx(aL.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},cL=ie(hc)({padding:0}),dL=ie(ky)({margin:"0.5em 0 0 1em"}),tl={Checkbox:cL,FormGroup:dL},uL=({setValue:e,value:t})=>{function n(o){e(o),rr(o)}return E.jsxs(tl.FormGroup,{children:[E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},hL={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},fL={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Lm=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
355
+ */var PF=yl.exports,Nm;function DF(){return Nm||(Nm=1,function(e,t){(function(n,o){var r;{try{r=EF}catch{}e.exports=o(r)}})(PF,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(A,M,L,B){r?A.addEventListener(M,L,!!B):A.attachEvent("on"+M,L)},d=function(A,M,L,B){r?A.removeEventListener(M,L,!!B):A.detachEvent("on"+M,L)},u=function(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")},h=function(A,M){return(" "+A.className+" ").indexOf(" "+M+" ")!==-1},p=function(A,M){h(A,M)||(A.className=A.className===""?M:A.className+" "+M)},y=function(A,M){A.className=u((" "+A.className+" ").replace(" "+M+" "," "))},w=function(A){return/Array/.test(Object.prototype.toString.call(A))},b=function(A){return/Date/.test(Object.prototype.toString.call(A))&&!isNaN(A.getTime())},m=function(A){var M=A.getDay();return M===0||M===6},v=function(A){return A%4===0&&A%100!==0||A%400===0},P=function(A,M){return[31,v(A)?29:28,31,30,31,30,31,31,30,31,30,31][M]},k=function(A){b(A)&&A.setHours(0,0,0,0)},_=function(A,M){return A.getTime()===M.getTime()},S=function(A,M,L){var B,ne;for(B in M)ne=A[B]!==void 0,ne&&typeof M[B]=="object"&&M[B]!==null&&M[B].nodeName===void 0?b(M[B])?L&&(A[B]=new Date(M[B].getTime())):w(M[B])?L&&(A[B]=M[B].slice(0)):A[B]=S({},M[B],L):(L||!ne)&&(A[B]=M[B]);return A},C=function(A,M,L){var B;i.createEvent?(B=i.createEvent("HTMLEvents"),B.initEvent(M,!0,!1),B=S(B,L),A.dispatchEvent(B)):i.createEventObject&&(B=i.createEventObject(),B=S(B,L),A.fireEvent("on"+M,B))},O=function(A){return A.month<0&&(A.year-=Math.ceil(Math.abs(A.month)/12),A.month+=12),A.month>11&&(A.year+=Math.floor(Math.abs(A.month)/12),A.month-=12),A},I={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(A,M,L){for(M+=A.firstDay;M>=7;)M-=7;return L?A.i18n.weekdaysShort[M]:A.i18n.weekdays[M]},z=function(A){var M=[],L="false";if(A.isEmpty)if(A.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),A.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return A.isDisabled&&M.push("is-disabled"),A.isToday&&M.push("is-today"),A.isSelected&&(M.push("is-selected"),L="true"),A.hasEvent&&M.push("has-event"),A.isInRange&&M.push("is-inrange"),A.isStartRange&&M.push("is-startrange"),A.isEndRange&&M.push("is-endrange"),'<td data-day="'+A.day+'" class="'+M.join(" ")+'" aria-selected="'+L+'"><button class="pika-button pika-day" type="button" data-pika-year="'+A.year+'" data-pika-month="'+A.month+'" data-pika-day="'+A.day+'">'+A.day+"</button></td>"},R=function(A,M){A.setHours(0,0,0,0);var L=A.getDate(),B=A.getDay(),ne=M,oe=ne-1,se=7,j=function(le){return(le+se-1)%se};A.setDate(L+oe-j(B));var ee=new Date(A.getFullYear(),0,ne),J=24*60*60*1e3,te=(A.getTime()-ee.getTime())/J,ce=1+Math.round((te-oe+j(ee.getDay()))/se);return ce},$=function(A,M,L,B){var ne=new Date(L,M,A),oe=o?n(ne).isoWeek():R(ne,B);return'<td class="pika-week">'+oe+"</td>"},K=function(A,M,L,B){return'<tr class="pika-row'+(L?" pick-whole-week":"")+(B?" is-selected":"")+'">'+(M?A.reverse():A).join("")+"</tr>"},G=function(A){return"<tbody>"+A.join("")+"</tbody>"},q=function(A){var M,L=[];for(A.showWeekNumber&&L.push("<th></th>"),M=0;M<7;M++)L.push('<th scope="col"><abbr title="'+F(A,M)+'">'+F(A,M,!0)+"</abbr></th>");return"<thead><tr>"+(A.isRTL?L.reverse():L).join("")+"</tr></thead>"},Y=function(A,M,L,B,ne,oe){var se,j,ee,J=A._o,te=L===J.minYear,ce=L===J.maxYear,le='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,W,re=!0,Z=!0;for(ee=[],se=0;se<12;se++)ee.push('<option value="'+(L===ne?se-M:12+se-M)+'"'+(se===B?' selected="selected"':"")+(te&&se<J.minMonth||ce&&se>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+J.i18n.months[B]+'<select class="pika-select pika-select-month" tabindex="-1">'+ee.join("")+"</select></div>",w(J.yearRange)?(se=J.yearRange[0],j=J.yearRange[1]+1):(se=L-J.yearRange,j=1+L+J.yearRange),ee=[];se<j&&se<=J.maxYear;se++)se>=J.minYear&&ee.push('<option value="'+se+'"'+(se===L?' selected="selected"':"")+">"+se+"</option>");return W='<div class="pika-label">'+L+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+ee.join("")+"</select></div>",J.showMonthAfterYear?le+=W+he:le+=he+W,te&&(B===0||J.minMonth>=B)&&(re=!1),ce&&(B===11||J.maxMonth<=B)&&(Z=!1),M===0&&(le+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),M===A._o.numberOfMonths-1&&(le+='<button class="pika-next'+(Z?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),le+="</div>"},H=function(A,M,L){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+L+'">'+q(A)+G(M)+"</table>"},ae=function(A){var M=this,L=M.config(A);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(h(oe,"is-disabled")||(h(oe,"pika-button")&&!h(oe,"is-empty")&&!h(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),L.bound&&a(function(){M.hide(),L.blurFieldOnSelect&&L.field&&L.field.blur()},100)):h(oe,"pika-prev")?M.prevMonth():h(oe,"pika-next")&&M.nextMonth()),h(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(h(oe,"pika-select-month")?M.gotoMonth(oe.value):h(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:L.field&&L.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(L.parse)return L.parse(L.field.value,L.format);if(o){var ne=n(L.field.value,L.format,L.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(L.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(h(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&h(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(h(se,"pika-single")||se===L.trigger)return;while(se=se.parentNode);M._v&&oe!==L.trigger&&se!==L.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(L.isRTL?" is-rtl":"")+(L.theme?" "+L.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),L.keyboardInput&&l(i,"keydown",M._onKeyChange),L.field&&(L.container?L.container.appendChild(M.el):L.bound?i.body.appendChild(M.el):L.field.parentNode.insertBefore(M.el,L.field.nextSibling),l(L.field,"change",M._onInputChange),L.defaultDate||(L.defaultDate=M._parseFieldValue(),L.setDefaultDate=!0));var B=L.defaultDate;b(B)?L.setDefaultDate?M.setDate(B,!0):M.gotoDate(B):M.gotoDate(new Date),L.bound?(this.hide(),M.el.className+=" is-bound",l(L.trigger,"click",M._onInputClick),l(L.trigger,"focus",M._onInputFocus),l(L.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(A){this._o||(this._o=S({},I,!0));var M=S(this._o,A,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var L=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=L>4?4:L,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var B=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||B,M.yearRange[1]=parseInt(M.yearRange[1],10)||B}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||I.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(A){return A=A||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,A):o?n(this._d).format(A):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(A,M){o&&n.isMoment(A)&&this.setDate(A.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(A,M){if(!A)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof A=="string"&&(A=new Date(Date.parse(A))),!!b(A)){var L=this._o.minDate,B=this._o.maxDate;b(L)&&A<L?A=L:b(B)&&A>B&&(A=B),this._d=new Date(A.getTime()),k(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(A){var M=!0;if(b(A)){if(this.calendars){var L=new Date(this.calendars[0].year,this.calendars[0].month,1),B=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=A.getTime();B.setMonth(B.getMonth()+1),B.setDate(B.getDate()-1),M=ne<L.getTime()||B.getTime()<ne}M&&(this.calendars=[{month:A.getMonth(),year:A.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(A,M){var L=this.getDate()||new Date,B=parseInt(M)*24*60*60*1e3,ne;A==="add"?ne=new Date(L.valueOf()+B):A==="subtract"&&(ne=new Date(L.valueOf()-B)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var A=1;A<this._o.numberOfMonths;A++)this.calendars[A]=O({month:this.calendars[0].month+A,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(A){isNaN(A)||(this.calendars[0].month=parseInt(A,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(A){isNaN(A)||(this.calendars[0].year=parseInt(A,10),this.adjustCalendars())},setMinDate:function(A){A instanceof Date?(k(A),this._o.minDate=A,this._o.minYear=A.getFullYear(),this._o.minMonth=A.getMonth()):(this._o.minDate=I.minDate,this._o.minYear=I.minYear,this._o.minMonth=I.minMonth,this._o.startRange=I.startRange),this.draw()},setMaxDate:function(A){A instanceof Date?(k(A),this._o.maxDate=A,this._o.maxYear=A.getFullYear(),this._o.maxMonth=A.getMonth()):(this._o.maxDate=I.maxDate,this._o.maxYear=I.maxYear,this._o.maxMonth=I.maxMonth,this._o.endRange=I.endRange),this.draw()},setStartRange:function(A){this._o.startRange=A},setEndRange:function(A){this._o.endRange=A},draw:function(A){if(!(!this._v&&!A)){var M=this._o,L=M.minYear,B=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=L&&(this._y=L,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=B&&(this._y=B,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var ee=0;ee<M.numberOfMonths;ee++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,ee,this.calendars[ee].year,this.calendars[ee].month,this.calendars[0].year,j)+this.render(this.calendars[ee].year,this.calendars[ee].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var A,M,L,B,ne,oe,se,j,ee,J,te,ce;if(!this._o.container){if(this.el.style.position="absolute",A=this._o.trigger,M=A,L=this.el.offsetWidth,B=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof A.getBoundingClientRect=="function")J=A.getBoundingClientRect(),j=J.left+window.pageXOffset,ee=J.bottom+window.pageYOffset;else for(j=M.offsetLeft,ee=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,ee+=M.offsetTop;(this._o.reposition&&j+L>ne||this._o.position.indexOf("right")>-1&&j-L+A.offsetWidth>0)&&(j=j-L+A.offsetWidth,te=!1),(this._o.reposition&&ee+B>oe+se||this._o.position.indexOf("top")>-1&&ee-B-A.offsetHeight>0)&&(ee=ee-B-A.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=ee+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(A,M,L){var B=this._o,ne=new Date,oe=P(A,M),se=new Date(A,M,1).getDay(),j=[],ee=[];k(ne),B.firstDay>0&&(se-=B.firstDay,se<0&&(se+=7));for(var J=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?A-1:A,le=M===11?A+1:A,he=P(ce,J),W=oe+se,re=W;re>7;)re-=7;W+=7-re;for(var Z=!1,fe=0,pe=0;fe<W;fe++){var be=new Date(A,M,1+(fe-se)),ge=b(this._d)?_(be,this._d):!1,Re=_(be,ne),Ve=B.events.indexOf(be.toDateString())!==-1,Ne=fe<se||fe>=oe+se,Je=1+(fe-se),ke=M,ut=A,Yt=B.startRange&&_(B.startRange,be),rt=B.endRange&&_(B.endRange,be),Ot=B.startRange&&B.endRange&&B.startRange<be&&be<B.endRange,Ut=B.minDate&&be<B.minDate||B.maxDate&&be>B.maxDate||B.disableWeekends&&m(be)||B.disableDayFn&&B.disableDayFn(be);Ne&&(fe<se?(Je=he+Je,ke=J,ut=ce):(Je=Je-oe,ke=te,ut=le));var Lt={day:Je,month:ke,year:ut,hasEvent:Ve,isSelected:ge,isToday:Re,isDisabled:Ut,isEmpty:Ne,isStartRange:Yt,isEndRange:rt,isInRange:Ot,showDaysInNextAndPreviousMonths:B.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:B.enableSelectionDaysInNextAndPreviousMonths};B.pickWholeWeek&&ge&&(Z=!0),ee.push(z(Lt)),++pe===7&&(B.showWeekNumber&&ee.unshift($(fe-se,M,A,B.firstWeekOfYearMinDays)),j.push(K(ee,B.isRTL,B.pickWholeWeek,Z)),ee=[],pe=0,Z=!1)}return H(B,j,L)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var A=this._v;A!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,A!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var A=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),A.keyboardInput&&d(i,"keydown",this._onKeyChange),A.field&&(d(A.field,"change",this._onInputChange),A.bound&&(d(A.trigger,"click",this._onInputClick),d(A.trigger,"focus",this._onInputFocus),d(A.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(yl)),yl.exports}DF();const OF=(e,t,n)=>n==="0"?"":n?"<span class='sgi sgi-check'></span>":"";function MF(e){return`(${IF(e)})`}function IF(e){return e.replace("-","")}function Mh(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:h=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&h)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),P=`${n}${v}`,k=p?`-${P}`:P,_=p&&a?MF(k):k;return l?_:p?i?`<span class="${i}">${_}</span>`:_:d?`<span class="${d}">${_}</span>`:_}function Kv(e){return function(n,o,r){return Mh(r,e)}}const NF=Kv().name,AF=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${Mh(n)}`:""};function FF(e,t,n){return n?"✓":""}function LF(e){if(!e.getSelectionModel())return Am(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Am(e)),t}function Am(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}var Ec=(e=>(e.slickTable="slick-table",e.sorting="sorting",e))(Ec||{});function Ad(){return JSON.parse(localStorage.getItem(Ec.slickTable)||"{}")}function Fd(e){return e[Ec.sorting]||{}}function Fm(e,t){localStorage.setItem(Ec.slickTable,JSON.stringify({...e,sorting:t}))}class $F{getTableSorting(t){const n=Ad();return Fd(n)[t]}resetTableSorting(t){const n=Ad(),o=Fd(n);delete o[t],Fm(n,o)}setTableSorting(t,n,o){const r=Ad(),i=Fd(r);i[t]={columnId:n,isAscending:o},Fm(r,i)}}const Ld=new $F;class VF{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=Ss(t||this.emptyValue),r=Ss(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}stringsNumeric(t,n){return!t&&!n?0:t?n?t.localeCompare(n,void 0,{numeric:!0}):1:-1}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const jF=new VF;class Xv{constructor(){this.sort=jF,this.withFormatter=[Co.TEXT,Co.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,h=a.sortCol;if(!l||!h)return;const p=h.field;if(!p)return;const y=h.sortAs;if(!y)return;const{formatter:w}=h,b=l.getData();d&&n===h?.id?(o=!0,Ld.resetTableSorting(t),l.setSortColumns([]),n=""):(o=!1,n=u,Ld.setTableSorting(t,u,d));const m=d?-1:1,v=b.getGrouping(),P=v.find(({getter:k})=>k===h.id);if(P){if(r||(r=v.map(({comparer:k})=>k)),o){const k=b.getGrouping(),_=k.findIndex(({getter:S})=>S===h.id);k[_].comparer=r[_],b.refresh();return}P.comparer=(k,_)=>{let S=k.value,C=_.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,h,null,l),C=w(0,0,C,h,null,l)),this.priority(k,_)||this.compare(S,C,m,y)}}else{const k=b.getItems(),_=b.getIdPropertyName();k.sort((S,C)=>{if(o)return S[_]-C[_];let O=S[p],I=C[p];return w&&this.withFormatter.includes(y)&&(O=w(0,0,O,h,S,l),I=w(0,0,I,h,C,l)),this.priority(S,C)||this.compare(O,I,m,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=Ld.getTableSorting(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);l&&(a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]}),document.querySelector(`#${t.id} [data-id="${r}"] .slick-sort-indicator`)?.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate())}}compare(t,n,o,r){switch(r){case Co.DATE:return this.sort.dates(t,n)*o;case Co.NUMBER:case Co.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case Co.TEXT_NUMERIC:return this.sort.stringsNumeric(t,n)*o;case Co.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const BF=new Xv;class WF{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}function HF(e){const t={};if(!e)return t;const n=e.summaryColumnIds,o=e.grid;if(!o)return t;const r=o.getSelectedRows();o.getColumns().forEach((l,d)=>{const{formatter:u,id:h,name:p}=l;n.includes(h)&&(t[h]={cell:d,column:l,formatter:u,label:p,total:0,totalFormatted:u?u(0,0,0,l,{},o):"0"})});const a=o.getData();return r.forEach(l=>{const d=a.getItem(l);Object.keys(t).forEach(u=>{t[u].total+=d[u],t[u].totalFormatted=t[u].formatter?t[u].formatter(l,t[u].cell,t[u].total,t[u].column,d,o):`${t[u].total}`})}),t}const Zv=ie(Ry)({alignItems:"center",color:"#1E456F",display:"flex",justifyContent:"space-between"}),zF=ie("span")({display:"flex",alignItems:"center"}),YF=ie("span")({marginLeft:"0.5em",width:"20px",cursor:"pointer",backgroundColor:"#1E456F","&:hover":{scale:"1.3"}}),$d={Icon:YF,Total:zF},UF=({label:e,total:t,totalFormatted:n})=>{const[o,r]=Fe.useState(!1);function i(){navigator.clipboard.writeText(`${t}`),r(!0),setTimeout(()=>{r(!1)},1e3)}return E.jsxs(Zv,{children:[E.jsx("span",{children:`Total ${e}:`}),E.jsxs($d.Total,{children:[E.jsx("span",{children:`${n}`}),o?E.jsx($d.Icon,{className:"sgi sgi-check"}):E.jsx(jy,{title:"Copy to clipboard",children:E.jsx($d.Icon,{className:"sgi sgi-content-copy",onClick:i})})]})]})},qF=ie(qu)({"& .MuiPaper-root":{minWidth:"25em"}}),GF=ie(Ty)({color:"#1E456F"}),KF=ie(fc)({padding:0}),XF=ie(ko)({borderColor:"#1E9577",color:"#1E9577",textTransform:"none"}),el={Button:XF,Dialog:qF,DialogTitle:GF,List:KF},ZF=()=>{const[e,t]=Fe.useState(0),[n,o]=Fe.useState(!1),[r,i]=Fe.useState({});function a(){qo.open=!1}return Fe.useEffect(()=>{function l(){const d=qo.open;if(d){const u=qo.table,h=u?.grid;t(h?.getSelectedRows().length||0),i(HF(u))}o(d)}return qo.subscribe(l),()=>{qo.unsubscribe(l)}},[]),n?E.jsxs(el.Dialog,{open:n,onClose:a,children:[E.jsx(el.DialogTitle,{children:"Selected rows summary"}),E.jsx(Ku,{children:E.jsxs(el.List,{children:[E.jsx(Zv,{children:`Number of selected rows: ${e}`}),Object.entries(r).map(([l,{label:d,total:u,totalFormatted:h}])=>E.jsx(Bn,{children:E.jsx(UF,{label:d,total:u,totalFormatted:h})},l))]})}),E.jsx(Gu,{children:E.jsx(el.Button,{variant:"outlined",onClick:a,children:"Close"})})]}):null};function Ih(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const QF=ie(Bn)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),JF={Wrapper:QF},Nh=({setIsOpened:e})=>E.jsx(JF.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),eL=ie(Bn)({visibility:"hidden",borderRadius:"5px",backgroundColor:"#FFFFFF",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0}),tL={Wrapper:eL},Ah=({children:e,id:t})=>E.jsx(tL.Wrapper,{id:t,children:e});function nL(e){const{columnId:t,table:n}=Rn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?Io.highlightColumn(n,t):Io.resetColumn(n,t))}const rr=qv(nL),js={1:"",2:""},Qv="column_filters",lo={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function oL(e){switch(e){case hn.Boolean:return je.Boolean;case hn.Date:return je.DateEqual;case hn.MultipleSelect:return je.MultipleSelect;case hn.Number:case hn.NumberFormatted:return je.NumberEqual;case hn.Text:return je.TextContain}}function rL(e,t,n){Fe.useEffect(()=>{if(!e)return;const o=document.getElementById(Qv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=Rn;if(!a?.grid)return;const h=a.filter.args;Ih(o,l,d);const{filterId:p,value:y}=h.columnFilters?.[r]||{},w=p||oL(i),b=y||js;a.filter.args={...h,columnFilters:{...h.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function sL(e){Fe.useEffect(()=>{function t(){e(!0)}return Rn.subscribe(t),()=>{Rn.unsubscribe(t)}},[])}function gu(e){return{format:Yr.ui,value:e?xe(e,jN):null}}const iL=ie(ko)({width:"5em",alignSelf:"flex-end"}),aL={Button:iL},lL=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=Rn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,Io.resetColumn(i,r),t(js),e(!1)}return E.jsx(aL.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},cL=ie(hc)({padding:0}),dL=ie(ky)({margin:"0.5em 0 0 1em"}),tl={Checkbox:cL,FormGroup:dL},uL=({setValue:e,value:t})=>{function n(o){e(o),rr(o)}return E.jsxs(tl.FormGroup,{children:[E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},hL={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},fL={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Lm=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
356
356
  `);class Jv{constructor({locale:t,formats:n,instance:o}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=hL,this.setLocaleToValue=r=>{const i=this.getCurrentLocaleCode();return i===r.locale()?r:r.locale(i)},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=r=>{const i=this.moment(r).local();return this.locale===void 0?i:i.locale(this.locale)},this.createUTCDate=r=>{const i=this.moment.utc(r);return this.locale===void 0?i:i.locale(this.locale)},this.createTZDate=(r,i)=>{if(!this.hasTimezonePlugin())throw new Error(Lm);const a=i==="default"?this.moment(r):this.moment.tz(r,i);return this.locale===void 0?a:a.locale(this.locale)},this.date=(r,i="default")=>r===null?null:i==="UTC"?this.createUTCDate(r):i==="system"||i==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(r):this.createTZDate(r,i),this.getInvalidDate=()=>this.moment(new Date("Invalid Date")),this.getTimezone=r=>{const i=r._z?.name,a=r.isUTC()?"UTC":"system";return i??this.moment.defaultZone?.name??a},this.setTimezone=(r,i)=>{if(this.getTimezone(r)===i)return r;if(i==="UTC")return r.clone().utc();if(i==="system")return r.clone().local();if(!this.hasTimezonePlugin()){if(i!=="default")throw new Error(Lm);return r}const a=i==="default"?this.moment.defaultZone?.name??"system":i;if(a==="system")return r.clone().local();const l=r.clone();return l.tz(a),l},this.toJsDate=r=>r.toDate(),this.parse=(r,i)=>r===""?null:this.locale?this.moment(r,i,this.locale,!0):this.moment(r,i,!0),this.getCurrentLocaleCode=()=>this.locale||xe.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(xe.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=r=>{const i=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return r.match(i).map(a=>{const l=a[0];return l==="L"||l===";"?xe.localeData(this.getCurrentLocaleCode()).longDateFormat(a):a}).join("")},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>{const a=r.clone();return a.locale(this.getCurrentLocaleCode()),a.format(i)},this.formatNumber=r=>r,this.isEqual=(r,i)=>r===null&&i===null?!0:r===null||i===null?!1:r.isSame(i),this.isSameYear=(r,i)=>r.isSame(i,"year"),this.isSameMonth=(r,i)=>r.isSame(i,"month"),this.isSameDay=(r,i)=>r.isSame(i,"day"),this.isSameHour=(r,i)=>r.isSame(i,"hour"),this.isAfter=(r,i)=>r.isAfter(i),this.isAfterYear=(r,i)=>r.isAfter(i,"year"),this.isAfterDay=(r,i)=>r.isAfter(i,"day"),this.isBefore=(r,i)=>r.isBefore(i),this.isBeforeYear=(r,i)=>r.isBefore(i,"year"),this.isBeforeDay=(r,i)=>r.isBefore(i,"day"),this.isWithinRange=(r,[i,a])=>r.isBetween(i,a,null,"[]"),this.startOfYear=r=>r.clone().startOf("year"),this.startOfMonth=r=>r.clone().startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r.clone()).startOf("week"),this.startOfDay=r=>r.clone().startOf("day"),this.endOfYear=r=>r.clone().endOf("year"),this.endOfMonth=r=>r.clone().endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r.clone()).endOf("week"),this.endOfDay=r=>r.clone().endOf("day"),this.addYears=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"years"):r.clone().add(i,"years"),this.addMonths=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"months"):r.clone().add(i,"months"),this.addWeeks=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"weeks"):r.clone().add(i,"weeks"),this.addDays=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"days"):r.clone().add(i,"days"),this.addHours=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"hours"):r.clone().add(i,"hours"),this.addMinutes=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"minutes"):r.clone().add(i,"minutes"),this.addSeconds=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"seconds"):r.clone().add(i,"seconds"),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month"),this.getDate=r=>r.get("date"),this.getHours=r=>r.get("hours"),this.getMinutes=r=>r.get("minutes"),this.getSeconds=r=>r.get("seconds"),this.getMilliseconds=r=>r.get("milliseconds"),this.setYear=(r,i)=>r.clone().year(i),this.setMonth=(r,i)=>r.clone().month(i),this.setDate=(r,i)=>r.clone().date(i),this.setHours=(r,i)=>r.clone().hours(i),this.setMinutes=(r,i)=>r.clone().minutes(i),this.setSeconds=(r,i)=>r.clone().seconds(i),this.setMilliseconds=(r,i)=>r.clone().milliseconds(i),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const i=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let l=0,d=i;const u=[];for(;d.isBefore(a);){const h=Math.floor(l/7);u[h]=u[h]||[],u[h].push(d),d=this.addDays(d,1),l+=1}return u},this.getWeekNumber=r=>r.week(),this.getDayOfWeek=r=>r.day()+1,this.moment=o||xe,this.locale=t,this.formats=Q({},fL,n)}getYearRange([t,n]){const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}}const vi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),pL=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let i;if(e!=null)i=e;else if(r.includes(t))i=t;else if(r.length>0)i=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:i}},Fl=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},Fi=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,utils:a,timezone:l})=>{const d=Fl(a,a.date(void 0,l),e);n&&a.isBefore(r,d)&&(r=d),t&&a.isAfter(o,d)&&(o=d);let u=e,h=e;for(a.isBefore(e,r)&&(u=r,h=null),a.isAfter(e,o)&&(h&&(h=o),u=null);u||h;){if(u&&a.isAfter(u,o)&&(u=null),h&&a.isBefore(h,r)&&(h=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(h){if(!i(h))return h;h=a.addDays(h,-1)}}return null},mL=(e,t)=>t==null||!e.isValid(t)?null:t,eo=(e,t,n)=>t==null||!e.isValid(t)?n:t,gL=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Fh=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},eb=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),yL=["year","month","day"],$m=e=>yL.includes(e),Lh=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return vi(n,["year"])?r.year:vi(n,["month"])?r.month:vi(n,["day"])?r.dayOfMonth:vi(n,["month","year"])?`${r.month} ${r.year}`:vi(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},vL=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},bL=["hours","minutes","seconds"],wL=e=>bL.includes(e),Vm=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),CL=(e,t)=>(n,o)=>e?t.isAfter(n,o):Vm(n,t)>Vm(o,t),xo={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},SL=e=>Math.max(...e.map(t=>xo[t.type]??1)),bi=(e,t,n)=>{if(t===xo.year)return e.startOfYear(n);if(t===xo.month)return e.startOfMonth(n);if(t===xo.day)return e.startOfDay(n);let o=n;return t<xo.minutes&&(o=e.setMinutes(o,0)),t<xo.seconds&&(o=e.setSeconds(o,0)),t<xo.milliseconds&&(o=e.setMilliseconds(o,0)),o},_L=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():bi(t,n,eb(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=bi(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=bi(t,n,e.maxDate));const a=CL(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=bi(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Fl(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=bi(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Fl(t,i,e.maxTime))),i},$h=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
357
357
  `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},xL=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Pc=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},tb=(e,t,n,o)=>{switch(n){case"month":return Fh(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return Pc(e,o);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(i=>e.formatByString(i,o))}default:return[]}},jm="s",RL=["0","1","2","3","4","5","6","7","8","9"],TL=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),jm)==="0"?RL:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),jm))},Ur=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let r=0;r<e.length;r+=1){o+=e[r];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},Vh=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Bm=(e,t)=>{const n=Ur(e,t);return n!==" "&&!Number.isNaN(Number(n))},nb=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},ob=(e,t,n,o,r)=>{if(process.env.NODE_ENV!=="production"&&r.type!=="day"&&r.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${r.format}" is a digit format with letter in it.'
358
358
  This type of format is only supported for 'day' sections`].join(`
package/dist/index.es.js CHANGED
@@ -34526,7 +34526,7 @@ class PW {
34526
34526
  const n = t.closest(".slick-viewport");
34527
34527
  if (!n) return;
34528
34528
  const { bottom: o, right: r } = t.getBoundingClientRect(), { bottom: i, right: a } = n.getBoundingClientRect();
34529
- if (o >= i) {
34529
+ if (t.style.left = "0", o >= i) {
34530
34530
  const l = this.args.grid.getOptions().rowHeight;
34531
34531
  t.style.position = "absolute", t.style.bottom = `${l}px`, t.style.top = "auto";
34532
34532
  }
@@ -35046,7 +35046,7 @@ function vF() {
35046
35046
  }(Sl)), Sl.exports;
35047
35047
  }
35048
35048
  vF();
35049
- const DW = (e, t, n) => n ? "<span class='sgi sgi-check'></span>" : "";
35049
+ const DW = (e, t, n) => n === "0" ? "" : n ? "<span class='sgi sgi-check'></span>" : "";
35050
35050
  function bF(e) {
35051
35051
  return `(${wF(e)})`;
35052
35052
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/lib/editors/Autocomplete/Autocomplete.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,MAAM,EACN,eAAe,EACf,sBAAsB,EAEtB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,8BAAsB,YAAa,YAAW,MAAM;IACnD,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC9C,SAAS,CAAC,YAAY,SAAM;IAC5B,SAAS,CAAC,YAAY,SAAM;IAC5B,SAAS,CAAC,EAAE,SAAkB;IAC9B,SAAS,CAAC,KAAK,EAAE,gBAAgB,CAAmC;IAC7D,cAAc,EAAE,MAAM,EAAE,CAA6C;IAC5E,SAAS,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAE5B,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;IAGvC,YAAY,IAAI,IAAI;IAKpB,OAAO,IAAI,IAAI;IAMf,KAAK,IAAI,IAAI;IAGb,IAAI,IAAI,IAAI;IAWZ,cAAc,IAAI,OAAO;IAMzB,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAOhC,WAAW,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAmBvC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IACzC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IACpC,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA8BrC,YAAY,CAAC,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,GAAG,IAAI;IAKvD,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAW5C,cAAc,IAAI,MAAM;IAGxB,SAAS,CAAC,IAAI,EAAE,gBAAgB,CAAC,cAAc,CAAC,GAAG,IAAI;IASvD,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAC1C,QAAQ,IAAI,sBAAsB;CAelC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/lib/editors/Autocomplete/Autocomplete.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,MAAM,EACN,eAAe,EACf,sBAAsB,EAEtB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,8BAAsB,YAAa,YAAW,MAAM;IACnD,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC9C,SAAS,CAAC,YAAY,SAAM;IAC5B,SAAS,CAAC,YAAY,SAAM;IAC5B,SAAS,CAAC,EAAE,SAAkB;IAC9B,SAAS,CAAC,KAAK,EAAE,gBAAgB,CAAmC;IAC7D,cAAc,EAAE,MAAM,EAAE,CAA6C;IAC5E,SAAS,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAE5B,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;IAGvC,YAAY,IAAI,IAAI;IAKpB,OAAO,IAAI,IAAI;IAMf,KAAK,IAAI,IAAI;IAGb,IAAI,IAAI,IAAI;IAWZ,cAAc,IAAI,OAAO;IAMzB,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAOhC,WAAW,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAoBvC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IACzC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IACpC,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA8BrC,YAAY,CAAC,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,GAAG,IAAI;IAKvD,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAW5C,cAAc,IAAI,MAAM;IAGxB,SAAS,CAAC,IAAI,EAAE,gBAAgB,CAAC,cAAc,CAAC,GAAG,IAAI;IASvD,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAC1C,QAAQ,IAAI,sBAAsB;CAelC"}
@@ -1,2 +1,2 @@
1
- export declare const formatterCheckMark: (_row: number, _cell: number, value: boolean) => "" | "<span class='sgi sgi-check'></span>";
1
+ export declare const formatterCheckMark: (_row: number, _cell: number, value: boolean | "0" | "1" | 0 | 1) => "" | "<span class='sgi sgi-check'></span>";
2
2
  //# sourceMappingURL=formatterCheckMark.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatterCheckMark.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/formatters/formatterCheckMark.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,GAC9B,MAAM,MAAM,EACZ,OAAO,MAAM,EACb,OAAO,OAAO,+CAGd,CAAC"}
1
+ {"version":3,"file":"formatterCheckMark.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/formatters/formatterCheckMark.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,GAC9B,MAAM,MAAM,EACZ,OAAO,MAAM,EACb,OAAO,OAAO,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,+CAIlC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slick-table",
3
- "version": "1.1.36",
3
+ "version": "1.1.37",
4
4
  "description": "Enhanced version of SlickGrid library",
5
5
  "private": false,
6
6
  "type": "module",
@@ -66,6 +66,7 @@ export abstract class Autocomplete implements Editor {
66
66
  list.getBoundingClientRect();
67
67
  const { bottom: canvasBottom, right: canvasRight } =
68
68
  canvas.getBoundingClientRect();
69
+ list.style.left = "0";
69
70
  if (listBottom >= canvasBottom) {
70
71
  const rowHeight = this.args.grid.getOptions().rowHeight;
71
72
  list.style.position = "absolute";
@@ -1,7 +1,8 @@
1
1
  export const formatterCheckMark = (
2
2
  _row: number,
3
3
  _cell: number,
4
- value: boolean,
4
+ value: boolean | "0" | "1" | 0 | 1,
5
5
  ) => {
6
+ if (value === "0") return "";
6
7
  return value ? "<span class='sgi sgi-check'></span>" : "";
7
8
  };