/*------------------------------------------------------------------------ - TableFilter v3.0.0 by Max Guglielmi - build date: Fri Mar 06 2015 19:46:54 - http://tablefilter.free.fr - Copyright (c) 2014, Licensed under the MIT License ------------------------------------------------------------------------*/ !function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b:a.TableFilter=b()}(this,function(){var requirejs,require,define;return function(a){function b(a,b){return r.call(a,b)}function c(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=p.map,q=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(n=n.slice(0,n.length-1),a=a.split("/"),g=a.length-1,p.nodeIdCompat&&t.test(a[g])&&(a[g]=a[g].replace(t,"")),a=n.concat(a),k=0;k0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||q)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&q&&q[d]&&(i=q[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function d(b,c){return function(){var d=s.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),k.apply(a,d.concat([b,c]))}}function e(a){return function(b){return c(b,a)}}function f(a){return function(b){n[a]=b}}function g(c){if(b(o,c)){var d=o[c];delete o[c],q[c]=!0,j.apply(a,d)}if(!b(n,c)&&!b(q,c))throw new Error("No "+c);return n[c]}function h(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function i(a){return function(){return p&&p.config&&p.config[a]||{}}}var j,k,l,m,n={},o={},p={},q={},r=Object.prototype.hasOwnProperty,s=[].slice,t=/\.js$/;l=function(a,b){var d,f=h(a),i=f[0];return a=f[1],i&&(i=c(i,b),d=g(i)),i?a=d&&d.normalize?d.normalize(a,e(b)):c(a,b):(a=c(a,b),f=h(a),i=f[0],a=f[1],i&&(d=g(i))),{f:i?i+"!"+a:a,n:a,pr:i,p:d}},m={require:function(a){return d(a)},exports:function(a){var b=n[a];return"undefined"!=typeof b?b:n[a]={}},module:function(a){return{id:a,uri:"",exports:n[a],config:i(a)}}},j=function(c,e,h,i){var j,k,p,r,s,t,u=[],v=typeof h;if(i=i||c,"undefined"===v||"function"===v){for(e=!e.length&&h.length?["require","exports","module"]:e,s=0;s0){var d=document.cookie,e=d.indexOf(c);if(-1!==e){e+=c.length;var f=d.indexOf(";",e);-1===f&&(f=d.length),b=unescape(d.substring(e,f))}}return b},b.remove=function(a){this.write(a,"",-1)},b.valueToArray=function(a,b){b||(b=",");var c=this.read(a),d=c.split(b);return d},b.getValueByIndex=function(a,b,c){c||(c=",");var d=this.valueToArray(a,c);return d[b]},a.Cookie=b}),define("sort",["exports","string"],function(a,b){var c=b.Str,d={ignoreCase:function(a,b){var d=c.lower(a),e=c.lower(b);return e>d?-1:d>e?1:0}};a.Sort=d}),define("modules/store",["exports","../cookie"],function(a,b){{var c=function(a,b,c){b&&Object.defineProperties(a,b),c&&Object.defineProperties(a.prototype,c)},d=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},e=b.Cookie;a.Store=function(){function a(b){d(this,a);var c=b.config();this.duration=isNaN(c.set_cookie_duration)?1e5:parseInt(c.set_cookie_duration,10),this.tf=b}return c(a,null,{saveFilterValues:{value:function(a){for(var b=this.tf,c=[],d=0;d0&&c.removeChild(y[0]),this.headTbl.style.width=c.style.width,this.headTbl.style.tableLayout="fixed",c.style.tableLayout="fixed",this.headTbl.cellPadding=c.cellPadding,this.headTbl.cellSpacing=c.cellSpacing,a.setColWidths(),this.headTblCont.style.width=this.tblCont.clientWidth+"px",c.style.width="";var z=this;j.add(this.tblCont,"scroll",function(){var a=this.scrollLeft;if(z.headTblCont.scrollLeft=a,!z.isPointerXOverwritten)try{z.Evt.pointerX=function(b){var c=b||global.event,d=tf_StandardBody().scrollLeft+a;return c.pageX+a||c.clientX+d},z.isPointerXOverwritten=!0}catch(b){z.isPointerXOverwritten=!1}}),b.sort!==!1&&(a.sort=!0,a.sortConfig.asyncSort=!0,a.sortConfig.triggerIds=o),this.gridEnableColResizer&&(a.hasExtensions?a._containsStr("colsresizer",Str.lower(a.extensions.src.toString()))||(a.extensions.name.push("ColumnsResizer_"+a.id),a.extensions.src.push(a.gridColResizerPath),a.extensions.description.push("Columns Resizing"),a.extensions.initialize.push(function(a){a.SetColsResizer("ColumnsResizer_"+a.id)})):(a.extensions={name:["ColumnsResizer_"+a.id],src:[this.gridColResizerPath],description:["Columns Resizing"],initialize:[function(a){a.SetColsResizer("ColumnsResizer_"+a.id)}]},a.hasExtensions=!0)),b.col_resizer_cols_headers_table=this.headTbl.getAttribute("id"),b.col_resizer_cols_headers_index=this.gridHeadRowIndex,b.col_resizer_width_adjustment=0,b.col_enable_text_ellipsis=!1,z.tblHasColTag=h.tag(c,"col").length>0?!0:!1;var A=function(b){if(b){for(var d=a.nbCells-1;d>=0;d--){var e=h.create("col",["id",a.id+"_col_"+d]);c.firstChild.parentNode.insertBefore(e,c.firstChild),e.style.width=a.colWidth[d],b.gridColElms[d]=e}b.tblHasColTag=!0}};if(z.tblHasColTag)for(var B=h.tag(c,"col"),C=0;C',this.popUpDivCssClass=c.popup_div_css_class||"popUpFilter",this.onBeforePopUpOpen=h.isFn(c.on_before_popup_filter_open)?c.on_before_popup_filter_open:null,this.onAfterPopUpOpen=h.isFn(c.on_after_popup_filter_open)?c.on_after_popup_filter_open:null,this.onBeforePopUpClose=h.isFn(c.on_before_popup_filter_close)?c.on_before_popup_filter_close:null,this.onAfterPopUpClose=h.isFn(c.on_after_popup_filter_close)?c.on_after_popup_filter_close:null,this.popUpFltSpans=[],this.popUpFltImgs=[],this.popUpFltElms=this.popUpFltElmCache||[],this.popUpFltAdjustToContainer=!0,this.tf=b}return f(a,null,{onClick:{value:function(a){var b=a||global.event,c=b.target.parentNode,d=parseInt(c.getAttribute("ci"),10);if(this.closeAll(d),this.toggle(d),this.popUpFltAdjustToContainer){var e=this.popUpFltElms[d],f=this.tf.getHeaderElement(d),g=.95*f.clientWidth;if(k.isIE()){var h=i.position(f).left;e.style.left=h+"px"}e.style.width=parseInt(g,10)+"px"}j.cancel(b),j.stop(b)},writable:!0,configurable:!0},init:{value:function(){for(var a=this,b=this.tf,c=0;cv;v++)if(a===v&&(!b||b&&e.disableExcludedOptions)||a==v&&b&&(""===l[s].style.display&&!e.paging||e.paging&&(!e.validRowsIndex||e.validRowsIndex&&i.has(e.validRowsIndex,s))&&(void 0===n||n==a||n!=a&&i.has(e.validRowsIndex,s)))){var w=e.getCellData(v,t[v]),x=j.matchCase(w,m);if(i.has(this.opts,x,m)||this.opts.push(w),b&&e.disableExcludedOptions){var y=r[v];y||(y=this.GetFilteredDataCol(v)),!i.has(y,x,m)&&!i.has(q,x,m)&&!this.isFirstLoad&&q.push(w)}}}if(this.isCustom){var z=e.__getCustomValues(a);this.opts=z[0],this.optsTxt=z[1]}if(e.sortSlc&&!this.isCustom&&(m?(this.opts.sort(),q&&q.sort()):(this.opts.sort(k.ignoreCase),q&&q.sort(k.ignoreCase))),e.sortNumAsc&&i.has(e.sortNumAsc,a))try{this.opts.sort(numSortAsc),q&&q.sort(numSortAsc),this.isCustom&&this.optsTxt.sort(numSortAsc)}catch(A){this.opts.sort(),q&&q.sort(),this.isCustom&&this.optsTxt.sort()}if(e.sortNumDesc&&i.has(e.sortNumDesc,a))try{this.opts.sort(numSortDesc),q&&q.sort(numSortDesc),this.isCustom&&this.optsTxt.sort(numSortDesc)}catch(A){this.opts.sort(),q&&q.sort(),this.isCustom&&this.optsTxt.sort()}this.addOptions(a,g,b,q,o,p)}},writable:!0,configurable:!0},addOptions:{value:function(a,b,c,d,e,f){var g=this.tf,k=j.lower(this.slcFillingMethod),l=b.value;b.innerHTML="",b=this.addFirstOption(b);for(var m=0;m"+o+""}else{var r;r=g.fillSlcOnDemand&&l===this.opts[m]&&g["col"+a]===g.fltTypeSlc?h.createOpt(o,n,!0):g["col"+a]!==g.fltTypeMulti?h.createOpt(o,n," "!==e[a]&&n===e[a]?!0:!1):h.createOpt(o,n,i.has(f,j.matchCase(this.opts[m],g.matchCase),g.matchCase)||-1!==f.toString().indexOf(n)?!0:!1),p&&(r.disabled=!0),b.appendChild(r)}}"innerhtml"===k&&(b.innerHTML+=this.slcInnerHtml),b.setAttribute("filled","1")},writable:!0,configurable:!0},addFirstOption:{value:function(a){var b=this.tf,c=j.lower(this.slcFillingMethod);if("innerhtml"===c)this.slcInnerHtml+='";else{var d=h.createOpt(this.enableSlcResetFilter?b.displayAllText:"","");if(this.enableSlcResetFilter||(d.style.display="none"),a.appendChild(d),b.enableEmptyOption){var e=h.createOpt(b.emptyText,b.emOperator);a.appendChild(e)}if(b.enableNonEmptyOption){var f=h.createOpt(b.nonEmptyText,b.nmOperator);a.appendChild(f)}}return a},writable:!0,configurable:!0}}),a}()}Object.defineProperty(a,"__esModule",{value:!0})}),define("modules/checkList",["exports","../dom","../array","../string","../sort","../event"],function(a,b,c,d,e,f){{var g=function(a,b,c){b&&Object.defineProperties(a,b),c&&Object.defineProperties(a.prototype,c)},h=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},i=b.Dom,j=c.Arr,k=d.Str,l=e.Sort,m=f.Event;a.CheckList=function(){function a(b){h(this,a);var c=b.config();this.checkListDiv=[],this.checkListDivCssClass=c.div_checklist_css_class||"div_checklist",this.checkListCssClass=c.checklist_css_class||"flt_checklist",this.checkListItemCssClass=c.checklist_item_css_class||"flt_checklist_item",this.checkListSlcItemCssClass=c.checklist_selected_item_css_class||"flt_checklist_slc_item",this.activateCheckListTxt=c.activate_checklist_text||"Click to load filter data",this.checkListItemDisabledCssClass=c.checklist_item_disabled_css_class||"flt_checklist_item_disabled",this.enableCheckListResetFilter=c.enable_checklist_reset_filter===!1?!1:!0,this.isCustom=null,this.opts=null,this.optsTxt=null,this.tf=b}return g(a,null,{onChange:{value:function(a){this.tf.Evt._OnSlcChange(a)},writable:!0,configurable:!0},optionClick:{value:function(a){this.setCheckListValues(a.target),this.onChange(a)},writable:!0,configurable:!0},build:{value:function(a,b,c){var d=this.tf;d.EvtManager(d.Evt.name.checklist,{slcIndex:a,slcExternal:b,slcId:c})},writable:!0,configurable:!0},_build:{value:function(a){var b=this,c=void 0===arguments[1]?!1:arguments[1],d=void 0===arguments[2]?null:arguments[2],e=this.tf;a=parseInt(a,10),this.opts=[],this.optsTxt=[];var f=e.prfxCheckListDiv+a+"_"+e.id;if((i.id(f)||c)&&(i.id(d)||!c)){var g=c?i.id(d):this.checkListDiv[a],h=i.create("ul",["id",e.fltIds[a]],["colIndex",a]);h.className=this.checkListCssClass,m.add(h,"change",function(a){b.onChange(a)});var n=e.tbl.rows;this.isCustom=e.hasCustomSlcOptions&&j.has(e.customSlcOptions.cols,a);var o;e.refreshFilters&&e.activeFilterId&&(o=e.activeFilterId.split("_")[0],o=o.split(e.prfxFlt)[1]);var p,q=[];e.refreshFilters&&e.disableExcludedOptions&&(p=[]);for(var r=e.refRow;ru;u++)if(a===u&&(!e.refreshFilters||e.refreshFilters&&e.disableExcludedOptions)||a===u&&e.refreshFilters&&(""===n[r].style.display&&!e.paging||e.paging&&(!o||o===a||o!=a&&j.has(e.validRowsIndex,r)))){var v=e.getCellData(u,s[u]),w=k.matchCase(v,e.matchCase);j.has(this.opts,w,e.matchCase)||this.opts.push(v);var x=q[u];e.refreshFilters&&e.disableExcludedOptions&&(x||(q[u]=e.GetFilteredDataCol(u)),!j.has(x,w,e.matchCase)&&!j.has(p,w,e.matchCase)&&!e.isFirstLoad&&p.push(v))}}if(this.isCustom){var y=e.__getCustomValues(a);this.opts=y[0],this.optsTxt=y[1]}if(e.sortSlc&&!this.isCustom&&(e.matchCase?(this.opts.sort(),p&&p.sort()):(this.opts.sort(l.ignoreCase),p&&p.sort(l.ignoreCase))),e.sortNumAsc&&j.has(e.sortNumAsc,a))try{this.opts.sort(numSortAsc),p&&p.sort(numSortAsc),this.isCustom&&this.optsTxt.sort(numSortAsc)}catch(z){this.opts.sort(),p&&p.sort(),this.isCustom&&this.optsTxt.sort()}if(e.sortNumDesc&&j.has(e.sortNumDesc,a))try{this.opts.sort(numSortDesc),p&&p.sort(numSortDesc),this.isCustom&&this.optsTxt.sort(numSortDesc)}catch(z){this.opts.sort(),p&&p.sort(),this.isCustom&&this.optsTxt.sort()}this.addChecks(a,h,e.separator),e.fillSlcOnDemand&&(g.innerHTML=""),g.appendChild(h),g.setAttribute("filled","1")}},writable:!0,configurable:!0},addChecks:{value:function(a,b){var c=this,d=this.tf,e=this.addTChecks(a,b),f=[],g=d.Cpt.store,h=g?g.getFilterValues(d.fltsValuesCookie)[a]:null;h&&k.trim(h).length>0&&(d.hasCustomSlcOptions&&j.has(d.customSlcOptions.cols,a)?f.push(h):f=h.split(" "+d.orOperator+" "));for(var l=0;l0?1:0),f=e+d.pagingLength-1<=b.nbVisibleRows?e+d.pagingLength-1:b.nbVisibleRows;c=e+this.fromToTextSeparator+f+this.overText+b.nbVisibleRows}}else c=a&&""!==a?a:b.nbFilterableRows-b.nbHiddenRows-(b.hasVisibleRows?b.visibleRows.length:0);this.rowsCounterSpan.innerHTML=c,this.onAfterRefreshCounter&&this.onAfterRefreshCounter.call(null,b,this.rowsCounterSpan,c)}},writable:!0,configurable:!0},destroy:{value:function(){var a=this.tf;a.hasGrid()&&this.rowsCounterSpan&&(!this.rowsCounterTgtId&&this.rowsCounterDiv?i.isIE()?this.rowsCounterDiv.outerHTML="":this.rowsCounterDiv.parentNode.removeChild(this.rowsCounterDiv):g.id(this.rowsCounterTgtId).innerHTML="",this.rowsCounterSpan=null,this.rowsCounterDiv=null) },writable:!0,configurable:!0}}),a}()}Object.defineProperty(a,"__esModule",{value:!0})}),define("modules/statusBar",["exports","../dom","../event","../types","../helpers"],function(a,b,c,d,e){{var f=function(a,b,c){b&&Object.defineProperties(a,b),c&&Object.defineProperties(a.prototype,c)},g=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},h=b.Dom,i=(c.Event,d.Types),j=e.Helpers,k=window;a.StatusBar=function(){function a(b){g(this,a);var c=b.config();this.statusBarTgtId=c.status_bar_target_id||null,this.statusBarDiv=null,this.statusBarSpan=null,this.statusBarSpanText=null,this.statusBarText=c.status_bar_text||"",this.statusBarCssClass=c.status_bar_css_class||"status",this.statusBarCloseDelay=250,this.onBeforeShowMsg=i.isFn(c.on_before_show_msg)?c.on_before_show_msg:null,this.onAfterShowMsg=i.isFn(c.on_after_show_msg)?c.on_after_show_msg:null,this.tf=b}return f(a,null,{init:{value:function(){var a=this.tf;if(a.hasGrid()||a.isFirstLoad){var b=h.create("div",["id",a.prfxStatus+a.id]);b.className=this.statusBarCssClass;var c=h.create("span",["id",a.prfxStatusSpan+a.id]),d=h.create("span",["id",a.prfxStatusTxt+a.id]);d.appendChild(h.text(this.statusBarText)),this.statusBarTgtId||a.setToolbar();var e=this.statusBarTgtId?h.id(this.statusBarTgtId):a.lDiv;this.statusBarDiv&&j.isIE()&&(this.statusBarDiv.outerHTML=""),this.statusBarTgtId?(e.appendChild(d),e.appendChild(c)):(b.appendChild(d),b.appendChild(c),e.appendChild(b)),this.statusBarDiv=b,this.statusBarSpan=c,this.statusBarSpanText=d}},writable:!0,configurable:!0},message:{value:function(){var a=this,b=void 0===arguments[0]?"":arguments[0],c=this.tf;if(c.statusBar&&this.statusBarSpan){this.onBeforeShowMsg&&this.onBeforeShowMsg.call(null,this.tf,b);var d=""===b?this.statusBarCloseDelay:1;k.setTimeout(function(){a.statusBarSpan.innerHTML=b,a.onAfterShowMsg&&a.onAfterShowMsg.call(null,a.tf,b)},d)}},writable:!0,configurable:!0},destroy:{value:function(){var a=this.tf;a.hasGrid()&&this.statusBarDiv&&(this.statusBarDiv.innerHTML="",this.statusBarDiv.parentNode.removeChild(this.statusBarDiv),this.statusBarSpan=null,this.statusBarSpanText=null,this.statusBarDiv=null)},writable:!0,configurable:!0}}),a}()}Object.defineProperty(a,"__esModule",{value:!0})}),define("modules/paging",["exports","../dom","../types","../string","../helpers","../event"],function(a,b,c,d,e,f){{var g=function(a,b,c){b&&Object.defineProperties(a,b),c&&Object.defineProperties(a.prototype,c)},h=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},i=b.Dom,j=c.Types,k=d.Str,l=(e.Helpers,f.Event);a.Paging=function(){function a(b){h(this,a);var c=b.config();this.btnPageCssClass=c.paging_btn_css_class||"pgInp",this.pagingSlc=null,this.resultsPerPageSlc=null,this.pagingTgtId=c.paging_target_id||null,this.pagingLength=isNaN(c.paging_length)?10:c.paging_length,this.resultsPerPageTgtId=c.results_per_page_target_id||null,this.pgSlcCssClass=c.paging_slc_css_class||"pgSlc",this.pgInpCssClass=c.paging_inp_css_class||"pgNbInp",this.resultsPerPage=c.results_per_page||null,this.hasResultsPerPage=j.isArray(this.resultsPerPage),this.resultsSlcCssClass=c.results_slc_css_class||"rspg",this.resultsSpanCssClass=c.results_span_css_class||"rspgSpan",this.startPagingRow=0,this.nbPages=0,this.currentPageNb=1,this.btnNextPageText=c.btn_next_page_text||">",this.btnPrevPageText=c.btn_prev_page_text||"<",this.btnLastPageText=c.btn_last_page_text||">|",this.btnFirstPageText=c.btn_first_page_text||"|<",this.btnNextPageHtml=c.btn_next_page_html||(b.enableIcons?'':null),this.btnPrevPageHtml=c.btn_prev_page_html||(b.enableIcons?'':null),this.btnFirstPageHtml=c.btn_first_page_html||(b.enableIcons?'':null),this.btnLastPageHtml=c.btn_last_page_html||(b.enableIcons?'':null),this.pageText=c.page_text||" Page ",this.ofText=c.of_text||" of ",this.nbPgSpanCssClass=c.nb_pages_css_class||"nbpg",this.hasPagingBtns=c.paging_btns===!1?!1:!0,this.pageSelectorType=c.page_selector_type||b.fltTypeSlc,this.onBeforeChangePage=j.isFn(c.on_before_change_page)?c.on_before_change_page:null,this.onAfterChangePage=j.isFn(c.on_after_change_page)?c.on_after_change_page:null;var d=this.refRow,e=this.nbRows;this.nbPages=Math.ceil((e-d)/this.pagingLength);var f=this;this.evt={slcIndex:function(){return f.pageSelectorType===b.fltTypeSlc?f.pagingSlc.options.selectedIndex:parseInt(f.pagingSlc.value,10)-1},nbOpts:function(){return f.pageSelectorType===b.fltTypeSlc?parseInt(f.pagingSlc.options.length,10)-1:f.nbPages-1},next:function(){var a=f.evt.slcIndex()0?f.evt.slcIndex()-1:f.evt.nbOpts();f.changePage(a)},last:function(){f.changePage(f.evt.nbOpts())},first:function(){f.changePage(0)},_detectKey:function(a){var c=b.Evt.getKeyCode(a);13===c&&(b.sorted?(b.filter(),f.changePage(f.evt.slcIndex())):f.changePage(),this.blur())},slcPagesChange:null,nextEvt:null,prevEvt:null,lastEvt:null,firstEvt:null},this.tf=b}return g(a,null,{init:{value:function(){var a,b=this,c=this.tf,d=this.evt;this.hasResultsPerPage&&(this.resultsPerPage.length<2?this.hasResultsPerPage=!1:(this.pagingLength=this.resultsPerPage[1][0],this.setResultsPerPage())),d.slcPagesChange=function(a){b.changePage(),a.target.blur()},this.pageSelectorType===c.fltTypeSlc&&(a=i.create(c.fltTypeSlc,["id",c.prfxSlcPages+c.id]),a.className=this.pgSlcCssClass,l.add(a,"change",d.slcPagesChange)),this.pageSelectorType===c.fltTypeInp&&(a=i.create(c.fltTypeInp,["id",c.prfxSlcPages+c.id],["value",this.currentPageNb]),a.className=this.pgInpCssClass,l.add(a,"keypress",d._detectKey));var e=i.create("span",["id",c.prfxBtnNextSpan+c.id]),f=i.create("span",["id",c.prfxBtnPrevSpan+c.id]),g=i.create("span",["id",c.prfxBtnLastSpan+c.id]),h=i.create("span",["id",c.prfxBtnFirstSpan+c.id]);if(this.hasPagingBtns){if(this.btnNextPageHtml)e.innerHTML=this.btnNextPageHtml,l.add(e,"click",d.next);else{var j=i.create(c.fltTypeInp,["id",c.prfxBtnNext+c.id],["type","button"],["value",this.btnNextPageText],["title","Next"]);j.className=this.btnPageCssClass,l.add(j,"click",d.next),e.appendChild(j)}if(this.btnPrevPageHtml)f.innerHTML=this.btnPrevPageHtml,l.add(f,"click",d.prev);else{var k=i.create(c.fltTypeInp,["id",c.prfxBtnPrev+c.id],["type","button"],["value",this.btnPrevPageText],["title","Previous"]);k.className=this.btnPageCssClass,l.add(k,"click",d.prev),f.appendChild(k)}if(this.btnLastPageHtml)g.innerHTML=this.btnLastPageHtml,l.add(g,"click",d.last);else{var m=i.create(c.fltTypeInp,["id",c.prfxBtnLast+c.id],["type","button"],["value",this.btnLastPageText],["title","Last"]);m.className=this.btnPageCssClass,l.add(m,"click",d.last),g.appendChild(m)}if(this.btnFirstPageHtml)h.innerHTML=this.btnFirstPageHtml,l.add(h,"click",d.first);else{var n=i.create(c.fltTypeInp,["id",c.prfxBtnFirst+c.id],["type","button"],["value",this.btnFirstPageText],["title","First"]);n.className=this.btnPageCssClass,l.add(n,"click",d.first),h.appendChild(n)}}this.pagingTgtId||c.setToolbar();var o=this.pagingTgtId?i.id(this.pagingTgtId):c.mDiv;o.appendChild(h),o.appendChild(f);var p=i.create("span",["id",c.prfxPgBeforeSpan+c.id]);p.appendChild(i.text(this.pageText)),p.className=this.nbPgSpanCssClass,o.appendChild(p),o.appendChild(a);var q=i.create("span",["id",c.prfxPgAfterSpan+c.id]);q.appendChild(i.text(this.ofText)),q.className=this.nbPgSpanCssClass,o.appendChild(q);var r=i.create("span",["id",c.prfxPgSpan+c.id]);r.className=this.nbPgSpanCssClass,r.appendChild(i.text(" "+this.nbPages+" ")),o.appendChild(r),o.appendChild(e),o.appendChild(g),this.pagingSlc=i.id(c.prfxSlcPages+c.id),(!c.rememberGridValues||this.isPagingRemoved)&&this.setPagingInfo(),c.fltGrid||(c.ValidateAllRows(),this.setPagingInfo(c.validRowsIndex)),this.isPagingRemoved=!1},writable:!0,configurable:!0},addPaging:{value:function(){var a=void 0===arguments[0]?!1:arguments[0],b=this.tf;b.hasGrid()&&!b.paging&&(b.paging=!0,this.isPagingRemoved=!0,this.init(),b.resetValues(),a&&b.filter())},writable:!0,configurable:!0},setPagingInfo:{value:function(a){var b=this.tf,c=b.tbl.rows,d=this.pagingTgtId?i.id(this.pagingTgtId):b.mDiv,e=i.id(b.prfxPgSpan+b.id);if(a&&a.length>0)b.validRowsIndex=a;else{b.validRowsIndex=[];for(var f=b.refRow;f0)if(d.style.visibility="visible",this.pageSelectorType===b.fltTypeSlc)for(var j=0;j=this.startPagingRow&&d>e?("true"!==f.getAttribute("validRow")&&f.getAttribute("validRow")||(f.style.display=""),b.alternateBgs&&b.Cpt.alternateRows&&b.Cpt.alternateRows.setRowBg(b.validRowsIndex[e],e)):(f.style.display="none",b.alternateBgs&&b.Cpt.alternateRows&&b.Cpt.alternateRows.removeRowBg(b.validRowsIndex[e]))}b.nbVisibleRows=b.validRowsIndex.length,b.isStartBgAlternate=!1,b.applyGridProps()},writable:!0,configurable:!0},setPage:{value:function(a){var b=this.tf;if(b.hasGrid()&&this.paging){var c=this.evt,d=typeof a;if("string"===d)switch(k.lower(a)){case"next":c.next();break;case"previous":c.prev();break;case"last":c.last();break;case"first":c.first();break;default:c.next()}else"number"===d&&this.changePage(a-1)}},writable:!0,configurable:!0},setResultsPerPage:{value:function(){var a=this,b=this.tf,c=this.evt;if((b.hasGrid()||b.isFirstLoad)&&!this.resultsPerPageSlc&&this.resultsPerPage){c.slcResultsChange=function(b){a.changeResultsPerPage(),b.target.blur()};var d=i.create(b.fltTypeSlc,["id",b.prfxSlcResults+b.id]);d.className=b.resultsSlcCssClass;var e=this.resultsPerPage[0],f=this.resultsPerPage[1],g=i.create("span",["id",b.prfxSlcResultsTxt+b.id]);g.className=this.resultsSpanCssClass,this.resultsPerPageTgtId||b.setToolbar();var h=this.resultsPerPageTgtId?i.id(this.resultsPerPageTgtId):b.rDiv;g.appendChild(i.text(e)),h.appendChild(g),h.appendChild(d),this.resultsPerPageSlc=i.id(b.prfxSlcResults+b.id);for(var j=0;j=0&&a<=this.nbPages-1&&(this.onBeforeChangePage&&this.onBeforeChangePage.call(null,this,a),this.currentPageNb=parseInt(a,10)+1,this.pageSelectorType===b.fltTypeSlc?this.pagingSlc.options[a].selected=!0:this.pagingSlc.value=this.currentPageNb,b.rememberPageNb&&b.Cpt.store.savePageNb(b.pgNbCookie),this.startPagingRow=this.pageSelectorType===b.fltTypeSlc?this.pagingSlc.value:a*this.pagingLength,this.groupByPage(),this.onAfterChangePage&&this.onAfterChangePage.call(null,this,a)))},writable:!0,configurable:!0},_changeResultsPerPage:{value:function(){var a=this.tf;if(a.paging){var b=this.resultsPerPageSlc,c=this.pageSelectorType===a.fltTypeSlc?this.pagingSlc.selectedIndex:parseInt(this.pagingSlc.value-1,10);if(this.pagingLength=parseInt(b.options[b.selectedIndex].value,10),this.startPagingRow=this.pagingLength*c,!isNaN(this.pagingLength)){if(this.startPagingRow>=a.nbFilterableRows&&(this.startPagingRow=a.nbFilterableRows-this.pagingLength),this.setPagingInfo(),this.pageSelectorType===a.fltTypeSlc){var d=this.pagingSlc.options.length-1<=c?this.pagingSlc.options.length-1:c;this.pagingSlc.options[d].selected=!0}a.rememberPageLen&&a.Cpt.store.savePageLength(a.pgLenCookie)}}},writable:!0,configurable:!0},_resetPage:{value:function(a){var b=this.tf,c=b.Cpt.store.getPageNb(a);""!==c&&this.changePage(c-1)},writable:!0,configurable:!0},_resetPageLength:{value:function(a){var b=this.tf;if(b.paging){var c=b.Cpt.store.getPageLength(a);""!==c&&(this.resultsPerPageSlc.options[c].selected=!0,this.changeResultsPerPage())}},writable:!0,configurable:!0},destroy:{value:function(){var a=this.tf;if(a.hasGrid()){var b,c,d,e,f,g,h;b=i.id(a.prfxBtnNextSpan+a.id),c=i.id(a.prfxBtnPrevSpan+a.id),d=i.id(a.prfxBtnLastSpan+a.id),e=i.id(a.prfxBtnFirstSpan+a.id),f=i.id(a.prfxPgBeforeSpan+a.id),g=i.id(a.prfxPgAfterSpan+a.id),h=i.id(a.prfxPgSpan+a.id);var j=this.evt;this.pagingSlc&&(this.pageSelectorType===a.fltTypeSlc?l.remove(this.pagingSlc,"change",j.slcPagesChange):this.pageSelectorType===a.fltTypeInp&&l.remove(this.pagingSlc,"keypress",j._detectKey),this.pagingSlc.parentNode.removeChild(this.pagingSlc)),b&&(l.remove(b,"click",j.next),b.parentNode.removeChild(b)),c&&(l.remove(c,"click",j.prev),c.parentNode.removeChild(c)),d&&(l.remove(d,"click",j.last),d.parentNode.removeChild(d)),e&&(l.remove(e,"click",j.first),e.parentNode.removeChild(e)),f&&f.parentNode.removeChild(f),g&&g.parentNode.removeChild(g),h&&h.parentNode.removeChild(h),this.hasResultsPerPage&&this.removeResultsPerPage(),this.pagingSlc=null,this.nbPages=0,this.isPagingRemoved=!0,a.paging=!1}},writable:!0,configurable:!0}}),a}()}Object.defineProperty(a,"__esModule",{value:!0})}),define("modules/clearButton",["exports","../dom","../event"],function(a,b,c){{var d=function(a,b,c){b&&Object.defineProperties(a,b),c&&Object.defineProperties(a.prototype,c)},e=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},f=b.Dom,g=c.Event;a.ClearButton=function(){function a(b){e(this,a);var c=b.config();this.btnResetTgtId=c.btn_reset_target_id||null,this.btnResetEl=null,this.btnResetText=c.btn_reset_text||"Reset",this.btnResetTooltip=c.btn_reset_tooltip||"Clear filters",this.btnResetHtml=c.btn_reset_html||(b.enableIcons?'':null),this.tf=b}return d(a,null,{onClick:{value:function(){this.tf.clearFilters()},writable:!0,configurable:!0},init:{value:function(){var a=this,b=this.tf;if(b.hasGrid()||b.isFirstLoad||!b.btnResetEl){var c=f.create("span",["id",b.prfxResetSpan+b.id]);this.btnResetTgtId||b.setToolbar();var d=this.btnResetTgtId?f.id(this.btnResetTgtId):b.rDiv;if(d.appendChild(c),this.btnResetHtml){c.innerHTML=this.btnResetHtml;var e=c.firstChild;g.add(e,"click",function(){a.onClick()})}else{var h=f.create("a",["href","javascript:void(0);"]);h.className=b.btnResetCssClass,h.appendChild(f.text(this.btnResetText)),c.appendChild(h),g.add(h,"click",function(){a.onClick()})}this.btnResetEl=c.firstChild}},writable:!0,configurable:!0},destroy:{value:function(){var a=this.tf;if(a.hasGrid()&&this.btnResetEl){var b=f.id(a.prfxResetSpan+a.id);b&&b.parentNode.removeChild(b),this.btnResetEl=null}},writable:!0,configurable:!0}}),a}()}Object.defineProperty(a,"__esModule",{value:!0})}),define("modules/help",["exports","../dom","../event"],function(a,b,c){{var d=function(a,b,c){b&&Object.defineProperties(a,b),c&&Object.defineProperties(a.prototype,c)},e=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},f=b.Dom,g=c.Event;a.Help=function(){function a(b){e(this,a);var c=b.config();this.helpInstrTgtId=c.help_instructions_target_id||null,this.helpInstrContTgtId=c.help_instructions_container_target_id||null,this.helpInstrText=c.help_instructions_text?c.help_instructions_text:'Use the filters above each column to filter and limit table data. Avanced searches can be performed by using the following operators:
<, <=, >, >=, =, *, !, {, }, ||,&&, [empty], [nonempty], rgx:
These operators are described here:
http://tablefilter.free.fr/#operators
',this.helpInstrHtml=c.help_instructions_html||null,this.helpInstrBtnText=c.help_instructions_btn_text||"?",this.helpInstrBtnHtml=c.help_instructions_btn_html||null,this.helpInstrBtnCssClass=c.help_instructions_btn_css_class||"helpBtn",this.helpInstrContCssClass=c.help_instructions_container_css_class||"helpCont",this.helpInstrBtnEl=null,this.helpInstrContEl=null,this.helpInstrDefaultHtml='

HTML Table Filter Generator v. '+b.version+'

http://tablefilter.free.fr
©2009-'+b.year+' Max Guglielmi.
',this.tf=b}return d(a,null,{init:{value:function(){var a=this;if(!this.helpInstrBtnEl){var b=this.tf,c=f.create("span",["id",b.prfxHelpSpan+b.id]),d=f.create("div",["id",b.prfxHelpDiv+b.id]);this.helpInstrTgtId||b.setToolbar();var e=this.helpInstrTgtId?f.id(this.helpInstrTgtId):b.rDiv;e.appendChild(c);var h=this.helpInstrContTgtId?f.id(this.helpInstrContTgtId):c;if(this.helpInstrBtnHtml){c.innerHTML=this.helpInstrBtnHtml;var i=c.firstChild;g.add(i,"click",function(){a.toggle()}),h.appendChild(d)}else{h.appendChild(d);var j=f.create("a",["href","javascript:void(0);"]);j.className=this.helpInstrBtnCssClass,j.appendChild(f.text(this.helpInstrBtnText)),c.appendChild(j),g.add(j,"click",function(){a.toggle()})}this.helpInstrHtml?(this.helpInstrContTgtId&&h.appendChild(d),d.innerHTML=this.helpInstrHtml,this.helpInstrContTgtId||(d.className=this.helpInstrContCssClass,g.add(d,"dblclick",function(){a.toggle()}))):(d.innerHTML=this.helpInstrText,d.className=this.helpInstrContCssClass,g.add(d,"dblclick",function(){a.toggle()})),d.innerHTML+=this.helpInstrDefaultHtml,g.add(d,"click",function(){a.toggle()}),this.helpInstrContEl=d,this.helpInstrBtnEl=c}},writable:!0,configurable:!0},toggle:{value:function(){if(this.helpInstrContEl){var a=this.helpInstrContEl.style.display;if(""===a||"none"===a){this.helpInstrContEl.style.display="block";var b=f.position(this.helpInstrBtnEl).left;this.helpInstrContTgtId||(this.helpInstrContEl.style.left=b-this.helpInstrContEl.clientWidth+25+"px")}else this.helpInstrContEl.style.display="none"}},writable:!0,configurable:!0},destroy:{value:function(){this.helpInstrBtnEl&&(this.helpInstrBtnEl.parentNode.removeChild(this.helpInstrBtnEl),this.helpInstrBtnEl=null,this.helpInstrContEl&&(this.helpInstrContEl.parentNode.removeChild(this.helpInstrContEl),this.helpInstrContEl=null))},writable:!0,configurable:!0}}),a}()}Object.defineProperty(a,"__esModule",{value:!0})}),define("modules/alternateRows",["exports","../dom"],function(a,b){{var c=function(a,b,c){b&&Object.defineProperties(a,b),c&&Object.defineProperties(a.prototype,c)},d=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},e=b.Dom;a.AlternateRows=function(){function a(b){d(this,a);var c=b.config();this.evenCss=c.even_row_css_class||"even",this.oddCss=c.odd_row_css_class||"odd",this.tf=b}return c(a,null,{init:{value:function(){if(this.tf.hasGrid()||this.tf.isFirstLoad)for(var a=(this.tf.tbl.rows,null===this.tf.validRowsIndex),b=a?this.tf.refRow:0,c=a?this.tf.nbFilterableRows+b:this.tf.validRowsIndex.length,d=0,e=b;c>e;e++){var f=a?e:this.tf.validRowsIndex[e];this.setRowBg(f,d),d++}},writable:!0,configurable:!0},setRowBg:{value:function(a,b){if(this.tf.alternateBgs&&!isNaN(a)){var c=this.tf.tbl.rows,d=b?b:a;this.removeRowBg(a),e.addClass(c[a],d%2?this.evenCss:this.oddCss)}},writable:!0,configurable:!0},removeRowBg:{value:function(a){if(!isNaN(a)){var b=this.tf.tbl.rows;e.removeClass(b[a],this.oddCss),e.removeClass(b[a],this.evenCss)}},writable:!0,configurable:!0},remove:{value:function(){if(this.tf.hasGrid()){for(var a=(this.tf.tbl.rows,this.tf.refRow);a=jj;jj++)ucolIndex[jj]===colIndex[ii]&&(saved=1);0===saved&&(ucolMax++,ucolIndex[ucolMax]=colIndex[ii])}if("object"==Str.lower(typeof labelId)&&"object"==Str.lower(typeof colIndex)&&"object"==Str.lower(typeof operation))for(var row=this.tf.tbl.rows,colvalues=[],ucol=0;ucolMax>=ucol;ucol++){colvalues.push(this.tf.getColValues(ucolIndex[ucol],!0,excludeRow));for(var result,nbvalues=0,temp,meanValue=0,sumValue=0,minValue=null,maxValue=null,q1Value=null,medValue=null,q3Value=null,meanFlag=0,sumFlag=0,minFlag=0,maxFlag=0,q1Flag=0,medFlag=0,q3Flag=0,theList=[],opsThisCol=[],decThisCol=[],labThisCol=[],oTypeThisCol=[],mThisCol=-1,k=0;kmaxValue?parseFloat(cvalue):maxValue))}if(1===meanFlag&&(meanValue=sumValue/nbvalues),1===medFlag){var aux=0;nbvalues%2===1?(aux=Math.floor(nbvalues/2),medValue=theList[aux]):medValue=(theList[nbvalues/2]+theList[nbvalues/2-1])/2}var posa;if(1===q1Flag&&(posa=0,posa=Math.floor(nbvalues/4),q1Value=4*posa==nbvalues?(theList[posa-1]+theList[posa])/2:theList[posa]),1===q3Flag){posa=0;var posb=0;posa=Math.floor(nbvalues/4),4*posa===nbvalues?(posb=3*posa,q3Value=(theList[posb]+theList[posb-1])/2):q3Value=theList[nbvalues-posa-1]}for(var i=0;mThisCol>=i;i++){switch(opsThisCol[i]){case"mean":result=meanValue;break;case"sum":result=sumValue;break;case"min":result=minValue;break;case"max":result=maxValue;break;case"median":result=medValue;break;case"q1":result=q1Value;break;case"q3":result=q3Value}var precision=isNaN(decThisCol[i])?2:decThisCol[i];if(oTypeThisCol&&result){if(result=result.toFixed(precision),Dom.id(labThisCol[i]))switch(Str.lower(oTypeThisCol)){case"innerhtml":Dom.id(labThisCol[i]).innerHTML=isNaN(result)||!isFinite(result)||0===nbvalues?".":result;break;case"setvalue":Dom.id(labThisCol[i]).value=result;break;case"createtextnode":var oldnode=Dom.id(labThisCol[i]).firstChild,txtnode=Dom.text(result);Dom.id(labThisCol[i]).replaceChild(txtnode,oldnode)}}else try{Dom.id(labThisCol[i]).innerHTML=isNaN(result)||!isFinite(result)||0===nbvalues?".":result.toFixed(precision)}catch(e){}}var totRow=totRowIndex&&totRowIndex[ucol]?row[totRowIndex[ucol]]:null;totRow&&(totRow.style.display="")}this.onAfterOperation&&this.onAfterOperation.call(null,this.tf)}},writable:!0,configurable:!0}}),ColOps}();Object.defineProperty(exports,"__esModule",{value:!0})}),define("tablefilter",["exports","module","event","dom","string","cookie","types","array","helpers","date","sort","modules/store","modules/gridLayout","modules/loader","modules/highlightKeywords","modules/popupFilter","modules/dropdown","modules/checkList","modules/rowsCounter","modules/statusBar","modules/paging","modules/clearButton","modules/help","modules/alternateRows","modules/colOps"],function(a,b,c,d,e,f,g,h,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A){function B(a,b){if(a){b||(b="us");var c=a;return c="us"===H.lower(b)?+c.replace(/[^\d\.-]/g,""):+c.replace(/[^\d\,-]/g,"").replace(",",".")}}function C(){if(bb.body.__defineGetter__&&HTMLElement){var a=HTMLElement.prototype;a.__defineGetter__&&a.__defineGetter__("outerHTML",function(){var a=this.parentNode,b=G.create(a.tagName);b.appendChild(this);var c=b.innerHTML;return a.appendChild(this),c}),a.__defineSetter__&&HTMLElement.prototype.__defineSetter__("outerHTML",function(a){var b=this.ownerDocument.createRange();b.setStartBefore(this);var c=b.createContextualFragment(a);return this.parentNode.replaceChild(c,this),a})}}var D=function(a,b,c){b&&Object.defineProperties(a,b),c&&Object.defineProperties(a.prototype,c)},E=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},F=c.Event,G=d.Dom,H=e.Str,I=f.Cookie,J=g.Types,K=h.Arr,L=(k.Helpers,l.DateHelper),M=(m.Sort,n.Store),N=o.GridLayout,O=p.Loader,P=q.HighlightKeyword,Q=r.PopupFilter,R=s.Dropdown,S=t.CheckList,T=u.RowsCounter,U=v.StatusBar,V=w.Paging,W=x.ClearButton,X=y.Help,Y=z.AlternateRows,Z=A.ColOps,$=window,_=L.isValid,ab=L.format,bb=$.document,cb=function(){function a(b){if(E(this,a),0!==arguments.length){if(this.id=b,this.version="3.0",this.year=(new Date).getFullYear(),this.tbl=G.id(b),this.startRow=null,this.refRow=null,this.headersRow=null,this.cfg={},this.nbFilterableRows=null,this.nbRows=null,this.nbCells=null,this._hasGrid=!1,this.enableModules=!1,!this.tbl||"table"!==H.lower(this.tbl.nodeName)||0===this.getRowsNb())throw new Error("Could not instantiate TF object: HTML table not found.");if(arguments.length>1)for(var c=0;c1?this.filtersRowIndex=this.headersRow+1:(this.filtersRowIndex=1,this.headersRow=0)),this.fltCellTag="th"!==f.filters_cell_tag||"td"!==f.filters_cell_tag?"td":f.filters_cell_tag,this.fltIds=[],this.fltElms=[],this.searchArgs=null,this.tblData=[],this.validRowsIndex=null,this.fltGridEl=null,this.isFirstLoad=!0,this.infDiv=null,this.lDiv=null,this.rDiv=null,this.mDiv=null,this.contDiv=null,this.infDivCssClass=f.inf_div_css_class||"inf",this.lDivCssClass=f.left_div_css_class||"ldiv",this.rDivCssClass=f.right_div_css_class||"rdiv",this.mDivCssClass=f.middle_div_css_class||"mdiv",this.contDivCssClass=f.content_div_css_class||"cont",this.stylesheet=f.stylesheet||this.basePath+"filtergrid.css",this.stylesheetId=this.id+"_style",this.fltsRowCssClass=f.flts_row_css_class||"fltrow",this.enableIcons=f.enable_icons===!1?!1:!0,this.alternateBgs=f.alternate_rows===!0?!0:!1,this.hasColWidth=f.col_width===!0?!0:!1,this.colWidth=this.hasColWidth?f.col_width:null,this.fixedHeaders=f.fixed_headers===!0?!0:!1,this.tBodyH=isNaN(f.tbody_height)?200:f.tbody_height,this.fltCssClass=f.flt_css_class||"flt",this.fltMultiCssClass=f.flt_multi_css_class||"flt_multi",this.fltSmallCssClass=f.flt_small_css_class||"flt_s",this.singleFltCssClass=f.single_flt_css_class||"single_flt",this.isStartBgAlternate=!0,this.enterKey=f.enter_key===!1?!1:!0,this.isModFilterFn=f.mod_filter_fn===!0?!0:!1,this.modFilterFn=this.isModFilterFn?f.mod_filter_fn:null,this.onBeforeFilter=J.isFn(f.on_before_filter)?f.on_before_filter:null,this.onAfterFilter=J.isFn(f.on_after_filter)?f.on_after_filter:null,this.matchCase=f.match_case===!0?!0:!1,this.exactMatch=f.exact_match===!0?!0:!1,this.linkedFilters=f.linked_filters===!0?!0:!1,this.disableExcludedOptions=f.disable_excluded_options===!0?!0:!1,this.activeFlt=null,this.activeFilterId=null,this.hasColOperation=f.col_operation?!0:!1,this.colOperation=null,this.hasVisibleRows=f.rows_always_visible?!0:!1,this.visibleRows=this.hasVisibleRows?f.rows_always_visible:[],this.searchType=f.search_type||"include",this.isExternalFlt=f.external_flt_grid===!0?!0:!1,this.externalFltTgtIds=f.external_flt_grid_ids||null,this.externalFltEls=[],this.execDelay=isNaN(f.exec_delay)?100:parseInt(f.exec_delay,10),this.onFiltersLoaded=J.isFn(f.on_filters_loaded)?f.on_filters_loaded:null,this.singleSearchFlt=f.single_search_filter===!0?!0:!1,this.onRowValidated=J.isFn(f.on_row_validated)?f.on_row_validated:null,this.customCellDataCols=f.custom_cell_data_cols?f.custom_cell_data_cols:[],this.customCellData=J.isFn(f.custom_cell_data)?f.custom_cell_data:null,this.watermark=f.watermark||"",this.isWatermarkArray=J.isArray(this.watermark),this.toolBarTgtId=f.toolbar_target_id||null,this.helpInstructions=f.help_instructions||!1,this.popUpFilters=f.popup_filters===!0?!0:!1,this.markActiveColumns=f.mark_active_columns===!0?!0:!1,this.activeColumnsCssClass=f.active_columns_css_class||"activeHeader",this.onBeforeActiveColumn=J.isFn(f.on_before_active_column)?f.on_before_active_column:null,this.onAfterActiveColumn=J.isFn(f.on_after_active_column)?f.on_after_active_column:null,this.displayAllText=f.display_all_text||"",this.enableEmptyOption=f.enable_empty_option===!0?!0:!1,this.emptyText=f.empty_text||"(Empty)",this.enableNonEmptyOption=f.enable_non_empty_option===!0?!0:!1,this.nonEmptyText=f.non_empty_text||"(Non empty)",this.onSlcChange=f.on_change===!1?!1:!0,this.sortSlc=f.sort_select===!1?!1:!0,this.isSortNumAsc=f.sort_num_asc===!0?!0:!1,this.sortNumAsc=this.isSortNumAsc?f.sort_num_asc:null,this.isSortNumDesc=f.sort_num_desc===!0?!0:!1,this.sortNumDesc=this.isSortNumDesc?f.sort_num_desc:null,this.fillSlcOnDemand=f.fill_slc_on_demand===!0?!0:!1,this.hasCustomSlcOptions=J.isObj(f.custom_slc_options)?!0:!1,this.customSlcOptions=J.isArray(f.custom_slc_options)?f.custom_slc_options:null,this.rgxOperator=f.regexp_operator||"rgx:",this.emOperator=f.empty_operator||"[empty]",this.nmOperator=f.nonempty_operator||"[nonempty]",this.orOperator=f.or_operator||"||",this.anOperator=f.and_operator||"&&",this.grOperator=f.greater_operator||">",this.lwOperator=f.lower_operator||"<",this.leOperator=f.lower_equal_operator||"<=",this.geOperator=f.greater_equal_operator||">=",this.dfOperator=f.different_operator||"!",this.lkOperator=f.like_operator||"*",this.eqOperator=f.equal_operator||"=",this.stOperator=f.start_with_operator||"{",this.enOperator=f.end_with_operator||"}",this.curExp=f.cur_exp||"^[¥£€$]",this.separator=f.separator||",",this.rowsCounter=f.rows_counter===!0?!0:!1,this.statusBar=f.status_bar===!0?!0:!1,this.loader=f.loader===!0?!0:!1,this.displayBtn=f.btn===!0?!0:!1,this.btnText=f.btn_text||(this.enableIcons?"":"Go"),this.btnCssClass=f.btn_css_class||(this.enableIcons?"btnflt_icon":"btnflt"),this.btnReset=f.btn_reset===!0?!0:!1,this.btnResetCssClass=f.btn_reset_css_class||"reset",this.onBeforeReset=J.isFn(f.on_before_reset)?f.on_before_reset:null,this.onAfterReset=J.isFn(f.on_after_reset)?f.on_after_reset:null,this.paging=f.paging===!0?!0:!1,this.nbVisibleRows=0,this.nbHiddenRows=0,this.sort=f.sort===!0?!0:!1,this.isSortEnabled=!1,this.sortConfig=f.sort_config||{},this.sortConfig.name=void 0!==this.sortConfig.name?f.sort_config.name:"sortabletable",this.sortConfig.src=void 0!==this.sortConfig.src?f.sort_config.src:this.basePath+"extensions/sortabletable/sortabletable.js",this.sortConfig.adapterSrc=void 0!==this.sortConfig.adapter_src?f.sort_config.adapter_src:this.basePath+"extensions/sortabletable/adapterSortabletable.js",this.sortConfig.initialize=void 0!==this.sortConfig.initialize?f.sort_config.initialize:function(){},this.sortConfig.sortTypes=J.isArray(this.sortConfig.sort_types)?f.sort_config.sort_types:[],this.sortConfig.sortCol=void 0!==this.sortConfig.sort_col?f.sort_config.sort_col:null,this.sortConfig.asyncSort=this.sortConfig.async_sort===!0?!0:!1,this.sortConfig.triggerIds=J.isArray(this.sortConfig.sort_trigger_ids)?f.sort_config.sort_trigger_ids:[],this.selectable=f.selectable===!0?!0:!1,this.editable=f.editable===!0?!0:!1,this.ezEditTableConfig=f.ezEditTable_config||{},this.ezEditTableConfig.name=void 0!==this.ezEditTableConfig.name?f.ezEditTable_config.name:"ezedittable",this.ezEditTableConfig.src=void 0!==this.ezEditTableConfig.src?f.ezEditTable_config.src:this.basePath+"ezEditTable/ezEditTable.js",this.ezEditTableConfig.loadStylesheet=this.ezEditTableConfig.loadStylesheet===!0?!0:!1,this.ezEditTableConfig.stylesheet=this.ezEditTableConfig.stylesheet||this.basePath+"ezEditTable/ezEditTable.css",this.ezEditTableConfig.stylesheetName=void 0!==this.ezEditTableConfig.stylesheetName?f.ezEditTable_config.stylesheetName:"ezEditTableCss",this.ezEditTableConfig.err='Failed to instantiate EditTable object.\n"ezEditTable" module may not be available.',this.onKeyUp=f.on_keyup===!0?!0:!1,this.onKeyUpDelay=isNaN(f.on_keyup_delay)?900:f.on_keyup_delay,this.isUserTyping=null,this.onKeyUpTimer=void 0,this.highlightKeywords=f.highlight_keywords===!0?!0:!1,this.defaultDateType=f.default_date_type||"DMY",this.thousandsSeparator=f.thousands_separator||",",this.decimalSeparator=f.decimal_separator||".",this.hasColNbFormat=f.col_number_format===!0?!0:!1,this.colNbFormat=J.isArray(this.hasColNbFormat)?f.col_number_format:null,this.hasColDateType=f.col_date_type===!0?!0:!1,this.colDateType=J.isArray(this.hasColDateType)?f.col_date_type:null,this.msgFilter=f.msg_filter||"Filtering data...",this.msgPopulate=f.msg_populate||"Populating filter...",this.msgPopulateCheckList=f.msg_populate_checklist||"Populating list...",this.msgChangePage=f.msg_change_page||"Collecting paging data...",this.msgClear=f.msg_clear||"Clearing filters...",this.msgChangeResults=f.msg_change_results||"Changing results per page...",this.msgResetValues=f.msg_reset_grid_values||"Re-setting filters values...",this.msgResetPage=f.msg_reset_page||"Re-setting page...",this.msgResetPageLength=f.msg_reset_page_length||"Re-setting page length...",this.msgSort=f.msg_sort||"Sorting data...",this.msgLoadExtensions=f.msg_load_extensions||"Loading extensions...",this.msgLoadThemes=f.msg_load_themes||"Loading theme(s)...",this.prfxTf="TF",this.prfxFlt="flt",this.prfxValButton="btn",this.prfxInfDiv="inf_",this.prfxLDiv="ldiv_",this.prfxRDiv="rdiv_",this.prfxMDiv="mdiv_",this.prfxContentDiv="cont_",this.prfxCheckListDiv="chkdiv_",this.prfxSlcPages="slcPages_",this.prfxSlcResults="slcResults_",this.prfxSlcResultsTxt="slcResultsTxt_",this.prfxBtnNextSpan="btnNextSpan_",this.prfxBtnPrevSpan="btnPrevSpan_",this.prfxBtnLastSpan="btnLastSpan_",this.prfxBtnFirstSpan="btnFirstSpan_",this.prfxBtnNext="btnNext_",this.prfxBtnPrev="btnPrev_",this.prfxBtnLast="btnLast_",this.prfxBtnFirst="btnFirst_",this.prfxPgSpan="pgspan_",this.prfxPgBeforeSpan="pgbeforespan_",this.prfxPgAfterSpan="pgafterspan_",this.prfxCounter="counter_",this.prfxTotRows="totrows_span_",this.prfxTotRowsTxt="totRowsTextSpan_",this.prfxResetSpan="resetspan_",this.prfxLoader="load_",this.prfxStatus="status_",this.prfxStatusSpan="statusSpan_",this.prfxStatusTxt="statusText_",this.prfxCookieFltsValues="tf_flts_",this.prfxCookiePageNb="tf_pgnb_",this.prfxCookiePageLen="tf_pglen_",this.prfxMainTblCont="gridCont_",this.prfxTblCont="tblCont_",this.prfxHeadTblCont="tblHeadCont_",this.prfxHeadTbl="tblHead_",this.prfxGridFltTd="_td_",this.prfxGridTh="tblHeadTh_",this.prfxHelpSpan="helpSpan_",this.prfxHelpDiv="helpDiv_",this.prfxPopUpSpan="popUpSpan_",this.prfxPopUpDiv="popUpDiv_",this.hasStoredValues=!1,this.rememberGridValues=f.remember_grid_values===!0?!0:!1,this.fltsValuesCookie=this.prfxCookieFltsValues+this.id,this.rememberPageNb=this.paging&&f.remember_page_number?!0:!1,this.pgNbCookie=this.prfxCookiePageNb+this.id,this.rememberPageLen=this.paging&&f.remember_page_length?!0:!1,this.pgLenCookie=this.prfxCookiePageLen+this.id,this.hasExtensions=f.extensions===!0?!0:!1,this.extensions=this.hasExtensions?f.extensions:null,this.enableDefaultTheme=f.enable_default_theme===!0?!0:!1,this.hasThemes=f.enable_default_theme||f.themes&&J.isObj(f.themes)?!0:!1,this.themes=this.hasThemes?f.themes:null,this.themesPath=f.themes_path||this.basePath+"TF_Themes/",this.Cpt={loader:null,alternateRows:null,colOps:null,rowsCounter:null,gridLayout:null,store:null,highlightKeywords:null,paging:null,checkList:null,dropdown:null,popupFilter:null,clearButton:null,help:null,statusBar:null},this.Extensions={sort:null}; var k=this;this.Evt={name:{filter:"Filter",dropdown:"dropdown",checklist:"checkList",changepage:"changePage",clear:"Clear",changeresultsperpage:"changeResults",resetvalues:"ResetValues",resetpage:"resetPage",resetpagelength:"resetPageLength",sort:"Sort",loadextensions:"LoadExtensions",loadthemes:"LoadThemes"},getKeyCode:function(a){return a.charCode?a.charCode:a.keyCode?a.keyCode:a.which?a.which:0},_DetectKey:function(a){if(k.enterKey){var b=a||$.event;if(b){var c=k.Evt.getKeyCode(b);13===c?(k._filter(),F.cancel(b),F.stop(b)):(k.isUserTyping=!0,$.clearInterval(k.onKeyUpTimer),k.onKeyUpTimer=void 0)}}},_OnKeyUp:function(a){function b(){$.clearInterval(k.onKeyUpTimer),k.onKeyUpTimer=void 0,k.isUserTyping||(k.filter(),k.isUserTyping=null)}if(k.onKeyUp){var c=a||$.event,d=k.Evt.getKeyCode(c);k.isUserTyping=!1,13!==d&&9!==d&&27!==d&&38!==d&&40!==d?void 0===k.onKeyUpTimer&&(k.onKeyUpTimer=$.setInterval(b,k.onKeyUpDelay)):($.clearInterval(k.onKeyUpTimer),k.onKeyUpTimer=void 0)}},_OnKeyDown:function(){k.onKeyUp&&(k.isUserTyping=!0)},_OnInpBlur:function(){k.onKeyUp&&(k.isUserTyping=!1,$.clearInterval(k.onKeyUpTimer)),k.ezEditTable&&(k.editable&&k.ezEditTable.Editable.Set(),k.selectable&&k.ezEditTable.Selection.Set())},_OnInpFocus:function(a){var b=a||$.event;k.activeFilterId=this.getAttribute("id"),k.activeFlt=G.id(k.activeFilterId),k.popUpFilters&&(F.cancel(b),F.stop(b)),k.ezEditTable&&(k.editable&&k.ezEditTable.Editable.Remove(),k.selectable&&k.ezEditTable.Selection.Remove())},_OnSlcFocus:function(a){var b=a||$.event;if(k.activeFilterId=this.getAttribute("id"),k.activeFlt=G.id(k.activeFilterId),k.fillSlcOnDemand&&"0"===this.getAttribute("filled")){var c=this.getAttribute("ct");k.Cpt.dropdown._build(c)}k.popUpFilters&&(F.cancel(b),F.stop(b))},_OnSlcChange:function(a){if(k.activeFlt){var b=(k.activeFlt.getAttribute("colIndex"),a||$.event);k.popUpFilters&&F.stop(b),k.onSlcChange&&k.filter()}},_OnSlcBlur:function(){},_OnCheckListClick:function(){if(k.fillSlcOnDemand&&"0"===this.getAttribute("filled")){var a=this.getAttribute("ct");k.Cpt.checkList._build(a),k.Cpt.checkList.checkListDiv[a].onclick=null,k.Cpt.checkList.checkListDiv[a].title=""}},_OnCheckListFocus:function(){k.activeFilterId=this.firstChild.getAttribute("id"),k.activeFlt=G.id(k.activeFilterId)},_OnCheckListBlur:function(){},_OnBtnClick:function(){k.filter()},_OnSlcPagesChangeEvt:null,_EnableSlc:function(){this.firstChild.disabled=!1,this.firstChild.focus(),this.onclick=null},_Paging:{nextEvt:null,prevEvt:null,lastEvt:null,firstEvt:null}}}}return D(a,null,{init:{value:function(){if(!this._hasGrid){this.tbl||(this.tbl=G.id(this.id)),this.gridLayout&&(this.refRow=null===this.startRow?0:this.startRow),this.popUpFilters&&(0===this.filtersRowIndex&&1===this.headersRow||this.gridLayout)&&(this.headersRow=0);var a,b=this.cfg,c=this.singleSearchFlt?1:this.nbCells;if(void 0===window["tf_"+this.id]&&(window["tf_"+this.id]=this),this.includeFile(this.stylesheetId,this.stylesheet,null,"link"),this.hasThemes&&this._LoadThemes(),(this.rememberGridValues||this.rememberPageNb||this.rememberPageLen)&&(this.Cpt.store=new M(this)),this.gridLayout&&(this.Cpt.gridLayout=new N(this),this.Cpt.gridLayout.init()),this.loader&&(this.Cpt.loader||(this.Cpt.loader=new O(this))),this.highlightKeywords&&(this.Cpt.highlightKeyword=new P(this)),this.popUpFilters&&(this.Cpt.popupFilter||(this.Cpt.popupFilter=new Q(this)),this.Cpt.popupFilter.init()),this.fltGrid)if(this.isFirstLoad){var d;if(!this.gridLayout){var e=G.tag(this.tbl,"thead");d=e.length>0?e[0].insertRow(this.filtersRowIndex):this.tbl.insertRow(this.filtersRowIndex),this.headersRow>1&&this.filtersRowIndex<=this.headersRow&&!this.popUpFilters&&this.headersRow++,this.popUpFilters&&this.headersRow++,d.className=this.fltsRowCssClass,this.isExternalFlt&&(!this.gridLayout||this.popUpFilters)&&(d.style.display="none")}this.nbFilterableRows=this.getRowsNb(),this.nbVisibleRows=this.nbFilterableRows,this.nbRows=this.tbl.rows.length;for(var f=0;c>f;f++){this.popUpFilters&&this.Cpt.popupFilter.build(f);var g=G.create(this.fltCellTag),h=this["col"+f],i=this.isExternalFlt&&this.externalFltTgtIds?this.externalFltTgtIds[f]:null;if(this.singleSearchFlt&&(g.colSpan=this.nbCells),this.gridLayout||d.appendChild(g),a=f==c-1&&this.displayBtn?this.fltSmallCssClass:this.fltCssClass,void 0===h&&(h=void 0===b["col_"+f]?this.fltTypeInp:H.lower(b["col_"+f])),this.singleSearchFlt&&(h=this.fltTypeInp,a=this.singleFltCssClass),h===this.fltTypeSlc||h===this.fltTypeMulti){this.Cpt.dropdown||(this.Cpt.dropdown=new R(this));var j=this.Cpt.dropdown,k=G.create(this.fltTypeSlc,["id",this.prfxFlt+f+"_"+this.id],["ct",f],["filled","0"]);if(h===this.fltTypeMulti&&(k.multiple=this.fltTypeMulti,k.title=j.multipleSlcTooltip),k.className=H.lower(h)===this.fltTypeSlc?a:this.fltMultiCssClass,i?(G.id(i).appendChild(k),this.externalFltEls.push(k)):g.appendChild(k),this.fltIds.push(this.prfxFlt+f+"_"+this.id),this.fillSlcOnDemand||j._build(f),F.add(k,"keypress",this.Evt._DetectKey),F.add(k,"change",this.Evt._OnSlcChange),F.add(k,"focus",this.Evt._OnSlcFocus),F.add(k,"blur",this.Evt._OnSlcBlur),this.fillSlcOnDemand){var l=G.createOpt(this.displayAllText,"");k.appendChild(l)}}else if(h===this.fltTypeCheckList){this.Cpt.checkList||(this.Cpt.checkList=new S(this));var m=G.create("div",["id",this.prfxCheckListDiv+f+"_"+this.id],["ct",f],["filled","0"]);m.className=this.Cpt.checkList.checkListDivCssClass,i?(G.id(i).appendChild(m),this.externalFltEls.push(m)):g.appendChild(m),this.Cpt.checkList.checkListDiv[f]=m,this.fltIds.push(this.prfxFlt+f+"_"+this.id),this.fillSlcOnDemand||this.Cpt.checkList._build(f),this.fillSlcOnDemand&&(F.add(m,"click",this.Evt._OnCheckListClick),m.appendChild(G.text(this.Cpt.checkList.activateCheckListTxt))),F.add(m,"click",this.Evt._OnCheckListFocus)}else{var n=h===this.fltTypeInp?"text":"hidden",o=G.create(this.fltTypeInp,["id",this.prfxFlt+f+"_"+this.id],["type",n],["ct",f]);if("hidden"!==n&&this.watermark&&o.setAttribute("placeholder",this.isWatermarkArray?this.watermark[f]:this.watermark),o.className=a,o.onfocus=this.Evt._OnInpFocus,i?(G.id(i).appendChild(o),this.externalFltEls.push(o)):g.appendChild(o),this.fltIds.push(this.prfxFlt+f+"_"+this.id),o.onkeypress=this.Evt._DetectKey,o.onkeydown=this.Evt._OnKeyDown,o.onkeyup=this.Evt._OnKeyUp,o.onblur=this.Evt._OnInpBlur,this.rememberGridValues){var p=this.Cpt.store.getFilterValues(this.fltsValuesCookie);" "!=p[f]&&this.setFilterValue(f,p[f],!1)}}if(f==c-1&&this.displayBtn){var q=G.create(this.fltTypeInp,["id",this.prfxValButton+f+"_"+this.id],["type","button"],["value",this.btnText]);q.className=this.btnCssClass,i?G.id(i).appendChild(q):g.appendChild(q),q.onclick=this.Evt._OnBtnClick}}}else this._resetGrid();else this.refRow=this.refRow-1,this.gridLayout&&(this.refRow=0),this.nbFilterableRows=this.getRowsNb(),this.nbVisibleRows=this.nbFilterableRows,this.nbRows=this.nbFilterableRows+this.refRow;this.rowsCounter&&(this.Cpt.rowsCounter=new T(this),this.Cpt.rowsCounter.init()),this.statusBar&&(this.Cpt.statusBar=new U(this),this.Cpt.statusBar.init()),this.paging&&(this.Cpt.paging=new V(this),this.Cpt.paging.init()),this.btnReset&&(this.Cpt.clearButton=new W(this),this.Cpt.clearButton.init()),this.helpInstructions&&(this.Cpt.help=new X(this),this.Cpt.help.init()),this.hasColWidth&&!this.gridLayout&&this.setColWidths(),this.alternateBgs&&(this.Cpt.alternateRows=new Y(this),this.Cpt.alternateRows.init()),this.hasColOperation&&(this.Cpt.colOps=new Z(this),this.Cpt.colOps.calc()),this.sort&&this.setSort(),(this.selectable||this.editable)&&this.SetEditable(),this.isFirstLoad=!1,this._hasGrid=!0,(this.rememberGridValues||this.rememberPageLen||this.rememberPageNb)&&this.resetValues(),this.gridLayout||G.addClass(this.tbl,this.prfxTf),this.loader&&this.Cpt.loader.show("none"),this.hasExtensions&&this.LoadExtensions(),this.onFiltersLoaded&&this.onFiltersLoaded.call(null,this)}},writable:!0,configurable:!0},EvtManager:{value:function(a,b){function c(){if(a){switch(a){case d.Evt.name.filter:d.isModFilterFn?d.modFilterFn.call(null,d):d._filter();break;case d.Evt.name.dropdown:d.linkedFilters?d.Cpt.dropdown._build(e,!0):d.Cpt.dropdown._build(e,!1,f,g);break;case d.Evt.name.checklist:d.Cpt.checkList._build(e,f,g);break;case d.Evt.name.changepage:d.Cpt.paging._changePage(h);break;case d.Evt.name.clear:d._clearFilters(),d._filter();break;case d.Evt.name.changeresultsperpage:d.Cpt.paging._changeResultsPerPage();break;case d.Evt.name.resetvalues:d._resetValues(),d._filter();break;case d.Evt.name.resetpage:d.Cpt.paging._resetPage(d.pgNbCookie);break;case d.Evt.name.resetpagelength:d.Cpt.paging._resetPageLength(d.pgLenCookie);break;case d.Evt.name.sort:break;case d.Evt.name.loadextensions:d._LoadExtensions();break;case d.Evt.name.loadthemes:d._LoadThemes();break;default:d["_"+a].call(null,d,b)}d.statusBar&&d.Cpt.statusBar.message(""),d.loader&&d.Cpt.loader.show("none")}}var d=this,e=b&&void 0!==b.slcIndex?b.slcIndex:null,f=b&&void 0!==b.slcExternal?b.slcExternal:!1,g=b&&void 0!==b.slcId?b.slcId:null,h=b&&void 0!==b.pgIndex?b.pgIndex:null;if(this.loader||this.statusBar){try{this.Cpt.loader.show(""),this.Cpt.statusBar.message(this["msg"+a])}catch(i){}$.setTimeout(c,this.execDelay)}else c()},writable:!0,configurable:!0},ImportModule:{value:function(a){a.path&&a.name&&this.includeFile(a.name,a.path,a.init)},writable:!0,configurable:!0},LoadExtensions:{value:function(){if(!this.Ext){var a=this;this.Ext={list:{},add:function(b,c,d,e){var f=d.split("/")[d.split("/").length-1],g=new RegExp(f),h=d.replace(g,"");a.Ext.list[b]={name:b,description:c,file:f,path:h,callback:e}}}}this.EvtManager(this.Evt.name.loadextensions)},writable:!0,configurable:!0},_LoadExtensions:{value:function(){if(this.hasExtensions&&J.isArray(this.extensions.name)&&J.isArray(this.extensions.src))for(var a=this.extensions,b=0;b',this.btnPrevPageHtml='',this.btnNextPageHtml='',this.btnFirstPageHtml='',this.btnLastPageHtml='',this.loader=!0,this.loaderHtml='
',this.loaderText=null}},writable:!0,configurable:!0},remove:{value:function(){if(this.fltGrid&&this._hasGrid){var a=this.tbl.rows;this.paging&&this.Cpt.paging.destroy(),this.statusBar&&this.Cpt.statusBar.destroy(),this.rowsCounter&&this.Cpt.rowsCounter.destroy(),this.btnReset&&this.Cpt.clearButton.destroy(),this.helpInstructions&&this.Cpt.help.destroy(),this.isExternalFlt&&!this.popUpFilters&&this.removeExternalFlts(),this.infDiv&&this.removeToolbar(),this.highlightKeywords&&this.Cpt.highlightKeyword.unhighlightAll(),this.sort&&this.RemoveSort(),this.loader&&this.Cpt.loader.remove(),this.popUpFilters&&this.Cpt.popupFilter.destroy(),this.markActiveColumns&&this.clearActiveColumns(),(this.editable||this.selectable)&&this.RemoveEditable();for(var b=this.refRow;b0&&!c.startRow?void 0:c.startRow||a.refRow,c.scroll_into_view=c.scroll_into_view===!1?!1:!0,c.base_path=c.base_path||a.basePath+"ezEditTable/",c.editable=a.editable=a.cfg.editable,c.selection=a.selectable=a.cfg.selectable,a.selectable&&(c.default_selection=c.default_selection||"row"),c.active_cell_css=c.active_cell_css||"ezETSelectedCell",a._lastValidRowIndex=0,a._lastRowIndex=0,a.selectable){var e=function(b,c,d){if(a.validRowsIndex){var e,f=a.validRowsIndex,g=f.length,h="row"!==b.defaultSelection?c.parentNode:c,i="TD"===c.nodeName?c:null,j=void 0!==d?b.Event.GetKey(d):0,k=K.has(f,h.rowIndex),l=34===j||33===j?a.pagingLength||b.nbRowsPerPage:1;if(k)34!==j&&33!==j?(a._lastValidRowIndex=K.indexByValue(f,h.rowIndex),a._lastRowIndex=h.rowIndex):(e=34===j?a._lastValidRowIndex+l<=g-1?f[a._lastValidRowIndex+l]:[g-1]:a._lastValidRowIndex-l<=f[0]?f[0]:f[a._lastValidRowIndex-l],a._lastRowIndex=e,a._lastValidRowIndex=K.indexByValue(f,e),o(e));else{if(h.rowIndex>a._lastRowIndex)if(h.rowIndex>=f[g-1])e=f[g-1];else{var m=a._lastValidRowIndex+l;e=m>g-1?f[g-1]:f[m]}else if(h.rowIndex<=f[0])e=f[0];else{var n=f[a._lastValidRowIndex-l];e=n?n:f[0]}a._lastRowIndex=h.rowIndex,o(e)}var o=function(d){if("row"===b.defaultSelection)b.Selection.SelectRowByIndex(d);else{b.ClearSelections();var e=c.cellIndex,f=a.tbl.rows[d];"both"===b.defaultSelection&&b.Selection.SelectRowByIndex(d),f&&b.Selection.SelectCell(f.cells[e])}if(a.validRowsIndex.length!==a.getRowsNb()){var g=a.tbl.rows[d];g&&g.scrollIntoView(!1),i&&(i.cellIndex===a.getCellsNb()-1&&a.gridLayout?a.tblCont.scrollLeft=1e8:0===i.cellIndex&&a.gridLayout?a.tblCont.scrollLeft=0:i.scrollIntoView(!1))}}}},f=function(b,c){var d="row"!==b.defaultSelection?c.parentNode:c;if(a.paging&&a.nbPages>1){b.nbRowsPerPage=a.pagingLength;var e=a.validRowsIndex,f=e.length,g=parseInt(a.startPagingRow,10)+parseInt(a.pagingLength,10),h=d.rowIndex;h===e[f-1]&&a.currentPageNb!=a.nbPages?a.Cpt.paging.setPage("last"):h==e[0]&&1!==a.currentPageNb?a.Cpt.paging.setPage("first"):h>e[g-1]&&he[0]&&a.Cpt.paging.setPage("previous")}};if(a.paging&&(a.onAfterChangePage=function(a){var b=a.ezEditTable,c=b.Selection.GetActiveRow();c&&c.scrollIntoView(!1);var d=b.Selection.GetActiveCell();d&&d.scrollIntoView(!1)}),"row"===c.default_selection){var g=c.on_before_selected_row;c.on_before_selected_row=function(){f(arguments[0],arguments[1],arguments[2]),g&&g.call(null,arguments[0],arguments[1],arguments[2])};var h=c.on_after_selected_row;c.on_after_selected_row=function(){e(arguments[0],arguments[1],arguments[2]),h&&h.call(null,arguments[0],arguments[1],arguments[2])}}else{var i=c.on_before_selected_cell;c.on_before_selected_cell=function(){f(arguments[0],arguments[1],arguments[2]),i&&i.call(null,arguments[0],arguments[1],arguments[2])};var j=c.on_after_selected_cell;c.on_after_selected_cell=function(){e(arguments[0],arguments[1],arguments[2]),j&&j.call(null,arguments[0],arguments[1],arguments[2])}}}if(a.editable){var k=c.on_added_dom_row;if(c.on_added_dom_row=function(){a.nbFilterableRows++,a.paging?(a.nbRows++,a.nbVisibleRows++,a.nbFilterableRows++,a.paging=!1,a.Cpt.paging.destroy(),a.Cpt.paging.addPaging()):a.Cpt.rowsCounter.refresh(),a.alternateBgs&&a.Cpt.alternateRows.init(),k&&k.call(null,arguments[0],arguments[1],arguments[2])},c.actions&&c.actions["delete"]){var l=c.actions["delete"].on_after_submit;c.actions["delete"].on_after_submit=function(){a.nbFilterableRows--,a.paging?(a.nbRows--,a.nbVisibleRows--,a.nbFilterableRows--,a.paging=!1,a.Cpt.paging.destroy(),a.Cpt.paging.addPaging(!1)):a.Cpt.rowsCounter.refresh(),a.alternateBgs&&a.Cpt.alternateRows.init(),l&&l.call(null,arguments[0],arguments[1])}}}try{a.ezEditTable=new EditTable(a.id,c,b),a.ezEditTable.Init()}catch(m){console.log(c.err)}},writable:!0,configurable:!0},resetValues:{value:function(){this.EvtManager(this.Evt.name.resetvalues)},writable:!0,configurable:!0},_resetValues:{value:function(){this.rememberGridValues&&this.fillSlcOnDemand&&this.resetGridValues(this.fltsValuesCookie),this.rememberPageLen&&this.Cpt.paging.resetPageLength(this.pgLenCookie),this.rememberPageNb&&this.Cpt.paging.resetPage(this.pgNbCookie)},writable:!0,configurable:!0},resetGridValues:{value:function(a){if(this.fillSlcOnDemand){var b=this.Cpt.store.getFilterValues(a),c=this.getFiltersByType(this.fltTypeSlc,!0),d=this.getFiltersByType(this.fltTypeMulti,!0);if(Number(b[b.length-1])===this.fltIds.length){for(var e=0;ev):N?(w=ab(a.replace(i,""),E),e=w>=v):P?(w=ab(a.replace(j,""),E),e=v>=w):O?(w=ab(a.replace(l,""),E),e=v>w):Q?(w=ab(a.replace(m,""),E),e=v.toString()!=w.toString()):R?(w=ab(a.replace(o,""),E),e=v.toString()==w.toString()):n.test(a)?e=f._containsStr(a.replace(n,""),b,null,!1):_(a,E)?(w=ab(a,E),e=v.toString()==w.toString()):J?e=H.isEmpty(b):K&&(e=!H.isEmpty(b));else if(f.hasColNbFormat&&f.colNbFormat[c]?(g=B(b,f.colNbFormat[c]),h=f.colNbFormat[c]):","===f.thousandsSeparator&&"."===f.decimalSeparator?(g=B(b,"us"),h="us"):(g=B(b,"eu"),h="eu"),y)e=g<=B(a.replace(i,""),h);else if(A)e=g>=B(a.replace(j,""),h);else if(x)e=gB(a.replace(l,""),h);else if(C)e=f._containsStr(a.replace(m,""),b)?!1:!0;else if(F)e=f._containsStr(a.replace(n,""),b,null,!1);else if(D)e=f._containsStr(a.replace(o,""),b,null,!0);else if(G)e=0===b.indexOf(a.replace(p,""))?!0:!1;else if(I){var S=a.replace(q,"");e=b.lastIndexOf(S,b.length-1)===b.length-1-(S.length-1)&&b.lastIndexOf(S,b.length-1)>-1?!0:!1}else if(J)e=H.isEmpty(b);else if(K)e=!H.isEmpty(b);else if(L)try{var T=a.replace(u,""),U=new RegExp(T);e=U.test(b)}catch(V){e=!1}else{var W=d["col_"+c];e=f._containsStr(a,b,W?W:f.fltTypeInp)}return e}if(this.fltGrid&&(this._hasGrid||this.isFirstLoad)){this.onBeforeFilter&&this.onBeforeFilter.call(null,this);var c=this.tbl.rows,d=this.cfg,e=0;this.validRowsIndex=[];var f=this;this.highlightKeywords&&this.Cpt.highlightKeyword.unhighlightAll(),this.popUpFilters&&this.Cpt.popupFilter.buildIcons(),this.markActiveColumns&&this.clearActiveColumns(),this.searchArgs=this.getFiltersValue();for(var g,h,i=new RegExp(this.leOperator),j=new RegExp(this.geOperator),k=new RegExp(this.lwOperator),l=new RegExp(this.grOperator),m=new RegExp(this.dfOperator),n=new RegExp(H.rgxEsc(this.lkOperator)),o=new RegExp(this.eqOperator),p=new RegExp(this.stOperator),q=new RegExp(this.enOperator),r=new RegExp(this.anOperator),s=(new RegExp(this.curExp),this.emOperator),t=this.nmOperator,u=new RegExp(H.rgxEsc(this.rgxOperator)),v=this.refRow;vC;C++){var D=this.searchArgs[this.singleSearchFlt?0:C],E=this.hasColDateType?this.colDateType[C]:this.defaultDateType;if(""!==D){var F=H.matchCase(this.getCellData(C,w[C]),this.matchCase),I=D.split(this.orOperator),J=I.length>1?!0:!1,L=D.split(this.anOperator),M=L.length>1?!0:!1;if(J||M){for(var N,O=!1,P=J?I:L,Q=0;Qj;j++)if(j===a&&""===d[f].style.display){var k=H.lower(this.getCellData(j,h[j])),l=this.colNbFormat?this.colNbFormat[a]:null,m=b?B(k,l):k;e.push(m)}}return e}},writable:!0,configurable:!0},getFilterValue:{value:function(a){if(this.fltGrid){var b,c=this.getFilterElement(a);if(!c)return"";var d=this.fltCol[a];if(d!==this.fltTypeMulti&&d!==this.fltTypeCheckList)b=c.value;else if(d===this.fltTypeMulti){b="";for(var e=0;e