2020-07-27 09:12:45 +08:00
function getRememberRowIds ( a , b ) { return props = $ . isArray ( a ) ? $ . map ( a , function ( a ) { return a [ b ] } ) : [ a [ b ] ] } function addRememberRow ( a , b ) { var c = null == table . options . uniqueId ? table . options . columns [ 1 ] . field : table . options . uniqueId , d = getRememberRowIds ( a , c ) ; - 1 == $ . inArray ( b [ c ] , d ) && ( a [ a . length ] = b ) } function removeRememberRow ( a , b ) { var c = null == table . options . uniqueId ? table . options . columns [ 1 ] . field : table . options . uniqueId , d = getRememberRowIds ( a , c ) , e = $ . inArray ( b [ c ] , d ) ; - 1 != e && a . splice ( e , 1 ) } var TABLE _EVENTS , firstLoadTable , union , difference , _ ; ! function ( a , b ) { "object" == typeof exports && "undefined" != typeof module ? module . exports = b ( require ( "jquery" ) ) : "function" == typeof define && define . amd ? define ( [ "jquery" ] , b ) : ( a = a || self , a . BootstrapTable = b ( a . jQuery ) ) } ( this , function ( a ) { "use strict" ; function b ( a , b ) { return b = { exports : { } } , a ( b , b . exports ) , b . exports } function c ( a , b ) { return RegExp ( a , b ) } function d ( a ) { return d = "function" == typeof Symbol && "symbol" == typeof Symbol . iterator ? function ( a ) { return typeof a } : function ( a ) { return a && "function" == typeof Symbol && a . constructor === Symbol && a !== Symbol . prototype ? "symbol" : typeof a } , d ( a ) } function e ( a , b ) { if ( ! ( a instanceof b ) ) throw new TypeError ( "Cannot call a class as a function" ) } function f ( a , b ) { var c , d ; for ( c = 0 ; c < b . length ; c ++ ) d = b [ c ] , d . enumerable = d . enumerable || ! 1 , d . configurable = ! 0 , "value" in d && ( d . writable = ! 0 ) , Object . defineProperty ( a , d . key , d ) } function g ( a , b , c ) { return b && f ( a . prototype , b ) , c && f ( a , c ) , a } function h ( a , b ) { return k ( a ) || m ( a , b ) || o ( ) } function i ( a ) { return j ( a ) || l ( a ) || n ( ) } function j ( a ) { if ( Array . isArray ( a ) ) { for ( var b = 0 , c = new Array ( a . length ) ; b < a . length ; b ++ ) c [ b ] = a [ b ] ; return c } } function k ( a ) { return Array . isArray ( a ) ? a : void 0 } function l ( a ) { return Symbol . iterator in Object ( a ) || "[object Arguments]" === Object . prototype . toString . call ( a ) ? Array . from ( a ) : void 0 } function m ( a , b ) { var c , d , e , f , g , h ; if ( Symbol . iterator in Object ( a ) || "[object Arguments]" === Object . prototype . toString . call ( a ) ) { c = [ ] , d = ! 0 , e = ! 1 , f = void 0 ; try { for ( h = a [ Symbol . iterator ] ( ) ; ! ( d = ( g = h . next ( ) ) . done ) && ( c . push ( g . value ) , ! b || c . length !== b ) ; d = ! 0 ) ; } catch ( i ) { e = ! 0 , f = i } finally { try { d || null == h [ "return" ] || h [ "return" ] ( ) } finally { if ( e ) throw f } } return c } } function n ( ) { throw new TypeError ( "Invalid attempt to spread non-iterable instance" ) } function o ( ) { throw new TypeError ( "Invalid attempt to destructure non-iterable instance" ) } var p , q , r , s , t , u , v , w , x , y , z , A , B , C , D , E , F , G , H , I , J , K , L , M , N , O , P , Q , R , S , T , U , V , W , X , Y , Z , $ , _ , ab , bb , cb , db , eb , fb , gb , hb , ib , jb , kb , lb , mb , nb , ob , pb , qb , rb , sb , tb , ub , vb , wb , xb , yb , zb , Ab , Bb , Cb , Db , Eb , Fb , Gb , Hb , Ib , Jb , Kb , Lb , Mb , Nb , Ob , Pb , Qb , Rb , Sb , Tb , Ub , Vb , Wb , Xb , Yb , Zb , $b , _b , ac , bc , cc , dc , ec , fc , gc , hc , ic , jc , kc , lc , mc , nc , oc , pc , qc , rc , sc , tc , uc , vc , wc , xc , yc , zc , Ac , Bc , Cc , Dc , Ec , Fc , Gc , Hc , Ic , Jc , Kc , Lc , Mc , Nc , Oc , Pc , Qc , Rc , Sc , Tc , Uc , Vc , Wc , Xc , Yc , Zc , $c , _c , ad , bd , cd , dd , ed , fd , gd , hd , id , jd , kd , ld , md , nd , od , pd , qd , rd , sd , td , ud , vd , wd , xd , yd , zd , Ad , Bd , Cd , Dd , Ed , Fd , Gd , Hd , Id , Jd , Kd , Ld , Md , Nd , Od , Pd , Qd , Rd , Sd , Td , Ud , Vd , Wd , Xd , Yd , Zd , $d , _d , ae , be , ce , de , ee , fe , ge , he , ie , je , ke , le , me , ne , oe , pe , qe , re , se , te , ue , ve , we , xe , ye , ze , Ae , Be , Ce , De , Ee , Fe , Ge , He , Ie , Je , Ke , Le , Me , Ne , Oe , Pe , Qe , Re , Se , Te , Ue , Ve , We , Xe , Ye , Ze , $e , _e , af , bf , cf , df , ef , ff , gf , hf , jf , kf , lf , mf , nf , of , pf , qf , rf , sf , tf , uf , vf , wf , xf , yf , zf , Af , Bf , Cf , Df , Ef , Ff , Gf , Hf , If , Jf , Kf , Lf , Mf , Nf , Of , Pf , Qf , Rf , Sf , Tf , Uf , Vf , Wf , Xf , Yf , Zf , $f , _f , ag , bg , cg , dg , eg , fg , gg , hg , ig , jg , kg , lg , mg , ng , og , pg , qg , rg , sg , tg , ug , vg , wg , xg , yg , zg , Ag , Bg , Cg , Dg , Eg , Fg , Gg , Hg , Ig , Jg , Kg , Lg , Mg , Ng , Og , Pg , Qg , Rg , Sg , Tg , Ug , Vg , Wg , Xg , Yg , Zg , $g , _g , ah , bh , ch , dh , eh , fh , gh , hh , ih , jh , kh , lh , mh , nh , oh , ph , qh , rh , sh , th , uh , vh , wh , xh , yh , zh , Ah , Bh , Ch , Dh , Eh , Fh , Gh ; if ( a = a && Object . prototype . hasOwnProperty . call ( a , "default" ) ? a [ "default" ] : a , p = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : { } , q = function ( a ) { return a && a . Math == Math && a } , r = q ( "object" == typeof globalThis && globalThis ) || q ( "object" == typeof window && window ) || q ( "object" == typeof self && self ) || q ( "object" == typeof p && p ) || Function ( "return this" ) ( ) , s = function ( a ) { try { return ! ! a ( ) } catch ( b ) { return ! 0 } } , t = ! s ( function ( ) { return 7 != Object . defineProperty ( { } , "a" , { get : function ( ) { return 7 } } ) . a } ) , u = { } . propertyIsEnumerable , v = Object . getOwnPropertyDescriptor , w = v && ! u . call ( { 1 : 2 } , 1 ) , x = w ? function ( a ) { var b = v ( this , a )
return f === k . length ? ( j || ! g . test ( "" ) ) && d . push ( "" ) : d . push ( k . slice ( f ) ) , d . length > l ? d . slice ( 0 , l ) : d } : "0" . split ( void 0 , 0 ) . length ? function ( a , c ) { return void 0 === a && 0 === c ? [ ] : b . call ( this , a , c ) } : b , [ function ( b , c ) { var e = E ( this ) , f = void 0 == b ? void 0 : b [ a ] ; return void 0 !== f ? f . call ( b , e , c ) : d . call ( String ( e ) , b , c ) } , function ( a , e ) { var f , g , h , i , j , k , l , m , n , o , p , q , r , s = c ( d , a , this , e , d !== b ) ; if ( s . done ) return s . value ; if ( f = R ( a ) , g = String ( this ) , h = Ng ( f , RegExp ) , i = f . unicode , j = ( f . ignoreCase ? "i" : "" ) + ( f . multiline ? "m" : "" ) + ( f . unicode ? "u" : "" ) + ( Rg ? "y" : "g" ) , k = new h ( Rg ? f : "^(?:" + f . source + ")" , j ) , l = void 0 === e ? Qg : e >>> 0 , 0 === l ) return [ ] ; if ( 0 === g . length ) return null === Eg ( k , g ) ? [ g ] : [ ] ; for ( m = 0 , n = 0 , o = [ ] ; n < g . length ; ) if ( k . lastIndex = Rg ? n : 0 , p = Eg ( k , Rg ? g : g . slice ( n ) ) , null === p || ( q = Pg ( Db ( k . lastIndex + ( Rg ? 0 : n ) ) , g . length ) ) === m ) n = Dg ( g , n , i ) ; else { if ( o . push ( g . slice ( m , n ) ) , o . length === l ) return o ; for ( r = 1 ; r <= p . length - 1 ; r ++ ) if ( o . push ( p [ r ] ) , o . length === l ) return o ; n = m = q } return o . push ( g . slice ( m ) ) , o } ] } , ! Rg ) , Sg = "
" , Tg = function ( a ) { return s ( function ( ) { return ! ! ff [ a ] ( ) || Sg [ a ] ( ) != Sg || ff [ a ] . name !== a } ) } , Ug = lf . trim , _b ( { target : "String" , proto : ! 0 , forced : Tg ( "trim" ) } , { trim : function ( ) { return Ug ( this ) } } ) , Vg = { CSSRuleList : 0 , CSSStyleDeclaration : 0 , CSSValueList : 0 , ClientRectList : 0 , DOMRectList : 0 , DOMStringList : 0 , DOMTokenList : 1 , DataTransferItemList : 0 , FileList : 0 , HTMLAllCollection : 0 , HTMLCollection : 0 , HTMLFormElement : 0 , HTMLSelectElement : 0 , MediaList : 0 , MimeTypeArray : 0 , NamedNodeMap : 0 , NodeList : 1 , PaintRequestList : 0 , Plugin : 0 , PluginArray : 0 , SVGLengthList : 0 , SVGNumberList : 0 , SVGPathSegList : 0 , SVGPointList : 0 , SVGStringList : 0 , SVGTransformList : 0 , SourceBufferList : 0 , StyleSheetList : 0 , TextTrackCueList : 0 , TextTrackList : 0 , TouchList : 0 } , Wg = Qc . forEach , Xg = fe ( "forEach" ) ? function ( a ) { return Wg ( this , a , arguments . length > 1 ? arguments [ 1 ] : void 0 ) } : [ ] . forEach ; for ( Yg in Vg ) if ( Zg = r [ Yg ] , $g = Zg && Zg . prototype , $g && $g . forEach !== Xg ) try { V ( $g , "forEach" , Xg ) } catch ( Hh ) { $g . forEach = Xg } _g = Cc ( "iterator" ) , ah = Cc ( "toStringTag" ) , bh = Ke . values ; for ( ch in Vg ) if ( dh = r [ ch ] , eh = dh && dh . prototype ) { if ( eh [ _g ] !== bh ) try { V ( eh , _g , bh ) } catch ( Hh ) { eh [ _g ] = bh } if ( eh [ ah ] || V ( eh , ah , ch ) , Vg [ ch ] ) for ( fh in Ke ) if ( eh [ fh ] !== Ke [ fh ] ) try { V ( eh , fh , Ke [ fh ] ) } catch ( Hh ) { eh [ fh ] = Ke [ fh ] } } gh = "1.17.1" , hh = 4 ; try { ih = a . fn . dropdown . Constructor . VERSION , void 0 !== ih && ( hh = parseInt ( ih , 10 ) ) } catch ( Ih ) { } try { jh = bootstrap . Tooltip . VERSION , void 0 !== jh && ( hh = parseInt ( jh , 10 ) ) } catch ( Ih ) { } return kh = { 3 : { iconsPrefix : "glyphicon" , icons : { paginationSwitchDown : "glyphicon-collapse-down icon-chevron-down" , paginationSwitchUp : "glyphicon-collapse-up icon-chevron-up" , refresh : "glyphicon-refresh icon-refresh" , toggleOff : "glyphicon-list-alt icon-list-alt" , toggleOn : "glyphicon-list-alt icon-list-alt" , columns : "glyphicon-th icon-th" , detailOpen : "glyphicon-plus icon-plus" , detailClose : "glyphicon-minus icon-minus" , fullscreen : "glyphicon-fullscreen" , search : "glyphicon-search" , clearSearch : "glyphicon-trash" } , classes : { buttonsPrefix : "btn" , buttons : "default" , buttonsGroup : "btn-group" , buttonsDropdown : "btn-group" , pull : "pull" , inputGroup : "input-group" , inputPrefix : "input-" , input : "form-control" , paginationDropdown : "btn-group dropdown" , dropup : "dropup" , dropdownActive : "active" , paginationActive : "active" , buttonActive : "active" } , html : { toolbarDropdown : [ '<ul class="dropdown-menu" role="menu">' , "</ul>" ] , toolbarDropdownItem : '<li class="dropdown-item-marker" role="menuitem"><label>%s</label></li>' , toolbarDropdownSeparator : '<li class="divider"></li>' , pageDropdown : [ '<ul class="dropdown-menu" role="menu">' , "</ul>" ] , pageDropdownItem : '<li role="menuitem" class="%s"><a href="#">%s</a></li>' , dropdownCaret : '<span class="caret"></span>' , pagination : [ '<ul class="pagination%s">' , "</ul>" ] , paginationItem : '<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>' , icon : '<i class="%s %s"></i>' , inputGroup : '<div class="input-group">%s<span class="input-group-btn">%s</span></div>' , searchInput : '<input class="%s%s" type="text" placeholder="%s">' , searchButton : '<button class="%s" type="button" name="search" title="%s">%s %s</button>' , searchClearButton : '<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>' } } , 4 : { iconsPrefix : "fa" , icons : { paginationSwitchDown : " fa - caret - square -
} ) ) , this . $selectAll = this . $header . find ( '[name="btSelectAll"]' ) , this . $selectAll . off ( "click" ) . on ( "click" , function ( b ) { b . stopPropagation ( ) ; var d = a ( b . currentTarget ) . prop ( "checked" ) ; c [ d ? "checkAll" : "uncheckAll" ] ( ) , c . updateSelected ( ) } ) } } , { key : "initData" , value : function ( a , b ) { "append" === b ? this . options . data = this . options . data . concat ( a ) : "prepend" === b ? this . options . data = [ ] . concat ( a ) . concat ( this . options . data ) : ( a = a || this . options . data , this . options . data = Array . isArray ( a ) ? a : a [ this . options . dataField ] ) , this . data = i ( this . options . data ) , this . options . sortReset && ( this . unsortedData = i ( this . data ) ) , "server" !== this . options . sidePagination && this . initSort ( ) } } , { key : "initSort" , value : function ( ) { var a = this , b = this . options . sortName , c = "desc" === this . options . sortOrder ? - 1 : 1 , d = this . header . fields . indexOf ( this . options . sortName ) , e = 0 ; - 1 !== d ? ( this . options . sortStable && this . data . forEach ( function ( a , b ) { a . hasOwnProperty ( "_position" ) || ( a . _position = b ) } ) , this . options . customSort ? Ch . calculateObjectValue ( this . options , this . options . customSort , [ this . options . sortName , this . options . sortOrder , this . data ] ) : this . data . sort ( function ( e , f ) { var g , h , i ; return a . header . sortNames [ d ] && ( b = a . header . sortNames [ d ] ) , g = Ch . getItemField ( e , b , a . options . escape ) , h = Ch . getItemField ( f , b , a . options . escape ) , i = Ch . calculateObjectValue ( a . header , a . header . sorters [ d ] , [ g , h , e , f ] ) , void 0 !== i ? a . options . sortStable && 0 === i ? c * ( e . _position - f . _position ) : c * i : Ch . sort ( g , h , c , a . options . sortStable , e . _position , f . _position ) } ) , void 0 !== this . options . sortClass && ( clearTimeout ( e ) , e = setTimeout ( function ( ) { a . $el . removeClass ( a . options . sortClass ) ; var b = a . $header . find ( '[data-field="' . concat ( a . options . sortName , '"]' ) ) . index ( ) ; a . $el . find ( "tr td:nth-child(" . concat ( b + 1 , ")" ) ) . addClass ( a . options . sortClass ) } , 250 ) ) ) : this . options . sortReset && ( this . data = i ( this . unsortedData ) ) } } , { key : "onSort" , value : function ( b ) { var c , d = b . type , e = b . currentTarget , f = "keypress" === d ? a ( e ) : a ( e ) . parent ( ) , g = this . $header . find ( "th" ) . eq ( f . index ( ) ) ; return this . $header . add ( this . $header _ ) . find ( "span.order" ) . remove ( ) , this . options . sortName === f . data ( "field" ) ? ( c = this . options . sortOrder , void 0 === c ? this . options . sortOrder = "asc" : "asc" === c ? this . options . sortOrder = "desc" : "desc" === this . options . sortOrder && ( this . options . sortOrder = this . options . sortReset ? void 0 : "asc" ) , void 0 === this . options . sortOrder && ( this . options . sortName = void 0 ) ) : ( this . options . sortName = f . data ( "field" ) , this . options . sortOrder = this . options . rememberOrder ? "asc" === f . data ( "order" ) ? "desc" : "asc" : this . columns [ this . fieldsColumnsIndex [ f . data ( "field" ) ] ] . sortOrder || this . columns [ this . fieldsColumnsIndex [ f . data ( "field" ) ] ] . order ) , this . trigger ( "sort" , this . options . sortName , this . options . sortOrder ) , f . add ( g ) . data ( "order" , this . options . sortOrder ) , this . getCaret ( ) , "server" === this . options . sidePagination && this . options . serverSort ? ( this . options . pageNumber = 1 , this . initServer ( this . options . silentSort ) , void 0 ) : ( this . initSort ( ) , this . initBody ( ) , void 0 ) } } , { key : "initToolbar" , value : function ( ) { var b , c , e , f , g , h , i , j , k , l , m , n , o , p , q , r , s , t , u , v = this , w = this . options , x = [ ] , y = 0 , z = 0 ; this . $toolbar . find ( ".bs-bars" ) . children ( ) . length && a ( "body" ) . append ( a ( w . toolbar ) ) , this . $toolbar . html ( "" ) , ( "string" == typeof w . toolbar || "object" === d ( w . toolbar ) ) && a ( Ch . sprintf ( '<div class="bs-bars %s-%s"></div>' , this . constants . classes . pull , w . toolbarAlign ) ) . appendTo ( this . $toolbar ) . append ( a ( w . toolbar ) ) , x = [ '<div class="' . concat ( [ "columns" , "columns-" . concat ( w . buttonsAlign ) , this . constants . classes . buttonsGroup , "" . concat ( this . constants . classes . pull , "-" ) . concat ( w . buttonsAlign ) ] . join ( " " ) , '">' ) ] , "string" == typeof w . icons && ( w . icons = Ch . calculateObjectValue ( null , w . icons ) ) , c = { search : '<button class="' . concat ( this . constants . buttonsClass , '" type="button" name="showSearch"\n aria-label="show Search" title="' ) . concat ( w . formatSearch ( ) , '">\n ' ) . concat ( w . showButtonIcons ? Ch . sprintf ( this . constants . html . icon , w . iconsPrefix , w . icons . search ) : "" , "\n " ) . concat ( w . showButtonText ? w . formatSearch ( ) : "" , "\n </button>" ) , paginationSwitch : '<button class="' . concat ( this . constants . buttonsClass , '" type="button" name="paginationSwitch"\n aria-label="Pagination Switch" title="' ) . concat ( w . formatPaginationSwitch ( ) , '">\n ' ) . concat ( w . showBut
l . load ( e ) , l . trigger ( "load-success" , e , d && d . status , d ) , b || l . hideLoading ( ) , "server" === l . options . sidePagination && e [ l . options . totalField ] > 0 && ! e [ l . options . dataField ] . length && l . updatePagination ( ) } , error : function ( a ) { var c = [ ] ; "server" === l . options . sidePagination && ( c = { } , c [ l . options . totalField ] = 0 , c [ l . options . dataField ] = [ ] ) , l . load ( c ) , l . trigger ( "load-error" , a && a . status , a ) , b || l . $tableLoading . hide ( ) } } ) , this . options . ajax ? Ch . calculateObjectValue ( this , this . options . ajax , [ k ] , null ) : ( this . _xhr && 4 !== this . _xhr . readyState && this . _xhr . abort ( ) , this . _xhr = a . ajax ( k ) ) , m } } } , { key : "initSearchText" , value : function ( ) { if ( this . options . search && ( this . searchText = "" , "" !== this . options . searchText ) ) { var a = this . $toolbar . find ( ".search input" ) ; a . val ( this . options . searchText ) , this . onSearch ( { currentTarget : a , firedByInitSearchText : ! 0 } ) } } } , { key : "getCaret" , value : function ( ) { var b = this ; this . $header . find ( "th" ) . each ( function ( c , d ) { a ( d ) . find ( ".sortable" ) . removeClass ( "desc asc" ) . addClass ( a ( d ) . data ( "field" ) === b . options . sortName ? b . options . sortOrder : "both" ) } ) } } , { key : "updateSelected" , value : function ( ) { var b = this . $selectItem . filter ( ":enabled" ) . length && this . $selectItem . filter ( ":enabled" ) . length === this . $selectItem . filter ( ":enabled" ) . filter ( ":checked" ) . length ; this . $selectAll . add ( this . $selectAll _ ) . prop ( "checked" , b ) , this . $selectItem . each ( function ( b , c ) { a ( c ) . closest ( "tr" ) [ a ( c ) . prop ( "checked" ) ? "addClass" : "removeClass" ] ( "selected" ) } ) } } , { key : "updateRows" , value : function ( ) { var b = this ; this . $selectItem . each ( function ( c , d ) { b . data [ a ( d ) . data ( "index" ) ] [ b . header . stateField ] = a ( d ) . prop ( "checked" ) } ) } } , { key : "resetRows" , value : function ( ) { var a , b , c , d = ! 0 , e = ! 1 , f = void 0 ; try { for ( b = this . data [ Symbol . iterator ] ( ) ; ! ( d = ( a = b . next ( ) ) . done ) ; d = ! 0 ) c = a . value , this . $selectAll . prop ( "checked" , ! 1 ) , this . $selectItem . prop ( "checked" , ! 1 ) , this . header . stateField && ( c [ this . header . stateField ] = ! 1 ) } catch ( g ) { e = ! 0 , f = g } finally { try { d || null == b . return || b . return ( ) } finally { if ( e ) throw f } } this . initHiddenRows ( ) } } , { key : "trigger" , value : function ( c ) { var d , e , f , g , h = "" . concat ( c , ".bs.table" ) ; for ( e = arguments . length , f = new Array ( e > 1 ? e - 1 : 0 ) , g = 1 ; e > g ; g ++ ) f [ g - 1 ] = arguments [ g ] ; ( d = this . options ) [ b . EVENTS [ h ] ] . apply ( d , f ) , this . $el . trigger ( a . Event ( h ) , f ) , this . options . onAll ( h , f ) , this . $el . trigger ( a . Event ( "all.bs.table" ) , [ h , f ] ) } } , { key : "resetHeader" , value : function ( ) { var a = this ; clearTimeout ( this . timeoutId _ ) , this . timeoutId _ = setTimeout ( function ( ) { return a . fitHeader ( ) } , this . $el . is ( ":hidden" ) ? 100 : 0 ) } } , { key : "fitHeader" , value : function ( ) { var b , c , d , e , f , g , h , i , j , k , l , m = this ; if ( this . $el . is ( ":hidden" ) ) return this . timeoutId _ = setTimeout ( function ( ) { return m . fitHeader ( ) } , 100 ) , void 0 ; for ( b = this . $tableBody . get ( 0 ) , c = b . scrollWidth > b . clientWidth && b . scrollHeight > b . clientHeight + this . $header . outerHeight ( ) ? Ch . getScrollBarWidth ( ) : 0 , this . $el . css ( "margin-top" , - this . $header . outerHeight ( ) ) , d = a ( ":focus" ) , d . length > 0 && ( e = d . parents ( "th" ) , e . length > 0 && ( f = e . attr ( "data-field" ) , void 0 !== f && ( g = this . $header . find ( "[data-field='" . concat ( f , "']" ) ) , g . length > 0 && g . find ( ":input" ) . addClass ( "focus-temp" ) ) ) ) , this . $header _ = this . $header . clone ( ! 0 , ! 0 ) , this . $selectAll _ = this . $header _ . find ( '[name="btSelectAll"]' ) , this . $tableHeader . css ( "margin-right" , c ) . find ( "table" ) . css ( "width" , this . $el . outerWidth ( ) ) . html ( "" ) . attr ( "class" , this . $el . attr ( "class" ) ) . append ( this . $header _ ) , this . $tableLoading . css ( "width" , this . $el . outerWidth ( ) ) , h = a ( ".focus-temp:visible:eq(0)" ) , h . length > 0 && ( h . focus ( ) , this . $header . find ( ".focus-temp" ) . removeClass ( "focus-temp" ) ) , this . $header . find ( "th[data-field]" ) . each ( function ( b , c ) { m . $header _ . find ( Ch . sprintf ( 'th[data-field="%s"]' , a ( c ) . data ( "field" ) ) ) . data ( a ( c ) . data ( ) ) } ) , i = this . getVisibleFields ( ) , j = this . $header _ . find ( "th" ) , k = this . $body . find ( ">tr:not(.no-records-found,.virtual-scroll-top)" ) . eq ( 0 ) ; k . length && k . find ( '>td[colspan]:not([colspan="1"])' ) . length ; ) k = k . next ( ) ; l = k . find ( "> *" ) . length , k . find ( "> *" ) . each ( function ( b , c ) { var d , e , f , g , h , k = a ( c ) ; return Ch . hasDetailViewIcon ( m . options ) && ( 0 === b && "right" !== m . options . detailViewAlign || b === l - 1 && "right" === m . options . detailViewAlign ) ? ( d = j . filter ( ".detail" ) , e = d . innerWidth ( ) - d . find ( ".fht-cell" ) . width ( ) , d . find ( ".fht-cell" ) . width ( k . innerWidth ( ) - e ) , void 0 ) : ( f = Ch . hasDetailViewIcon ( m . options ) && "right" !== m . options .