functionTF(){}define(function(require){functionTableFilter(a){if(0!==arguments.length){if(this.id=a,this.version="3.0",this.year=(newDate).getFullYear(),this.tbl=TF.id(a),this.startRow=null,this.refRow=null,this.headersRow=null,this.fObj=null,this.nbFilterableRows=null,this.nbRows=null,this.nbCells=null,this.hasGrid=!1,this.enableModules=!1,!this.tbl||"table"!==str.lower(this.tbl.nodeName)||0===this.GetRowsNb())thrownewError("Could not instantiate TF object: table not found.");if(arguments.length>1)for(varb=0;b<arguments.length;b++){varc=arguments[b],d=typeofc;switch(str.lower(d)){case"number":this.startRow=c;break;case"object":this.fObj=c}}vare=this.fObj||{};this.refRow=null===this.startRow?2:this.startRow+1;try{this.nbCells=this.GetCellsNb(this.refRow)}catch(f){this.nbCells=this.GetCellsNb(0)}this.basePath=void0!==e.base_path?e.base_path:"TableFilter/",this.fltTypeInp="input",this.fltTypeSlc="select",this.fltTypeMulti="multiple",this.fltTypeCheckList="checklist",this.fltTypeNone="none",this.fltCol=[];for(varg=0;g<this.nbCells;g++){varh=e["col_"+g],i=h?str.lower(h):this.fltTypeInp;this.fltCol.push(i),this["col"+g]=i}this.publicMethods=void0!==e.public_methods?e.public_methods:!1,this.fltGrid=e.grid===!1?!1:!0,this.gridLayout=e.grid_layout?!0:!1,this.hasGridWidthsRow=!1,this.gridColElms=[],this.sourceTblHtml=null,this.gridLayout&&(void0===this.tbl.outerHTML&&setOuterHtml(),this.sourceTblHtml=this.tbl.outerHTML),this.filtersRowIndex=e.filters_row_index||0,this.headersRow=e.headers_row_index||(0===this.filtersRowIndex?1:0),this.gridLayout&&(this.headersRow>1?this.filtersRowIndex=this.headersRow+1:(this.filtersRowIndex=1,this.headersRow=0)),this.fltCellTag="th"!==e.filters_cell_tag||"td"!==e.filters_cell_tag?"td":e.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=e.inf_div_css_class||"inf",this.lDivCssClass=e.left_div_css_class||"ldiv",this.rDivCssClass=e.right_div_css_class||"rdiv",this.mDivCssClass=e.middle_div_css_class||"mdiv",this.contDivCssClass=e.content_div_css_class||"cont",this.stylesheet=e.stylesheet||this.basePath+"filtergrid.css",this.stylesheetId=this.id+"_style",this.fltsRowCssClass=e.flts_row_css_class||"fltrow",this.enableIcons=e.enable_icons===!1?!1:!0,this.alternateBgs=e.alternate_rows===!0?!0:!1,this.hasColWidth=e.col_width===!0?!0:!1,this.colWidth=this.hasColWidth?e.col_width:null,this.fixedHeaders=e.fixed_headers===!0?!0:!1,this.tBodyH=isNaN(e.tbody_height)?200:e.tbody_height,this.fltCssClass=e.flt_css_class||"flt",this.fltMultiCssClass=e.flt_multi_css_class||"flt_multi",this.fltSmallCssClass=e.flt_small_css_class||"flt_s",this.singleFltCssClass=e.single_flt_css_class||"single_flt",this.isStartBgAlternate=!0,this.rowBgEvenCssClass=e.even_row_css_class||"even",this.rowBgOddCssClass=e.odd_row_css_class||"odd",this.enterKey=e.enter_key===!1?!1:!0,this.isModFilterFn=e.mod_filter_fn===!0?!0:!1,this.modFilterFn=this.isModFilterFn?e.mod_filter_fn:null,this.onBeforeFilter=types.isFn(e.on_before_filter)?e.on_before_filter:null,this.onAfterFilter=types.isFn(e.on_after_filter)?e.on_after_filter:null,this.matchCase=e.match_case===!0?!0:!1,this.exactMatch=e.exact_match===!0?!0:!1,this.refreshFilters=e.refresh_filters===!0?!0:!1,this.disableExcludedOptions=e.disable_excluded_options===!0?!0:!1,this.activeFlt=null,this.activeFilterId=null,this.hasColOperation=e.col_operation===!0?!0:!1,this.colOperation=null,this.hasVisibleRows=e.rows_always_visible===!0?!0:!1,this.visibleRows=this.hasVisibleRows?e.rows_always_visible:[],this.searchType=e.search_type||"include",this.isExternalFlt=e.external_flt_grid===!0?!0:!1,this.externalFltTgtIds=e.external_flt_grid_ids||null,this.externalFltEls=[],this.execDelay=isNaN(e.exec_delay)?100:parseInt(e.exec_delay,10),this.status=e.status===!0?!0:!1,this.onFiltersLoaded=types.isFn(e.on_filters_loaded)?e.on_filters_loaded:null,this.singleSearchFlt=e.single_search_filter===!0?
},IncludeFile:function(a,b,c,d){vare=d?d:"script",f=isImported(b,e);if(!f){varg,h=this,i=!1,j=TF.tag(doc,"head")[0];g="link"===str.lower(e)?dom.create("link",["id",a],["type","text/css"],["rel","stylesheet"],["href",b]):dom.create("script",["id",a],["type","text/javascript"],["src",b]),g.onload=g.onreadystatechange=function(){i||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(i=!0,"function"==typeofc&&c.call(null,h))},g.onerror=function(){thrownewError("TF script could not load:\n"+this.src)},j.appendChild(g)}},HasGrid:function(){returnthis.hasGrid},GetFiltersId:function(){returnthis.hasGrid?this.fltIds:void0},GetValidRowsIndex:function(a){if(this.hasGrid){if(!a)returnthis.validRowsIndex;this.validRowsIndex=[];for(varb=this.refRow;b<this.GetRowsNb(!0);b++){varc=this.tbl.rows[b];this.paging?("true"===c.getAttribute("validRow")||null===c.getAttribute("validRow"))&&this.validRowsIndex.push(c.rowIndex):"none"!==this.GetRowDisplay(c)&&this.validRowsIndex.push(c.rowIndex)}returnthis.validRowsIndex}},GetFiltersRowIndex:function(){returnthis.hasGrid?this.filtersRowIndex:void0},GetHeadersRowIndex:function(){returnthis.hasGrid?this.headersRow:void0},GetStartRowIndex:function(){returnthis.hasGrid?this.refRow:void0},GetLastRowIndex:function(){returnthis.hasGrid?this.nbRows-1:void0},GetHeaderElement:function(a){for(varb,c=this.gridLayout?this.headTbl:this.tbl,d=TF.tag(this.tbl,"thead"),e=0;e<this.nbCells;e++)if(e===a){0===d.length&&(b=c.rows[this.headersRow].cells[e]),1===d.length&&(b=d[0].rows[this.headersRow].cells[e]);break}returnb},GetConfigObject:function(){returnthis.fObj},GetFilterableRowsNb:function(){returnthis.GetRowsNb(!1)}},TableFilter}),TF.id=function(a){returndocument.getElementById(a)},TF.tag=function(a,b){returna.getElementsByTagName(b)},TF.isIE=/msie|MSIE/.test(navigator.userAgent);