From 95ad266207d106449ff407ce38ceff84e9887b1e Mon Sep 17 00:00:00 2001 From: zhixin Date: Mon, 24 Jun 2019 15:06:38 +0800 Subject: [PATCH] Fix build to min error --- dist/bootstrap-table.js | 24 ++++++++++++++---------- dist/bootstrap-table.min.js | 2 +- src/bootstrap-table.js | 6 +++++- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/dist/bootstrap-table.js b/dist/bootstrap-table.js index 8ab567a801..39af0d5a65 100644 --- a/dist/bootstrap-table.js +++ b/dist/bootstrap-table.js @@ -5142,10 +5142,12 @@ fieldIndex += 1; } - var _loop = function _loop() { - var _Object$entries6$_i = _slicedToArray(_Object$entries6[_i7], 2), - key = _Object$entries6$_i[0], - event = _Object$entries6$_i[1]; + var _loop = function _loop(key) { + if (!events.hasOwnProperty(key)) { + return "continue"; + } + + var event = events[key]; _this8.$body.find('>tr:not(.no-records-found)').each(function (i, tr) { var $tr = $(tr); @@ -5162,8 +5164,10 @@ }); }; - for (var _i7 = 0, _Object$entries6 = Object.entries(events); _i7 < _Object$entries6.length; _i7++) { - _loop(); + for (var key in events) { + var _ret = _loop(key); + + if (_ret === "continue") continue; } }); this.updateSelected(); @@ -5516,10 +5520,10 @@ style = Utils.calculateObjectValue(null, this.options.footerStyle, [column]); if (style && style.css) { - for (var _i8 = 0, _Object$entries7 = Object.entries(style.css); _i8 < _Object$entries7.length; _i8++) { - var _Object$entries7$_i = _slicedToArray(_Object$entries7[_i8], 2), - key = _Object$entries7$_i[0], - value = _Object$entries7$_i[1]; + for (var _i7 = 0, _Object$entries6 = Object.entries(style.css); _i7 < _Object$entries6.length; _i7++) { + var _Object$entries6$_i = _slicedToArray(_Object$entries6[_i7], 2), + key = _Object$entries6$_i[0], + value = _Object$entries6$_i[1]; csses.push("".concat(key, ": ").concat(value)); } diff --git a/dist/bootstrap-table.min.js b/dist/bootstrap-table.min.js index 322c38e4eb..66a6048da4 100644 --- a/dist/bootstrap-table.min.js +++ b/dist/bootstrap-table.min.js @@ -7,4 +7,4 @@ * @license MIT */ -(function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e=e||self,e.BootstrapTable=t(e.jQuery))})(this,function(t){'use strict';var m=String.prototype,b=Number.parseFloat,y=Math.max,w=Math.min,S=Math.floor,v=Math.ceil;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var o,a=0;aarguments.length?Oe(Pe[e])||Oe(I[e]):Pe[e]&&Pe[e][t]||I[e]&&I[e][t]},Ie=function(e){return isNaN(e=+e)?0:(0o?y(o+t,0):w(o,t)},Ee=function(e){return function(t,o,a){var n,i=U(t),s=$e(i.length),l=Ae(a,s);if(e&&o!=o){for(;s>l;)if(n=i[l++],n!=n)return!0;}else for(;s>l;l++)if((e||l in i)&&i[l]===o)return e||l||0;return!e&&-1}},Re={includes:Ee(!0),indexOf:Ee(!1)},_e=Re.indexOf,Ne=function(e,t){var o,a=U(e),n=0,s=[];for(o in a)!W(fe,o)&&W(a,o)&&s.push(o);for(;t.length>n;)W(a,o=t[n++])&&(~_e(s,o)||s.push(o));return s},De=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fe=De.concat("length","prototype"),Le=Object.getOwnPropertyNames||function(e){return Ne(e,Fe)},Be={f:Le},Ve=Object.getOwnPropertySymbols,He={f:Ve},je=Ce("Reflect","ownKeys")||function(e){var t=Be.f(te(e)),o=He.f;return o?t.concat(o(e)):t},Me=function(e,t){for(var o,a=je(t),n=ne.f,s=ee.f,l=0;li;)ne.f(e,o=a[i++],t[o]);return e},at=Ce("document","documentElement"),nt=ge("IE_PROTO"),it="prototype",st=function(){},rt=function(){var e,t=X("iframe"),o=De.length,a="<",n="script",i=">";for(t.style.display="none",at.appendChild(t),t.src="java"+n+":"+"",e=t.contentWindow.document,e.open(),e.write(a+n+i+"document.F=Object"+a+"/"+n+i),e.close(),rt=e.F;o--;)delete rt[it][De[o]];return rt()},ct=Object.create||function(e,t){var o;return null===e?o=rt():(st[it]=te(e),o=new st,st[it]=null,o[nt]=e),void 0===t?o:ot(o,t)};fe[nt]=!0;var dt=Be.f,pt={}.toString,ut="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ht=function(e){try{return dt(e)}catch(e){return ut.slice()}},gt={f:function(e){return ut&&"[object Window]"==pt.call(e)?ht(e):dt(U(e))}},ft=I.Symbol,mt=le("wks"),bt=function(e){return mt[e]||(mt[e]=Je&&ft[e]||(Je?ft:ue)("Symbol."+e))},yt={f:bt},wt=ne.f,St=function(e){var t=Pe.Symbol||(Pe.Symbol={});W(t,e)||wt(t,e,{value:yt.f(e)})},vt=ne.f,xt=bt("toStringTag"),kt=function(e,t,o){e&&!W(e=o?e:e.prototype,xt)&&vt(e,xt,{configurable:!0,value:t})},Tt=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return e},Pt=function(e,t,o){return(Tt(e),void 0===t)?e:0===o?function(){return e.call(t)}:1===o?function(o){return e.call(t,o)}:2===o?function(o,a){return e.call(t,o,a)}:3===o?function(o,a,n){return e.call(t,o,a,n)}:function(){return e.apply(t,arguments)}},Ot=bt("species"),Ct=function(e,t){var o;return Ze(e)&&(o=e.constructor,"function"==typeof o&&(o===Array||Ze(o.prototype))?o=void 0:q(o)&&(o=o[Ot],null===o&&(o=void 0))),new(void 0===o?Array:o)(0===t?0:t)},It=[].push,$t=function(e){var t=1==e,o=4==e,a=6==e;return function(n,i,s,l){for(var r,c,d=et(n),p=H(d),u=Pt(i,s,3),h=$e(p.length),g=0,f=l||Ct,m=t?f(n,h):2==e?f(n,0):void 0;h>g;g++)if((5==e||a||g in p)&&(r=p[g],c=u(r,g,d),e))if(t)m[g]=c;else if(c)switch(e){case 3:return!0;case 5:return r;case 6:return g;case 2:It.call(m,r);}else if(o)return!1;return a?-1:3==e||o?o:m}},At={forEach:$t(0),map:$t(1),filter:$t(2),some:$t(3),every:$t(4),find:$t(5),findIndex:$t(6)},Et=At.forEach,Rt=ge("hidden"),_t="Symbol",Nt="prototype",Dt=bt("toPrimitive"),Ft=ke.set,Lt=ke.getterFor(_t),Bt=Object[Nt],Vt=I.Symbol,Ht=I.JSON,jt=Ht&&Ht.stringify,Mt=ee.f,Ut=ne.f,qt=gt.f,zt=f.f,Gt=le("symbols"),Wt=le("op-symbols"),Yt=le("string-to-symbol-registry"),Kt=le("symbol-to-string-registry"),Xt=le("wks"),Qt=I.QObject,Jt=!Qt||!Qt[Nt]||!Qt[Nt].findChild,Zt=E&&A(function(){return 7!=ct(Ut({},"a",{get:function(){return Ut(this,"a",{value:7}).a}})).a})?function(e,t,o){var a=Mt(Bt,t);a&&delete Bt[t],Ut(e,t,o),a&&e!==Bt&&Ut(Bt,t,a)}:Ut,eo=function(e,t){var o=Gt[e]=ct(Vt[Nt]);return Ft(o,{type:_t,tag:e,description:t}),E||(o.description=t),o},to=Je&&"symbol"==typeof Vt.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof Vt},oo=function(e,t,o){e===Bt&&oo(Wt,t,o),te(e);var a=z(t,!0);return te(o),W(Gt,a)?(o.enumerable?(W(e,Rt)&&e[Rt][a]&&(e[Rt][a]=!1),o=ct(o,{enumerable:F(0,!1)})):(!W(e,Rt)&&Ut(e,Rt,F(1,{})),e[Rt][a]=!0),Zt(e,a,o)):Ut(e,a,o)},ao=function(e,t){te(e);var o=U(t),a=tt(o).concat(lo(o));return Et(a,function(t){(!E||no.call(o,t))&&oo(e,t,o[t])}),e},no=function(e){var t=z(e,!0),o=zt.call(this,t);return(this!==Bt||!W(Gt,t)||W(Wt,t))&&(!(o||!W(this,t)||!W(Gt,t)||W(this,Rt)&&this[Rt][t])||o)},io=function(e,t){var o=U(e),a=z(t,!0);if(o!==Bt||!W(Gt,a)||W(Wt,a)){var n=Mt(o,a);return n&&W(Gt,a)&&!(W(o,Rt)&&o[Rt][a])&&(n.enumerable=!0),n}},so=function(e){var t=qt(U(e)),o=[];return Et(t,function(e){W(Gt,e)||W(fe,e)||o.push(e)}),o},lo=function(e){var t=e===Bt,o=qt(t?Wt:U(e)),a=[];return Et(o,function(e){W(Gt,e)&&(!t||W(Bt,e))&&a.push(Gt[e])}),a};Je||(Vt=function(){if(this instanceof Vt)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?arguments[0]+"":void 0,t=ue(e),o=function(e){this===Bt&&o.call(Wt,e),W(this,Rt)&&W(this[Rt],t)&&(this[Rt][t]=!1),Zt(this,t,F(1,e))};return E&&Jt&&Zt(Bt,t,{configurable:!0,set:o}),eo(t,e)},Te(Vt[Nt],"toString",function(){return Lt(this).tag}),f.f=no,ne.f=oo,ee.f=io,Be.f=gt.f=so,He.f=lo,E&&(Ut(Vt[Nt],"description",{configurable:!0,get:function(){return Lt(this).description}}),Te(Bt,"propertyIsEnumerable",no,{unsafe:!0})),yt.f=function(e){return eo(bt(e),e)}),Qe({global:!0,wrap:!0,forced:!Je,sham:!Je},{Symbol:Vt}),Et(tt(Xt),function(e){St(e)}),Qe({target:_t,stat:!0,forced:!Je},{for:function(e){var t=e+"";if(W(Yt,t))return Yt[t];var o=Vt(t);return Yt[t]=o,Kt[o]=t,o},keyFor:function(e){if(!to(e))throw TypeError(e+" is not a symbol");return W(Kt,e)?Kt[e]:void 0},useSetter:function(){Jt=!0},useSimple:function(){Jt=!1}}),Qe({target:"Object",stat:!0,forced:!Je,sham:!E},{create:function(e,t){return void 0===t?ct(e):ao(ct(e),t)},defineProperty:oo,defineProperties:ao,getOwnPropertyDescriptor:io}),Qe({target:"Object",stat:!0,forced:!Je},{getOwnPropertyNames:so,getOwnPropertySymbols:lo}),Qe({target:"Object",stat:!0,forced:A(function(){He.f(1)})},{getOwnPropertySymbols:function(e){return He.f(et(e))}}),Ht&&Qe({target:"JSON",stat:!0,forced:!Je||A(function(){var e=Vt();return"[null]"!=jt([e])||"{}"!=jt({a:e})||"{}"!=jt(Object(e))})},{stringify:function(e){for(var t,o,a=[e],n=1;arguments.length>n;)a.push(arguments[n++]);if(o=t=a[1],(q(t)||void 0!==e)&&!to(e))return Ze(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!to(t))return t}),a[1]=t,jt.apply(Ht,a)}}),Vt[Nt][Dt]||ie(Vt[Nt],Dt,Vt[Nt].valueOf),kt(Vt,_t),fe[Rt]=!0;var ro=ne.f,co=I.Symbol;if(E&&"function"==typeof co&&(!("description"in co.prototype)||void 0!==co().description)){var po={},uo=function(){var e=1>arguments.length||void 0===arguments[0]?void 0:arguments[0]+"",t=this instanceof uo?new co(e):void 0===e?co():co(e);return""===e&&(po[t]=!0),t};Me(uo,co);var ho=uo.prototype=co.prototype;ho.constructor=uo;var go=ho.toString,fo="Symbol(test)"==co("test")+"",mo=/^Symbol\((.*)\)[^)]+$/;ro(ho,"description",{configurable:!0,get:function(){var e=q(this)?this.valueOf():this,t=go.call(e);if(W(po,e))return"";var o=fo?t.slice(7,-1):t.replace(mo,"$1");return""===o?void 0:o}}),Qe({global:!0,forced:!0},{Symbol:uo})}St("iterator");var bo=function(e,t,o){var a=z(t);a in e?ne.f(e,a,F(0,o)):e[a]=o},yo=bt("species"),wo=function(e){return!A(function(){var t=[],o=t.constructor={};return o[yo]=function(){return{foo:1}},1!==t[e](Boolean).foo})},So=bt("isConcatSpreadable"),vo=9007199254740991,xo="Maximum allowed index exceeded",ko=!A(function(){var e=[];return e[So]=!1,e.concat()[0]!==e}),To=wo("concat"),Po=function(e){if(!q(e))return!1;var t=e[So];return void 0===t?Ze(e):!!t};Qe({target:"Array",proto:!0,forced:!ko||!To},{concat:function(){var e,t,o,a,s,l=et(this),r=Ct(l,0),c=0;for(e=-1,o=arguments.length;evo)throw TypeError(xo);for(t=0;t=vo)throw TypeError(xo);bo(r,c++,s)}return r.length=c,r}});var Oo=At.filter;Qe({target:"Array",proto:!0,forced:!wo("filter")},{filter:function(e){return Oo(this,e,11/[1].indexOf(1,-0),jo=Lo("indexOf");Qe({target:"Array",proto:!0,forced:Ho||jo},{indexOf:function(e){return Ho?Vo.apply(this,arguments)||0:Bo(this,e,1=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==o?{value:a,done:!1}:"values"==o?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}},"values");$o("keys"),$o("values"),$o("entries");var ga=[].join,fa=H!=Object,ma=Lo("join",",");Qe({target:"Array",proto:!0,forced:fa||ma},{join:function(e){return ga.call(U(this),void 0===e?",":e)}});var ba=bt("species"),ya=[].slice;Qe({target:"Array",proto:!0,forced:!wo("slice")},{slice:function(e,t){var o,a,i,s=U(this),l=$e(s.length),r=Ae(e,l),c=Ae(void 0===t?l:t,l);if(Ze(s)&&(o=s.constructor,"function"==typeof o&&(o===Array||Ze(o.prototype))?o=void 0:q(o)&&(o=o[ba],null===o&&(o=void 0)),o===Array||void 0===o))return ya.call(s,r,c);for(a=new(void 0===o?Array:o)(y(c-r,0)),i=0;r9007199254740991)throw TypeError("Maximum allowed length exceeded");for(n=Ct(r,a),i=0;ic-a+o;i--)delete r[i-1]}else if(o>a)for(i=c-a;i>d;i--)s=i+a-1,l=i+o-1,s in r?r[l]=r[s]:delete r[l];for(i=0;ir||r>n)return NaN;return parseInt(i,a)}return+c};if(Ke(Da,!Fa(" 0o1")||!Fa("0b1")||Fa("+0x1"))){for(var Ha,ja=function(e){var t=1>arguments.length?0:e,o=this;return o instanceof ja&&(Ba?A(function(){La.valueOf.call(o)}):B(o)!=Da)?Ta(new Fa(Va(t)),o,ja):Va(t)},Ma=E?Ea(Fa):["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY","EPSILON","isFinite","isInteger","isNaN","isSafeInteger","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","parseFloat","parseInt","isInteger"],Ua=0;Ma.length>Ua;Ua++)W(Fa,Ha=Ma[Ua])&&!W(ja,Ha)&&_a(ja,Ha,Ra(Fa,Ha));ja.prototype=La,La.constructor=ja,Te(I,Da,ja)}var lt=Aa.trim,qa=I.parseFloat,za=1/qa(Pa+"-0")!=-Infinity,Ga=za?function(e){var t=lt(e+""),o=qa(t);return 0===o&&"-"==t.charAt(0)?-0:o}:qa;Qe({target:"Number",stat:!0,forced:b!=Ga},{parseFloat:Ga});var Wa=Object.assign,Ya=!Wa||A(function(){var e={},t={},o=Symbol(),a="abcdefghijklmnopqrst";return e[o]=7,a.split("").forEach(function(e){t[e]=e}),7!=Wa({},e)[o]||tt(Wa({},t)).join("")!=a})?function(e){for(var t=et(e),o=arguments.length,a=1,n=He.f,i=f.f;o>a;)for(var s,l=H(arguments[a++]),r=n?tt(l).concat(n(l)):tt(l),c=r.length,d=0;c>d;)s=r[d++],(!E||i.call(l,s))&&(t[s]=l[s]);return t}:Wa;Qe({target:"Object",stat:!0,forced:Object.assign!==Ya},{assign:Ya});var Ka=f.f,Xa=function(e){return function(t){for(var o,a=U(t),n=tt(a),s=n.length,l=0,r=[];s>l;)o=n[l++],(!E||Ka.call(a,o))&&r.push(e?[o,a[o]]:a[o]);return r}},Qa={entries:Xa(!0),values:Xa(!1)},Ja=Qa.entries;Qe({target:"Object",stat:!0},{entries:function(e){return Ja(e)}});var Za=bt("toStringTag"),en="Arguments"==B(function(){return arguments}()),tn=function(e,t){try{return e[t]}catch(e){}},on=function(e){var t,o,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=tn(t=Object(e),Za))?o:en?B(t):"Object"==(a=B(t))&&"function"==typeof t.callee?"Arguments":a},an=bt("toStringTag"),nn={};nn[an]="z";var sn=function(){return"[object "+on(this)+"]"},ln=Object.prototype;sn!==ln.toString&&Te(ln,"toString",sn,{unsafe:!0}),Qe({global:!0,forced:parseFloat!=Ga},{parseFloat:Ga});var rn=Aa.trim,cn=I.parseInt,dn=/^[+-]?0[Xx]/,pn=8!==cn(Pa+"08")||22!==cn(Pa+"0x16"),un=pn?function(e,t){var o=rn(e+"");return cn(o,t>>>0||(dn.test(o)?16:10))}:cn;Qe({global:!0,forced:parseInt!=un},{parseInt:un});var hn=function(){var e=te(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},gn="toString",fn=RegExp.prototype,mn=fn[gn],bn=A(function(){return"/a/b"!=mn.call({source:"a",flags:"b"})}),yn=mn.name!=gn;(bn||yn)&&Te(RegExp.prototype,gn,function(){var e=te(this),t=e.source+"",o=e.flags,a=(void 0===o&&e instanceof RegExp&&!("flags"in fn)?hn.call(e):o)+"";return"/"+t+"/"+a},{unsafe:!0});var wn=bt("match"),Sn=function(e){var t;return q(e)&&(void 0===(t=e[wn])?"RegExp"==B(e):!!t)},vn=function(e){if(Sn(e))throw TypeError("The method doesn't accept regular expressions");return e},xn=bt("match");Qe({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(o){try{return t[xn]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~(M(this)+"").indexOf(vn(e),1s||s>=l?e?"":void 0:(a=i.charCodeAt(s),55296>a||56319(n=i.charCodeAt(s+1))||57343=o.length?{value:void 0,done:!0}:(e=Pn(o,a),t.index+=e.length,{value:e,done:!1})});var $n=RegExp.prototype.exec,An=m.replace,En=$n,Rn=function(){var e=/a/,t=/b*/g;return $n.call(e,"a"),$n.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_n=void 0!==/()??/.exec("")[1];(Rn||_n)&&(En=function(e){var t,o,a,n,s=this;return _n&&(o=new RegExp("^"+s.source+"$(?!\\s)",hn.call(s))),Rn&&(t=s.lastIndex),a=$n.call(s,e),Rn&&a&&(s.lastIndex=s.global?a.index+a[0].length:t),_n&&a&&1")}),Ln=!A(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var o="ab".split(e);return 2!==o.length||"a"!==o[0]||"b"!==o[1]}),Bn=function(e,t,o,a){var n=bt(e),i=!A(function(){var t={};return t[n]=function(){return 7},7!=""[e](t)}),s=i&&!A(function(){var t=!1,o=/a/;return o.exec=function(){return t=!0,null},"split"===e&&(o.constructor={},o.constructor[Dn]=function(){return o}),o[n](""),!t});if(!i||!s||"replace"===e&&!Fn||"split"===e&&!Ln){var l=/./[n],r=o(n,""[e],function(e,t,o,a,n){return t.exec===Nn?i&&!n?{done:!0,value:l.call(t,o,a)}:{done:!0,value:e.call(o,t,a)}:{done:!1}}),c=r[0],d=r[1];Te(String.prototype,e,c),Te(RegExp.prototype,n,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}),a&&ie(RegExp.prototype[n],"sham",!0)}},Vn=Tn.charAt,Hn=function(e,t,o){return t+(o?Vn(e,t).length:1)},jn=function(e,t){var o=e.exec;if("function"==typeof o){var a=o.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==B(e))throw TypeError("RegExp#exec called on incompatible receiver");return Nn.call(e,t)},Mn=/\$([$&'`]|\d\d?|<[^>]*>)/g,Un=/\$([$&'`]|\d\d?)/g,qn=function(e){return void 0===e?e:e+""};Bn("replace",2,function(e,t,o){function a(e,o,a,i,s,l){var r=a+e.length,c=i.length,n=Un;return void 0!==s&&(s=et(s),n=Mn),t.call(l,n,function(t,l){var d;switch(l.charAt(0)){case"$":return"$";case"&":return e;case"`":return o.slice(0,a);case"'":return o.slice(r);case"<":d=s[l.slice(1,-1)];break;default:var p=+l;if(0==p)return t;if(p>c){var n=S(p/10);return 0===n?t:n<=c?void 0===i[n-1]?l.charAt(1):i[n-1]+l.charAt(1):t}d=i[p-1];}return void 0===d?"":d})}return[function(o,a){var n=M(this),i=null==o?void 0:o[e];return void 0===i?t.call(n+"",o,a):i.call(o,n,a)},function(e,n){var s=o(t,e,this,n);if(s.done)return s.value;var l=te(e),r=this+"",c="function"==typeof n;c||(n+="");var d=l.global;if(d){var p=l.unicode;l.lastIndex=0}for(var u,h,g=[];(u=jn(l,r),null!==u)&&(g.push(u),!!d);)h=u[0]+"",""==h&&(l.lastIndex=Hn(r,$e(l.lastIndex),p));for(var f="",m=0,b=0;b=m&&(f+=r.slice(m,v)+O,m=v+S.length)}return f+r.slice(m)}]});var zn=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Bn("search",1,function(e,t,o){return[function(t){var o=M(this),a=null==t?void 0:t[e];return void 0===a?new RegExp(t)[e](o+""):a.call(t,o)},function(e){var a=o(t,e,this);if(a.done)return a.value;var n=te(e),i=this+"",s=n.lastIndex;zn(s,0)||(n.lastIndex=0);var l=jn(n,i);return zn(n.lastIndex,s)||(n.lastIndex=s),null===l?-1:l.index}]});var Gn=bt("species"),Wn=function(e,t){var o,a=te(e).constructor;return void 0===a||null==(o=te(a)[Gn])?t:Tt(o)},Yn=[].push,Kn=4294967295,Xn=!A(function(){return!RegExp(Kn,"y")});Bn("split",2,function(e,t,o){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,o){var a=M(this)+"",n=void 0===o?Kn:o>>>0;if(0===n)return[];if(void 0===e)return[a];if(!Sn(e))return t.call(a,e,n);for(var i,s,l,r=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,c+"g");(i=Nn.call(p,a))&&(s=p.lastIndex,!(s>d&&(r.push(a.slice(d,i.index)),1=n)));)p.lastIndex===i.index&&p.lastIndex++;return d===a.length?(l||!p.test(""))&&r.push(""):r.push(a.slice(d)),r.length>n?r.slice(0,n):r}:function(e,o){return void 0===e&&0===o?[]:t.call(this,e,o)},[function(t,o){var n=M(this),i=null==t?void 0:t[e];return void 0===i?a.call(n+"",t,o):i.call(t,n,o)},function(n,s){var l=o(a,n,this,s,a!==t);if(l.done)return l.value;var r=te(n),c=this+"",d=Wn(r,RegExp),u=r.unicode,h=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(Xn?"y":"g"),g=new d(Xn?r:"^(?:"+r.source+")",h),f=void 0===s?Kn:s>>>0;if(0===f)return[];if(0===c.length)return null===jn(g,c)?[c]:[];for(var m=0,b=0,y=[];b",""],toolbarDropdownItem:"
  • ",toolbarDropdownSeperator:"
  • ",pageDropdown:["
      ","
    "],pageDropdownItem:"
  • %s
  • ",dropdownCaret:"",pagination:["
      ","
    "],paginationItem:"
  • %s
  • ",icon:"",inputGroup:"
    %s%s
    ",searchInput:"",searchButton:"",searchClearButton:""}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:["
    ","
    "],toolbarDropdownItem:"",pageDropdown:["
    ","
    "],pageDropdownItem:"%s",toolbarDropdownSeperator:"
    ",dropdownCaret:"",pagination:["
      ","
    "],paginationItem:"
  • %s
  • ",icon:"",inputGroup:"
    %s
    %s
    ",searchInput:"",searchButton:"",searchClearButton:""}}}[pi],gi={height:void 0,classes:"table table-bordered table-hover",theadClasses:"",rowStyle:function(){return{}},rowAttributes:function(){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:"asc",sortStable:!1,rememberOrder:!1,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(e){return e},queryParamsType:"limit",responseHandler:function(e){return e},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",pagination:!1,onlyInfoPagination:!1,showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchOnEnterKey:!1,strictSearch:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(){return{}},showColumns:!1,showColumnsToggleAll:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(e){var t=e.tagName;return["A","BUTTON"].includes(t)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailFormatter:function(){return""},detailFilter:function(){return!0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsPrefix:hi.classes.buttonsPrefix,buttonsClass:hi.classes.buttons,icons:hi.icons,html:hi.html,iconSize:void 0,iconsPrefix:hi.iconsPrefix,onAll:function(){return!1},onClickCell:function(){return!1},onDblClickCell:function(){return!1},onClickRow:function(){return!1},onDblClickRow:function(){return!1},onSort:function(){return!1},onCheck:function(){return!1},onUncheck:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onCheckSome:function(){return!1},onUncheckSome:function(){return!1},onLoadSuccess:function(){return!1},onLoadError:function(){return!1},onColumnSwitch:function(){return!1},onPageChange:function(){return!1},onSearch:function(){return!1},onToggle:function(){return!1},onPreBody:function(){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onPostFooter:function(){return!1},onExpandRow:function(){return!1},onCollapseRow:function(){return!1},onRefreshOptions:function(){return!1},onRefresh:function(){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1}},fi={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(e){return"".concat(e," rows per page")},formatShowingRows:function(e,t,o,a){return void 0!==a&&0o?"Showing ".concat(e," to ").concat(t," of ").concat(o," rows (filtered from ").concat(a," total rows)"):"Showing ".concat(e," to ").concat(t," of ").concat(o," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(e){return"to page ".concat(e)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(e){return"Showing ".concat(e," rows")},formatSearch:function(){return"Search"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}};Object.assign(gi,fi);var mi={VERSION:"1.15.1",THEME:"bootstrap".concat(pi),CONSTANTS:hi,DEFAULTS:gi,COLUMN_DEFAULTS:{field:void 0,title:void 0,titleTooltip:void 0,class:void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,switchable:!0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,escape:!1,events:void 0},METHODS:["getOptions","refreshOptions","getData","getSelections","getAllSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","resetWidth","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],EVENTS:{"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody"},LOCALES:{en:fi,"en-US":fi}},bi=A(function(){tt(1)});Qe({target:"Object",stat:!0,forced:bi},{keys:function(e){return tt(et(e))}});var yi={sprintf:function(e){for(var t=arguments.length,o=Array(1").addClass("fixed-table-scroll-inner"),o=t("
    ").addClass("fixed-table-scroll-outer");o.append(e),t("body").append(o);var a=e[0].offsetWidth;o.css("overflow","scroll");var n=e[0].offsetWidth;a===n&&(n=o[0].clientWidth),o.remove(),this.cachedWidth=a-n}return this.cachedWidth},calculateObjectValue:function(e,t,o,n){var i=t;if("string"==typeof t){var s=t.split(".");if(1/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`"):e},getRealDataAttr:function(e){for(var t=0,o=Object.entries(e);ttd,>th").each(function(n,s){for(var r=+t(s).attr("colspan")||1,c=+t(s).attr("rowspan")||1,d=n;i[o]&&i[o][d];d++);for(var p=d;pt?o:0):e===t?0:("string"!=typeof e&&(e=e.toString()),-1===e.localeCompare(t)?-1*o:o)}},wi=50,Si=4,vi=function(){function e(t){var o=this;n(this,e),this.rows=t.rows,this.scrollEl=t.scrollEl,this.contentEl=t.contentEl,this.callback=t.callback,this.itemHeight=t.itemHeight,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;var a=function(){o.lastCluster!==(o.lastCluster=o.getNum())&&(o.initDOM(o.rows),o.callback())};this.scrollEl.addEventListener("scroll",a,!1),this.destroy=function(){o.contentEl.innerHtml="",o.scrollEl.removeEventListener("scroll",a,!1)}}return s(e,[{key:"initDOM",value:function(e){"undefined"==typeof this.clusterHeight&&(this.cache.data=this.contentEl.innerHTML=e[0]+e[0]+e[0],this.getRowsHeight(e));var t=this.initData(e,this.getNum()),o=t.rows.join(""),a=this.checkChanges("data",o),n=this.checkChanges("top",t.topOffset),i=this.checkChanges("bottom",t.bottomOffset),s=[];a&&n?(t.topOffset&&s.push(this.getExtra("top",t.topOffset)),s.push(o),t.bottomOffset&&s.push(this.getExtra("bottom",t.bottomOffset)),this.contentEl.innerHTML=s.join("")):i&&(this.contentEl.lastChild.style.height="".concat(t.bottomOffset,"px"))}},{key:"getRowsHeight",value:function(){if("undefined"==typeof this.itemHeight){var e=this.contentEl.children,t=e[S(e.length/2)];this.itemHeight=t.offsetHeight}this.blockHeight=this.itemHeight*wi,this.clusterRows=wi*Si,this.clusterHeight=this.blockHeight*Si}},{key:"getNum",value:function(){return this.scrollTop=this.scrollEl.scrollTop,S(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}},{key:"initData",value:function(e,t){if(e.lengthn&&r++;for(var c=o;c
    ":"",o=["bottom","both"].includes(this.options.paginationVAlign)?"
    ":"";this.$container=t("\n
    \n
    \n ").concat(e,"\n
    \n
    \n
    \n
    \n \n ").concat(this.options.formatLoadingMessage(),"\n \n \n
    \n
    \n
    \n
    \n ").concat(o,"\n
    \n ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.$toolbar=this.options.buttonsToolbar?t("body").find(this.options.buttonsToolbar):this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after("
    "),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append("
    "),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var o=this,a=[];this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=t("")).appendTo(this.$el),this.$header.find("tr").each(function(e,o){var n=[];t(o).find("th").each(function(e,o){"undefined"!=typeof t(o).data("field")&&t(o).data("field","".concat(t(o).data("field"))),n.push(t.extend({},{title:t(o).html(),class:t(o).attr("class"),titleTooltip:t(o).attr("title"),rowspan:t(o).attr("rowspan")?+t(o).attr("rowspan"):void 0,colspan:t(o).attr("colspan")?+t(o).attr("colspan"):void 0},t(o).data()))}),a.push(n)}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=t.extend(!0,[],a,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],yi.setFieldIndex(this.options.columns),this.options.columns.forEach(function(a,n){a.forEach(function(a,i){var s=t.extend({},e.COLUMN_DEFAULTS,a);"undefined"!=typeof s.fieldIndex&&(o.columns[s.fieldIndex]=s,o.fieldsColumnsIndex[s.field]=s.fieldIndex),o.options.columns[n][i]=s})}),this.options.data.length||(this.options.data=yi.trToData(this.columns,this.$el.find(">tbody>tr")),[].length&&(this.fromHtml=!0)),this.footerData=yi.trToData(this.columns,this.$el.find(">tfoot>tr")),this.footerData&&this.$el.find("tfoot").html(""),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var o=this,a={},n=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},this.options.columns.forEach(function(e,t){n.push(""),0===t&&!o.options.cardView&&o.options.detailView&&o.options.detailViewIcon&&n.push("\n
    \n \n ")),e.forEach(function(e,i){var s=yi.sprintf(" class=\"%s\"",e["class"]),l=e.widthUnit,r=b(e.width),c=yi.sprintf("text-align: %s; ",e.halign?e.halign:e.align),d=yi.sprintf("text-align: %s; ",e.align),p=yi.sprintf("vertical-align: %s; ",e.valign);if(p+=yi.sprintf("width: %s; ",(e.checkbox||e.radio)&&!r?e.showSelectTitle?void 0:"36px":r?r+l:void 0),"undefined"!=typeof e.fieldIndex){if(o.header.fields[e.fieldIndex]=e.field,o.header.styles[e.fieldIndex]=d+p,o.header.classes[e.fieldIndex]=s,o.header.formatters[e.fieldIndex]=e.formatter,o.header.detailFormatters[e.fieldIndex]=e.detailFormatter,o.header.events[e.fieldIndex]=e.events,o.header.sorters[e.fieldIndex]=e.sorter,o.header.sortNames[e.fieldIndex]=e.sortName,o.header.cellStyles[e.fieldIndex]=e.cellStyle,o.header.searchables[e.fieldIndex]=e.searchable,!e.visible)return;if(o.options.cardView&&!e.cardVisible)return;a[e.field]=e}n.push(""),n.push(yi.sprintf("
    ",o.options.sortable&&e.sortable?"sortable both":""));var u=o.options.escape?yi.escapeHTML(e.title):e.title,h=u;e.checkbox&&(u="",!o.options.singleSelect&&o.options.checkboxHeader&&(u=""),o.header.stateField=e.field),e.radio&&(u="",o.header.stateField=e.field,o.options.singleSelect=!0),!u&&e.showSelectTitle&&(u+=h),n.push(u),n.push("
    "),n.push("
    "),n.push(""),n.push("")}),n.push("")}),this.$header.html(n.join("")),this.$header.find("th[data-field]").each(function(e,o){t(o).data(a[t(o).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(a){var e=t(a.currentTarget);return(!o.options.detailView||e.parent().hasClass("bs-checkbox")||e.closest(".bootstrap-table")[0]===o.$container[0])&&void(o.options.sortable&&e.parent().data().sortable&&o.onSort(a))}),this.$header.children().children().off("keypress").on("keypress",function(a){if(o.options.sortable&&t(a.currentTarget).data().sortable){var e=a.keyCode||a.which;13===e&&o.onSort(a)}});var i="resize.bootstrap-table".concat(this.$el.attr("id")||"");t(window).off(i),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),t(window).on(i,function(t){return o.resetWidth(t)})),this.$selectAll=this.$header.find("[name=\"btSelectAll\"]"),this.$selectAll.off("click").on("click",function(e){var a=e.currentTarget,n=t(a).prop("checked");o[n?"checkAll":"uncheckAll"](),o.updateSelected()})}},{key:"initData",value:function(e,t){this.options.data="append"===t?this.options.data.concat(e):"prepend"===t?[].concat(e).concat(this.options.data):e||this.options.data,this.data=this.options.data,"server"===this.options.sidePagination||this.initSort()}},{key:"initSort",value:function(){var e=this,t=this.options.sortName,o="desc"===this.options.sortOrder?-1:1,n=this.header.fields.indexOf(this.options.sortName),i=0;-1!==n&&(this.options.sortStable&&this.data.forEach(function(e,t){e.hasOwnProperty("_position")||(e._position=t)}),this.options.customSort?yi.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(i,a){e.header.sortNames[n]&&(t=e.header.sortNames[n]);var s=yi.getItemField(i,t,e.options.escape),l=yi.getItemField(a,t,e.options.escape),r=yi.calculateObjectValue(e.header,e.header.sorters[n],[s,l,i,a]);return void 0===r?yi.sort(s,l,o,e.options.sortStable):e.options.sortStable&&0===r?o*(i._position-a._position):o*r}),void 0!==this.options.sortClass&&(clearTimeout(i),i=setTimeout(function(){e.$el.removeClass(e.options.sortClass);var t=e.$header.find("[data-field=\"".concat(e.options.sortName,"\"]")).index();e.$el.find("tr td:nth-child(".concat(t+1,")")).addClass(e.options.sortClass)},250)))}},{key:"onSort",value:function(e){var o=e.type,a=e.currentTarget,n="keypress"===o?t(a):t(a).parent(),i=this.$header.find("th").eq(n.index());return this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===n.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=n.data("field"),this.options.sortOrder=this.options.rememberOrder?"asc"===n.data("order")?"desc":"asc":this.columns[this.fieldsColumnsIndex[n.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[n.data("field")]].order),this.trigger("sort",this.options.sortName,this.options.sortOrder),n.add(i).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination?(this.options.pageNumber=1,void this.initServer(this.options.silentSort)):void(this.initSort(),this.initBody())}},{key:"initToolbar",value:function(){var e,n,s=this,l=this.options,o=[],i=0,r=0;if(this.$toolbar.find(".bs-bars").children().length&&t("body").append(t(l.toolbar)),this.$toolbar.html(""),("string"==typeof l.toolbar||"object"===a(l.toolbar))&&t(yi.sprintf("
    ",this.constants.classes.pull,l.toolbarAlign)).appendTo(this.$toolbar).append(t(l.toolbar)),o=["
    ")],"string"==typeof l.icons&&(l.icons=yi.calculateObjectValue(null,l.icons)),l.showPaginationSwitch&&o.push("")),l.showRefresh&&o.push("")),l.showToggle&&o.push("")),l.showFullscreen&&o.push("")),l.showColumns){if(o.push("
    \n \n ").concat(this.constants.html.toolbarDropdown[0])),l.showColumnsToggleAll){var c=this.getVisibleColumns().length===this.columns.length;o.push(yi.sprintf(this.constants.html.toolbarDropdownItem,yi.sprintf(" %s",c?"checked=\"checked\"":"",l.formatColumnsToggleAll()))),o.push(this.constants.html.toolbarDropdownSeperator)}this.columns.forEach(function(e,t){if(!(e.radio||e.checkbox)&&(!l.cardView||e.cardVisible)){var a=e.visible?" checked=\"checked\"":"";e.switchable&&(o.push(yi.sprintf(s.constants.html.toolbarDropdownItem,yi.sprintf(" %s",e.field,t,a,e.title))),r++)}}),o.push(this.constants.html.toolbarDropdown[1],"
    ")}if(o.push("
    "),(this.showToolbar||2"),f=g;(l.showSearchButton||l.showSearchClearButton)&&(f=yi.sprintf(this.constants.html.inputGroup,g,(l.showSearchButton?u:"")+(l.showSearchClearButton?h:""))),o.push(yi.sprintf("\n
    \n %s\n
    \n "),f)),this.$toolbar.append(o.join(""));var m=this.$toolbar.find(".search input");n=l.showSearchButton?this.$toolbar.find(".search button[name=search]"):m;var b=l.showSearchButton?"click":yi.isIEBrowser()?"mouseup":"keyup drop blur";n.off(b).on(b,function(e){l.searchOnEnterKey&&13!==e.keyCode||[37,38,39,40].includes(e.keyCode)||(clearTimeout(i),i=setTimeout(function(){s.onSearch(l.showSearchButton?{currentTarget:m}:e)},l.searchTimeOut))}),l.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click(function(){s.resetSearch(),s.onSearch({currentTarget:s.$toolbar.find(".search input")})})}}},{key:"onSearch",value:function(){var e=0|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm,u=p.exec(t),h=!1;if(u){var g=u[1]||"".concat(u[5],"l"),f=u[2]||u[3],m=parseInt(r,10),b=parseInt(f,10);switch(g){case">":case"b;break;case"<":case">l":h=m=l":case"=>l":h=m<=b;break;case">=":case"=>":case"<=l":case"==b;break;default:}}if(h||"".concat(r).toLowerCase().includes(t))return!0}else if("".concat(r).toLowerCase()===t)return!0}return!1}):this.data}}},{key:"initPagination",value:function(){var e=Math.round,t=this,a=this.options;if(!a.pagination)return void this.$pagination.hide();this.$pagination.show();var o,n,s,l,r,c,d,p=[],u=!1,h=this.getData({includeHiddenRows:!1}),g=a.pageList;if("server"!==a.sidePagination&&(a.totalRows=h.length),this.totalPages=0,a.totalRows){if(a.pageSize===a.formatAllRows())a.pageSize=a.totalRows,u=!0;else if(a.pageSize===a.totalRows){var f="string"==typeof a.pageList?a.pageList.replace("[","").replace("]","").replace(/ /g,"").toLowerCase().split(","):a.pageList;f.includes(a.formatAllRows().toLowerCase())&&(u=!0)}this.totalPages=~~((a.totalRows-1)/a.pageSize)+1,a.totalPages=this.totalPages}0this.totalPages&&(a.pageNumber=this.totalPages),this.pageFrom=(a.pageNumber-1)*a.pageSize+1,this.pageTo=a.pageNumber*a.pageSize,this.pageTo>a.totalRows&&(this.pageTo=a.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0);var m=a.onlyInfoPagination?a.formatDetailPagination(a.totalRows):a.formatShowingRows(this.pageFrom,this.pageTo,a.totalRows,a.totalNotFiltered);if(p.push("
    \n \n ").concat(m,"\n ")),!a.onlyInfoPagination){p.push("");var b=["\n \n ").concat(this.constants.html.pageDropdown[0])];if("string"==typeof a.pageList){var y=a.pageList.replace("[","").replace("]","").replace(/ /g,"").split(",");g=[];var w=!0,S=!1,v=void 0;try{for(var x,k,T=y[Symbol.iterator]();!(w=(x=T.next()).done);w=!0)k=x.value,g.push(k.toLowerCase()===a.formatAllRows().toLowerCase()||["all","unlimited"].includes(k.toLowerCase())?a.formatAllRows():+k)}catch(e){S=!0,v=e}finally{try{w||null==T.return||T.return()}finally{if(S)throw v}}}g.forEach(function(e,o){if(!a.smartDisplay||0===o||g[o-1]")),p.push(a.formatRecordsPerPage(b.join(""))),p.push("
    "),p.push("
    "),yi.sprintf(this.constants.html.pagination[0],yi.sprintf(" pagination-%s",a.iconSize)),yi.sprintf(this.constants.html.paginationItem," page-pre",a.formatSRPaginationPreText(),a.paginationPreText)),this.totalPagesthis.totalPages-n&&(n=n-(a.paginationSuccessivelySize-(this.totalPages-n))+1),1>n&&(n=1),s>this.totalPages&&(s=this.totalPages);var P=e(a.paginationPagesBySide/2),O=function(e){var o=1=n&&(C=n-1),o=1;o<=C;o++)p.push(O(o));n-1===C+1?(o=n-1,p.push(O(o))):n-1>C&&(n-2*a.paginationPagesBySide>a.paginationPagesBySide&&a.paginationUseIntermediate?(o=e((n-P)/2+P),p.push(O(o," page-intermediate"))):p.push(yi.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(o=n;o<=s;o++)p.push(O(o));if(this.totalPages>s){var I=this.totalPages-(a.paginationPagesBySide-1);for(s>=I&&(I=s+1),s+1===I-1?(o=s+1,p.push(O(o))):I>s+1&&(this.totalPages-s>2*a.paginationPagesBySide&&a.paginationUseIntermediate?(o=e((this.totalPages-P-s)/2+s),p.push(O(o," page-intermediate"))):p.push(yi.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),o=I;o<=this.totalPages;o++)p.push(O(o))}p.push(yi.sprintf(this.constants.html.paginationItem," page-next",a.formatSRPaginationNextText(),a.paginationNextText)),p.push(this.constants.html.pagination[1],"
    ")}this.$pagination.html(p.join(""));var $=["bottom","both"].includes(a.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";this.$pagination.last().find(".page-list > span").addClass($),a.onlyInfoPagination||(l=this.$pagination.find(".page-list a"),r=this.$pagination.find(".page-pre"),c=this.$pagination.find(".page-next"),d=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),1>=this.totalPages&&this.$pagination.find("div.pagination").hide(),a.smartDisplay&&(2>g.length||a.totalRows<=g[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),!a.paginationLoop&&(1===a.pageNumber&&r.addClass("disabled"),a.pageNumber===this.totalPages&&c.addClass("disabled")),u&&(a.pageSize=a.formatAllRows()),l.off("click").on("click",function(o){return t.onPageListChange(o)}),r.off("click").on("click",function(o){return t.onPagePre(o)}),c.off("click").on("click",function(o){return t.onPageNext(o)}),d.off("click").on("click",function(o){return t.onPageNumber(o)}))}},{key:"updatePagination",value:function(e){e&&t(e.currentTarget).hasClass("disabled")||(!this.options.maintainMetaData&&this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))}},{key:"onPageListChange",value:function(e){e.preventDefault();var o=t(e.currentTarget);return o.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=o.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+o.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e),!1}},{key:"onPagePre",value:function(e){return e.preventDefault(),0==this.options.pageNumber-1?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(e),!1}},{key:"onPageNext",value:function(e){return e.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(e),!1}},{key:"onPageNumber",value:function(e){if(e.preventDefault(),this.options.pageNumber!==+t(e.currentTarget).text())return this.options.pageNumber=+t(e.currentTarget).text(),this.updatePagination(e),!1}},{key:"initRow",value:function(e,t){var o=this,n=[],i={},s=[],r="",c={},d=[];if(!(-1"),this.options.cardView&&n.push("
    ")),!this.options.cardView&&this.options.detailView&&this.options.detailViewIcon&&(n.push(""),yi.calculateObjectValue(null,this.options.detailFilter,[t,e])&&n.push("\n \n ".concat(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n \n ")),n.push("")),this.header.fields.forEach(function(a,i){var r="",d=yi.getItemField(e,a,o.options.escape),p="",u="",h={},g="",f=o.header.classes[i],m="",b="",y="",w="",S="",x=o.columns[i];if((!o.fromHtml||"undefined"!=typeof d||x.checkbox||x.radio)&&x.visible&&(!o.options.cardView||x.cardVisible)){if(x.escape&&(d=yi.escapeHTML(d)),s.concat([o.header.styles[i]]).length&&(m=" style=\"".concat(s.concat([o.header.styles[i]]).join("; "),"\"")),e["_".concat(a,"_id")]&&(g=yi.sprintf(" id=\"%s\"",e["_".concat(a,"_id")])),e["_".concat(a,"_class")]&&(f=yi.sprintf(" class=\"%s\"",e["_".concat(a,"_class")])),e["_".concat(a,"_rowspan")]&&(y=yi.sprintf(" rowspan=\"%s\"",e["_".concat(a,"_rowspan")])),e["_".concat(a,"_colspan")]&&(w=yi.sprintf(" colspan=\"%s\"",e["_".concat(a,"_colspan")])),e["_".concat(a,"_title")]&&(S=yi.sprintf(" title=\"%s\"",e["_".concat(a,"_title")])),h=yi.calculateObjectValue(o.header,o.header.cellStyles[i],[d,e,t,a],h),h.classes&&(f=" class=\"".concat(h.classes,"\"")),h.css){for(var T=[],P=0,O=Object.entries(h.css);P"):""),""),o.header.formatters[i]&&"string"==typeof p?p:"",o.options.cardView?"
    ":""].join(""),e[o.header.stateField]=!0===p||!!d||p&&p.checked}else if(p="undefined"==typeof p||null===p?o.options.undefinedText:p,o.options.cardView){var D=o.options.showHeader?"").concat(yi.getFieldTitle(o.columns,a),""):"";r="
    ".concat(D,"").concat(p,"
    "),o.options.smartDisplay&&""===p&&(r="
    ")}else r="").concat(p,"");n.push(r)}}),this.options.cardView&&n.push(""),n.push(""),n.join("")}}},{key:"initBody",value:function(e){var o=this,a=this.getData();this.trigger("pre-body",a),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=t("").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=a.length);for(var n=[],s=t(document.createDocumentFragment()),r=!1,c=this.pageFrom-1;c".concat(yi.sprintf("%s",this.$header.find("th").length,this.options.formatNoMatches()),"")),e||this.scrollTo(0),this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(a){var e=t(a.currentTarget),n=e.parent(),i=t(a.target).parents(".card-views").children(),s=t(a.target).parents(".card-view"),l=n.data("index"),r=o.data[l],c=o.options.cardView?i.index(s):e[0].cellIndex,d=o.getVisibleFields(),p=d[o.options.detailView&&!o.options.cardView?c-1:c],u=o.columns[o.fieldsColumnsIndex[p]],h=yi.getItemField(r,p,o.options.escape);if(!e.find(".detail-icon").length){if(o.trigger("click"===a.type?"click-cell":"dbl-click-cell",p,h,r,e),o.trigger("click"===a.type?"click-row":"dbl-click-row",r,n,p),"click"===a.type&&o.options.clickToSelect&&u.clickToSelect&&!yi.calculateObjectValue(o.options,o.options.ignoreClickToSelectOn,[a.target])){var g=n.find(yi.sprintf("[name=\"%s\"]",o.options.selectItemName));g.length&&g[0].click()}"click"===a.type&&o.options.detailViewByClick&&o.toggleDetailView(l,o.header.detailFormatters[c])}}).off("mousedown").on("mousedown",function(t){o.multipleSelectRowCtrlKey=t.ctrlKey||t.metaKey,o.multipleSelectRowShiftKey=t.shiftKey}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(a){return a.preventDefault(),o.toggleDetailView(t(a.currentTarget).parent().parent().data("index")),!1}),this.$selectItem=this.$body.find(yi.sprintf("[name=\"%s\"]",this.options.selectItemName)),this.$selectItem.off("click").on("click",function(a){a.stopImmediatePropagation();var e=t(a.currentTarget);o._toggleCheck(e.prop("checked"),e.data("index"))}),this.header.events.forEach(function(e,a){var n=e;if(n){"string"==typeof n&&(n=yi.calculateObjectValue(null,n));var i=o.header.fields[a],s=o.getVisibleFields().indexOf(i);if(-1!==s){o.options.detailView&&!o.options.cardView&&(s+=1);for(var r=function(){var e=l((void 0)[c],2),a=e[0],n=e[1];o.$body.find(">tr:not(.no-records-found)").each(function(e,l){var r=t(l),c=r.find(o.options.cardView?".card-view":"td").eq(s),d=a.indexOf(" "),p=a.substring(0,d),u=a.substring(d+1);c.find(u).off(p).on(p,function(t){var e=r.data("index"),a=o.data[e],s=a[i];n.apply(o,[t,s,a,e])})})},c=0,d=Object.entries(n);c<(void 0).length;c++)r()}}}),this.updateSelected(),this.initFooter(),this.resetView(),"server"!==this.options.sidePagination&&(this.options.totalRows=a.length),this.trigger("post-body",a)}},{key:"initServer",value:function(e,o,a){var n=this,i={},s=this.header.fields.indexOf(this.options.sortName),l={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if((this.header.sortNames[s]&&(l.sortName=this.header.sortNames[s]),this.options.pagination&&"server"===this.options.sidePagination&&(l.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,l.pageNumber=this.options.pageNumber),a||this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(l={search:l.searchText,sort:l.sortName,order:l.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(l.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),l.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,0===l.limit&&delete l.limit)),yi.isEmptyObject(this.filterColumnsPartial)||(l.filter=JSON.stringify(this.filterColumnsPartial,null)),i=yi.calculateObjectValue(this.options,this.options.queryParams,[l],i),t.extend(i,o||{}),!1!==i)){e||this.showLoading();var r=t.extend({},yi.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:a||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(i):i,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t){var o=yi.calculateObjectValue(n.options,n.options.responseHandler,[t],t);n.load(o),n.trigger("load-success",o),e||n.hideLoading()},error:function(t){var o=[];"server"===n.options.sidePagination&&(o={},o[n.options.totalField]=0,o[n.options.dataField]=[]),n.load(o),n.trigger("load-error",t.status,t),e||n.$tableLoading.hide()}});return this.options.ajax?yi.calculateObjectValue(this,this.options.ajax,[r],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=t.ajax(r)),i}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var e=this.$toolbar.find(".search input");e.val(this.options.searchText),this.onSearch({currentTarget:e,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var e=this;this.$header.find("th").each(function(o,a){t(a).find(".sortable").removeClass("desc asc").addClass(t(a).data("field")===e.options.sortName?e.options.sortOrder:"both")})}},{key:"updateSelected",value:function(){var e=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each(function(e,o){t(o).closest("tr")[t(o).prop("checked")?"addClass":"removeClass"]("selected")})}},{key:"updateRows",value:function(){var e=this;this.$selectItem.each(function(o,a){e.data[t(a).data("index")][e.header.stateField]=t(a).prop("checked")})}},{key:"resetRows",value:function(){var e=!0,t=!1,o=void 0;try{for(var a,n,i=this.data[Symbol.iterator]();!(e=(a=i.next()).done);e=!0)n=a.value,this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(n[this.header.stateField]=!1)}catch(e){t=!0,o=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw o}}this.initHiddenRows()}},{key:"trigger",value:function(o){for(var a,n="".concat(o,".bs.table"),i=arguments.length,s=Array(1o.clientWidth&&o.scrollHeight>o.clientHeight+this.$header.outerHeight()?yi.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var n=t(":focus");if(0tr:not(.no-records-found,.virtual-scroll-top)").eq(0);p.length&&p.find(">td[colspan]:not([colspan=\"1\"])").length;)p=p.next();p.find("> *").each(function(o,a){var n=t(a),i=o;if(e.options.detailView&&e.options.detailViewIcon&&!e.options.cardView){if(0===o){var s=d.filter(".detail"),l=s.width()-s.find(".fht-cell").width();s.find(".fht-cell").width(n.innerWidth()-l)}i=o-1}if(-1!==i){var r=e.$header_.find(yi.sprintf("th[data-field=\"%s\"]",c[i]));1
    ");var o=!0,a=!1,n=void 0;try{for(var i,s=this.columns[Symbol.iterator]();!(o=(i=s.next()).done);o=!0){var r=i.value,c="",d="",p=[],u={},h=yi.sprintf(" class=\"%s\"",r["class"]);if(r.visible){if(this.options.cardView&&!r.cardVisible)return;if(c=yi.sprintf("text-align: %s; ",r.falign?r.falign:r.align),d=yi.sprintf("vertical-align: %s; ",r.valign),u=yi.calculateObjectValue(null,this.options.footerStyle,[r]),u&&u.css)for(var g=0,f=Object.entries(u.css);g"),t.push("
    "),t.push(yi.calculateObjectValue(r,r.footerFormatter,[e],this.footerData[0]&&this.footerData[0][r.field]||"")),t.push("
    "),t.push("
    "),t.push(""),t.push("")}}}catch(e){a=!0,n=e}finally{try{o||null==s.return||s.return()}finally{if(a)throw n}}this.$tableFooter.find("tr").html(t.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var e=this;if(this.$el.is(":hidden"))return void setTimeout(function(){return e.fitFooter()},100);var o=this.$tableBody.get(0),a=o.scrollWidth>o.clientWidth&&o.scrollHeight>o.clientHeight+this.$header.outerHeight()?yi.getScrollBarWidth():0;this.$tableFooter.css("margin-right",a).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class"));for(var n=this.getVisibleFields(),s=this.$tableFooter.find("th"),l=this.$body.find(">tr:first-child:not(.no-records-found)");l.length&&l.find(">td[colspan]:not([colspan=\"1\"])").length;)l=l.next();l.find("> *").each(function(o,a){var n=t(a),i=o;if(e.options.detailView&&!e.options.cardView){if(0===o){var l=s.filter(".detail"),r=l.width()-l.find(".fht-cell").width();l.find(".fht-cell").width(n.innerWidth()-r)}i=o-1}if(-1!==i){var c=s.eq(o),d=c.width()-c.find(".fht-cell").width();c.find(".fht-cell").width(n.innerWidth()-d)}}),this.horizontalScroll()}},{key:"horizontalScroll",value:function(){var e=this;this.trigger("scroll-body"),this.$tableBody.off("scroll").on("scroll",function(o){var a=o.currentTarget;e.options.showHeader&&e.options.height&&e.$tableHeader.scrollLeft(t(a).scrollLeft()),e.options.showFooter&&!e.options.cardView&&e.$tableFooter.scrollLeft(t(a).scrollLeft())})}},{key:"getVisibleFields",value:function(){var e=[],t=!0,o=!1,a=void 0;try{for(var n,i=this.header.fields[Symbol.iterator]();!(t=(n=i.next()).done);t=!0){var s=n.value,l=this.columns[this.fieldsColumnsIndex[s]];l.visible&&e.push(s)}}catch(e){o=!0,a=e}finally{try{t||null==i.return||i.return()}finally{if(o)throw a}}return e}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var e=JSON.parse(JSON.stringify(this.options));return delete e.data,e}},{key:"refreshOptions",value:function(e){yi.compareObjects(this.options,e,!0)||(this.options=t.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(e){var t=this.options.data;if((this.searchText||this.options.sortName||!yi.isEmptyObject(this.filterColumns)||!yi.isEmptyObject(this.filterColumnsPartial))&&(t=this.data),e&&e.useCurrentPage&&(t=t.slice(this.pageFrom-1,this.pageTo)),e&&!e.includeHiddenRows){var o=this.getHiddenRows();t=t.filter(function(e){return-1===yi.findIndex(o,e)})}return t}},{key:"getSelections",value:function(){var e=this;return this.data.filter(function(t){return!0===t[e.header.stateField]})}},{key:"getAllSelections",value:function(){var e=this;return this.options.data.filter(function(t){return!0===t[e.header.stateField]})}},{key:"load",value:function(e){var t=!1,o=e;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=o[this.options.totalField]),this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalNotFiltered=o[this.options.totalNotFilteredField]),t=o.fixedScroll,o=Array.isArray(o)?o:o[this.options.dataField],this.initData(o),this.initSearch(),this.initPagination(),this.initBody(t)}},{key:"append",value:function(e){this.initData(e,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(e){this.initData(e,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(e){var t,o,a=this.options.data.length;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){for(t=a-1;0<=t;t--)(o=this.options.data[t],!!o.hasOwnProperty(e.field))&&e.values.includes(o[e.field])&&(this.options.data.splice(t,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1));a===this.options.data.length||(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}}},{key:"removeAll",value:function(){0o.options.minimumCountColumns&&t(a).prop("checked",e)}),c.filter(":checked").length<=this.options.minimumCountColumns&&c.filter(":checked").prop("disabled",!0)}}},{key:"mergeCells",value:function(e){var t,o,a=e.index,n=this.getVisibleFields().indexOf(e.field),s=e.rowspan||1,l=e.colspan||1,r=this.$body.find(">tr");this.options.detailView&&!this.options.cardView&&(n+=1);var c=r.eq(a).find(">td").eq(n);if(!(0>a||0>n||a>=this.data.length)){for(t=a;ttd").eq(o).hide();c.attr("rowspan",s).attr("colspan",l).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(e){var t=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.filter(":enabled").prop("checked",e),this.updateRows();var o=this.getSelections();return e?void this.trigger("check-all",o,t):void this.trigger("uncheck-all",o,t)}},{key:"checkInvert",value:function(){var e=this.$selectItem.filter(":enabled"),o=e.filter(":checked");e.each(function(e,o){t(o).prop("checked",!t(o).prop("checked"))}),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",o),o=this.getSelections(),this.trigger("check-some",o)}},{key:"check",value:function(e){this._toggleCheck(!0,e)}},{key:"uncheck",value:function(e){this._toggleCheck(!1,e)}},{key:"_toggleCheck",value:function(e,t){var o=this.$selectItem.filter("[data-index=\"".concat(t,"\"]")),a=this.data[t];if(o.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var n=!0,s=!1,l=void 0;try{for(var c,d,p=this.options.data[Symbol.iterator]();!(n=(c=p.next()).done);n=!0)d=c.value,d[this.header.stateField]=!1}catch(e){s=!0,l=e}finally{try{n||null==p.return||p.return()}finally{if(s)throw l}}this.$selectItem.filter(":checked").not(o).prop("checked",!1)}if(a[this.header.stateField]=e,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&0<=this.multipleSelectRowLastSelectedIndex)for(var u=[this.multipleSelectRowLastSelectedIndex,t].sort(),h=u[0]+1;h tr:lt(".concat(n.value,")")).each(function(o,a){e+=t(a).outerHeight(!0)})),this.$tableBody.scrollTop(e)}},{key:"getScrollPosition",value:function(){return this.scrollTo()}},{key:"selectPage",value:function(e){0 tr[data-index=\"%s\"]",e));o.next().is("tr.detail-view")?this.collapseRow(e):this.expandRow(e,t),this.resetView()}},{key:"expandRow",value:function(e,t){var o=this.data[e],a=this.$body.find(yi.sprintf("> tr[data-index=\"%s\"][data-has-detail-view]",e));if(!a.next().is("tr.detail-view")){this.options.detailViewIcon&&a.find("a.detail-icon").html(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),a.after(yi.sprintf("",a.children("td").length));var n=a.next().find("td"),i=t||this.options.detailFormatter,s=yi.calculateObjectValue(this.options,i,[e,o,n],"");1===n.length&&n.append(s),this.trigger("expand-row",e,o,n)}}},{key:"collapseRow",value:function(e){var t=this.data[e],o=this.$body.find(yi.sprintf("> tr[data-index=\"%s\"][data-has-detail-view]",e));o.next().is("tr.detail-view")&&(this.options.detailViewIcon&&o.find("a.detail-icon").html(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",e,t,o.next()),o.next().remove())}},{key:"expandAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),o=0;o tr[data-index][data-has-detail-view]"),o=0;oarguments.length?Oe(Pe[e])||Oe(I[e]):Pe[e]&&Pe[e][t]||I[e]&&I[e][t]},Ie=function(e){return isNaN(e=+e)?0:(0o?y(o+t,0):w(o,t)},Ee=function(e){return function(t,o,a){var n,i=U(t),s=$e(i.length),l=Ae(a,s);if(e&&o!=o){for(;s>l;)if(n=i[l++],n!=n)return!0;}else for(;s>l;l++)if((e||l in i)&&i[l]===o)return e||l||0;return!e&&-1}},Re={includes:Ee(!0),indexOf:Ee(!1)},_e=Re.indexOf,Ne=function(e,t){var o,a=U(e),n=0,s=[];for(o in a)!W(fe,o)&&W(a,o)&&s.push(o);for(;t.length>n;)W(a,o=t[n++])&&(~_e(s,o)||s.push(o));return s},De=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fe=De.concat("length","prototype"),Le=Object.getOwnPropertyNames||function(e){return Ne(e,Fe)},Be={f:Le},Ve=Object.getOwnPropertySymbols,He={f:Ve},je=Ce("Reflect","ownKeys")||function(e){var t=Be.f(te(e)),o=He.f;return o?t.concat(o(e)):t},Me=function(e,t){for(var o,a=je(t),n=ne.f,s=ee.f,l=0;li;)ne.f(e,o=a[i++],t[o]);return e},at=Ce("document","documentElement"),nt=ge("IE_PROTO"),it="prototype",st=function(){},rt=function(){var e,t=X("iframe"),o=De.length,a="<",n="script",i=">";for(t.style.display="none",at.appendChild(t),t.src="java"+n+":"+"",e=t.contentWindow.document,e.open(),e.write(a+n+i+"document.F=Object"+a+"/"+n+i),e.close(),rt=e.F;o--;)delete rt[it][De[o]];return rt()},ct=Object.create||function(e,t){var o;return null===e?o=rt():(st[it]=te(e),o=new st,st[it]=null,o[nt]=e),void 0===t?o:ot(o,t)};fe[nt]=!0;var dt=Be.f,pt={}.toString,ut="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ht=function(e){try{return dt(e)}catch(e){return ut.slice()}},gt={f:function(e){return ut&&"[object Window]"==pt.call(e)?ht(e):dt(U(e))}},ft=I.Symbol,mt=le("wks"),bt=function(e){return mt[e]||(mt[e]=Je&&ft[e]||(Je?ft:ue)("Symbol."+e))},yt={f:bt},wt=ne.f,St=function(e){var t=Pe.Symbol||(Pe.Symbol={});W(t,e)||wt(t,e,{value:yt.f(e)})},vt=ne.f,xt=bt("toStringTag"),kt=function(e,t,o){e&&!W(e=o?e:e.prototype,xt)&&vt(e,xt,{configurable:!0,value:t})},Tt=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return e},Pt=function(e,t,o){return(Tt(e),void 0===t)?e:0===o?function(){return e.call(t)}:1===o?function(o){return e.call(t,o)}:2===o?function(o,a){return e.call(t,o,a)}:3===o?function(o,a,n){return e.call(t,o,a,n)}:function(){return e.apply(t,arguments)}},Ot=bt("species"),Ct=function(e,t){var o;return Ze(e)&&(o=e.constructor,"function"==typeof o&&(o===Array||Ze(o.prototype))?o=void 0:q(o)&&(o=o[Ot],null===o&&(o=void 0))),new(void 0===o?Array:o)(0===t?0:t)},It=[].push,$t=function(e){var t=1==e,o=4==e,a=6==e;return function(n,i,s,l){for(var r,c,d=et(n),p=H(d),u=Pt(i,s,3),h=$e(p.length),g=0,f=l||Ct,m=t?f(n,h):2==e?f(n,0):void 0;h>g;g++)if((5==e||a||g in p)&&(r=p[g],c=u(r,g,d),e))if(t)m[g]=c;else if(c)switch(e){case 3:return!0;case 5:return r;case 6:return g;case 2:It.call(m,r);}else if(o)return!1;return a?-1:3==e||o?o:m}},At={forEach:$t(0),map:$t(1),filter:$t(2),some:$t(3),every:$t(4),find:$t(5),findIndex:$t(6)},Et=At.forEach,Rt=ge("hidden"),_t="Symbol",Nt="prototype",Dt=bt("toPrimitive"),Ft=ke.set,Lt=ke.getterFor(_t),Bt=Object[Nt],Vt=I.Symbol,Ht=I.JSON,jt=Ht&&Ht.stringify,Mt=ee.f,Ut=ne.f,qt=gt.f,zt=f.f,Gt=le("symbols"),Wt=le("op-symbols"),Yt=le("string-to-symbol-registry"),Kt=le("symbol-to-string-registry"),Xt=le("wks"),Qt=I.QObject,Jt=!Qt||!Qt[Nt]||!Qt[Nt].findChild,Zt=E&&A(function(){return 7!=ct(Ut({},"a",{get:function(){return Ut(this,"a",{value:7}).a}})).a})?function(e,t,o){var a=Mt(Bt,t);a&&delete Bt[t],Ut(e,t,o),a&&e!==Bt&&Ut(Bt,t,a)}:Ut,eo=function(e,t){var o=Gt[e]=ct(Vt[Nt]);return Ft(o,{type:_t,tag:e,description:t}),E||(o.description=t),o},to=Je&&"symbol"==typeof Vt.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof Vt},oo=function(e,t,o){e===Bt&&oo(Wt,t,o),te(e);var a=z(t,!0);return te(o),W(Gt,a)?(o.enumerable?(W(e,Rt)&&e[Rt][a]&&(e[Rt][a]=!1),o=ct(o,{enumerable:F(0,!1)})):(!W(e,Rt)&&Ut(e,Rt,F(1,{})),e[Rt][a]=!0),Zt(e,a,o)):Ut(e,a,o)},ao=function(e,t){te(e);var o=U(t),a=tt(o).concat(lo(o));return Et(a,function(t){(!E||no.call(o,t))&&oo(e,t,o[t])}),e},no=function(e){var t=z(e,!0),o=zt.call(this,t);return(this!==Bt||!W(Gt,t)||W(Wt,t))&&(!(o||!W(this,t)||!W(Gt,t)||W(this,Rt)&&this[Rt][t])||o)},io=function(e,t){var o=U(e),a=z(t,!0);if(o!==Bt||!W(Gt,a)||W(Wt,a)){var n=Mt(o,a);return n&&W(Gt,a)&&!(W(o,Rt)&&o[Rt][a])&&(n.enumerable=!0),n}},so=function(e){var t=qt(U(e)),o=[];return Et(t,function(e){W(Gt,e)||W(fe,e)||o.push(e)}),o},lo=function(e){var t=e===Bt,o=qt(t?Wt:U(e)),a=[];return Et(o,function(e){W(Gt,e)&&(!t||W(Bt,e))&&a.push(Gt[e])}),a};Je||(Vt=function(){if(this instanceof Vt)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?arguments[0]+"":void 0,t=ue(e),o=function(e){this===Bt&&o.call(Wt,e),W(this,Rt)&&W(this[Rt],t)&&(this[Rt][t]=!1),Zt(this,t,F(1,e))};return E&&Jt&&Zt(Bt,t,{configurable:!0,set:o}),eo(t,e)},Te(Vt[Nt],"toString",function(){return Lt(this).tag}),f.f=no,ne.f=oo,ee.f=io,Be.f=gt.f=so,He.f=lo,E&&(Ut(Vt[Nt],"description",{configurable:!0,get:function(){return Lt(this).description}}),Te(Bt,"propertyIsEnumerable",no,{unsafe:!0})),yt.f=function(e){return eo(bt(e),e)}),Qe({global:!0,wrap:!0,forced:!Je,sham:!Je},{Symbol:Vt}),Et(tt(Xt),function(e){St(e)}),Qe({target:_t,stat:!0,forced:!Je},{for:function(e){var t=e+"";if(W(Yt,t))return Yt[t];var o=Vt(t);return Yt[t]=o,Kt[o]=t,o},keyFor:function(e){if(!to(e))throw TypeError(e+" is not a symbol");return W(Kt,e)?Kt[e]:void 0},useSetter:function(){Jt=!0},useSimple:function(){Jt=!1}}),Qe({target:"Object",stat:!0,forced:!Je,sham:!E},{create:function(e,t){return void 0===t?ct(e):ao(ct(e),t)},defineProperty:oo,defineProperties:ao,getOwnPropertyDescriptor:io}),Qe({target:"Object",stat:!0,forced:!Je},{getOwnPropertyNames:so,getOwnPropertySymbols:lo}),Qe({target:"Object",stat:!0,forced:A(function(){He.f(1)})},{getOwnPropertySymbols:function(e){return He.f(et(e))}}),Ht&&Qe({target:"JSON",stat:!0,forced:!Je||A(function(){var e=Vt();return"[null]"!=jt([e])||"{}"!=jt({a:e})||"{}"!=jt(Object(e))})},{stringify:function(e){for(var t,o,a=[e],n=1;arguments.length>n;)a.push(arguments[n++]);if(o=t=a[1],(q(t)||void 0!==e)&&!to(e))return Ze(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!to(t))return t}),a[1]=t,jt.apply(Ht,a)}}),Vt[Nt][Dt]||ie(Vt[Nt],Dt,Vt[Nt].valueOf),kt(Vt,_t),fe[Rt]=!0;var ro=ne.f,co=I.Symbol;if(E&&"function"==typeof co&&(!("description"in co.prototype)||void 0!==co().description)){var po={},uo=function(){var e=1>arguments.length||void 0===arguments[0]?void 0:arguments[0]+"",t=this instanceof uo?new co(e):void 0===e?co():co(e);return""===e&&(po[t]=!0),t};Me(uo,co);var ho=uo.prototype=co.prototype;ho.constructor=uo;var go=ho.toString,fo="Symbol(test)"==co("test")+"",mo=/^Symbol\((.*)\)[^)]+$/;ro(ho,"description",{configurable:!0,get:function(){var e=q(this)?this.valueOf():this,t=go.call(e);if(W(po,e))return"";var o=fo?t.slice(7,-1):t.replace(mo,"$1");return""===o?void 0:o}}),Qe({global:!0,forced:!0},{Symbol:uo})}St("iterator");var bo=function(e,t,o){var a=z(t);a in e?ne.f(e,a,F(0,o)):e[a]=o},yo=bt("species"),wo=function(e){return!A(function(){var t=[],o=t.constructor={};return o[yo]=function(){return{foo:1}},1!==t[e](Boolean).foo})},So=bt("isConcatSpreadable"),vo=9007199254740991,xo="Maximum allowed index exceeded",ko=!A(function(){var e=[];return e[So]=!1,e.concat()[0]!==e}),To=wo("concat"),Po=function(e){if(!q(e))return!1;var t=e[So];return void 0===t?Ze(e):!!t};Qe({target:"Array",proto:!0,forced:!ko||!To},{concat:function(){var e,t,o,a,s,l=et(this),r=Ct(l,0),c=0;for(e=-1,o=arguments.length;evo)throw TypeError(xo);for(t=0;t=vo)throw TypeError(xo);bo(r,c++,s)}return r.length=c,r}});var Oo=At.filter;Qe({target:"Array",proto:!0,forced:!wo("filter")},{filter:function(e){return Oo(this,e,11/[1].indexOf(1,-0),jo=Lo("indexOf");Qe({target:"Array",proto:!0,forced:Ho||jo},{indexOf:function(e){return Ho?Vo.apply(this,arguments)||0:Bo(this,e,1=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==o?{value:a,done:!1}:"values"==o?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}},"values");$o("keys"),$o("values"),$o("entries");var ga=[].join,fa=H!=Object,ma=Lo("join",",");Qe({target:"Array",proto:!0,forced:fa||ma},{join:function(e){return ga.call(U(this),void 0===e?",":e)}});var ba=bt("species"),ya=[].slice;Qe({target:"Array",proto:!0,forced:!wo("slice")},{slice:function(e,t){var o,a,i,s=U(this),l=$e(s.length),r=Ae(e,l),c=Ae(void 0===t?l:t,l);if(Ze(s)&&(o=s.constructor,"function"==typeof o&&(o===Array||Ze(o.prototype))?o=void 0:q(o)&&(o=o[ba],null===o&&(o=void 0)),o===Array||void 0===o))return ya.call(s,r,c);for(a=new(void 0===o?Array:o)(y(c-r,0)),i=0;r9007199254740991)throw TypeError("Maximum allowed length exceeded");for(n=Ct(r,a),i=0;ic-a+o;i--)delete r[i-1]}else if(o>a)for(i=c-a;i>d;i--)s=i+a-1,l=i+o-1,s in r?r[l]=r[s]:delete r[l];for(i=0;ir||r>n)return NaN;return parseInt(i,a)}return+c};if(Ke(Da,!Fa(" 0o1")||!Fa("0b1")||Fa("+0x1"))){for(var Ha,ja=function(e){var t=1>arguments.length?0:e,o=this;return o instanceof ja&&(Ba?A(function(){La.valueOf.call(o)}):B(o)!=Da)?Ta(new Fa(Va(t)),o,ja):Va(t)},Ma=E?Ea(Fa):["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY","EPSILON","isFinite","isInteger","isNaN","isSafeInteger","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","parseFloat","parseInt","isInteger"],Ua=0;Ma.length>Ua;Ua++)W(Fa,Ha=Ma[Ua])&&!W(ja,Ha)&&_a(ja,Ha,Ra(Fa,Ha));ja.prototype=La,La.constructor=ja,Te(I,Da,ja)}var lt=Aa.trim,qa=I.parseFloat,za=1/qa(Pa+"-0")!=-Infinity,Ga=za?function(e){var t=lt(e+""),o=qa(t);return 0===o&&"-"==t.charAt(0)?-0:o}:qa;Qe({target:"Number",stat:!0,forced:b!=Ga},{parseFloat:Ga});var Wa=Object.assign,Ya=!Wa||A(function(){var e={},t={},o=Symbol(),a="abcdefghijklmnopqrst";return e[o]=7,a.split("").forEach(function(e){t[e]=e}),7!=Wa({},e)[o]||tt(Wa({},t)).join("")!=a})?function(e){for(var t=et(e),o=arguments.length,a=1,n=He.f,i=f.f;o>a;)for(var s,l=H(arguments[a++]),r=n?tt(l).concat(n(l)):tt(l),c=r.length,d=0;c>d;)s=r[d++],(!E||i.call(l,s))&&(t[s]=l[s]);return t}:Wa;Qe({target:"Object",stat:!0,forced:Object.assign!==Ya},{assign:Ya});var Ka=f.f,Xa=function(e){return function(t){for(var o,a=U(t),n=tt(a),s=n.length,l=0,r=[];s>l;)o=n[l++],(!E||Ka.call(a,o))&&r.push(e?[o,a[o]]:a[o]);return r}},Qa={entries:Xa(!0),values:Xa(!1)},Ja=Qa.entries;Qe({target:"Object",stat:!0},{entries:function(e){return Ja(e)}});var Za=bt("toStringTag"),en="Arguments"==B(function(){return arguments}()),tn=function(e,t){try{return e[t]}catch(e){}},on=function(e){var t,o,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=tn(t=Object(e),Za))?o:en?B(t):"Object"==(a=B(t))&&"function"==typeof t.callee?"Arguments":a},an=bt("toStringTag"),nn={};nn[an]="z";var sn=function(){return"[object "+on(this)+"]"},ln=Object.prototype;sn!==ln.toString&&Te(ln,"toString",sn,{unsafe:!0}),Qe({global:!0,forced:parseFloat!=Ga},{parseFloat:Ga});var rn=Aa.trim,cn=I.parseInt,dn=/^[+-]?0[Xx]/,pn=8!==cn(Pa+"08")||22!==cn(Pa+"0x16"),un=pn?function(e,t){var o=rn(e+"");return cn(o,t>>>0||(dn.test(o)?16:10))}:cn;Qe({global:!0,forced:parseInt!=un},{parseInt:un});var hn=function(){var e=te(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},gn="toString",fn=RegExp.prototype,mn=fn[gn],bn=A(function(){return"/a/b"!=mn.call({source:"a",flags:"b"})}),yn=mn.name!=gn;(bn||yn)&&Te(RegExp.prototype,gn,function(){var e=te(this),t=e.source+"",o=e.flags,a=(void 0===o&&e instanceof RegExp&&!("flags"in fn)?hn.call(e):o)+"";return"/"+t+"/"+a},{unsafe:!0});var wn=bt("match"),Sn=function(e){var t;return q(e)&&(void 0===(t=e[wn])?"RegExp"==B(e):!!t)},vn=function(e){if(Sn(e))throw TypeError("The method doesn't accept regular expressions");return e},xn=bt("match");Qe({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(o){try{return t[xn]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~(M(this)+"").indexOf(vn(e),1s||s>=l?e?"":void 0:(a=i.charCodeAt(s),55296>a||56319(n=i.charCodeAt(s+1))||57343=o.length?{value:void 0,done:!0}:(e=Pn(o,a),t.index+=e.length,{value:e,done:!1})});var $n=RegExp.prototype.exec,An=m.replace,En=$n,Rn=function(){var e=/a/,t=/b*/g;return $n.call(e,"a"),$n.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_n=void 0!==/()??/.exec("")[1];(Rn||_n)&&(En=function(e){var t,o,a,n,s=this;return _n&&(o=new RegExp("^"+s.source+"$(?!\\s)",hn.call(s))),Rn&&(t=s.lastIndex),a=$n.call(s,e),Rn&&a&&(s.lastIndex=s.global?a.index+a[0].length:t),_n&&a&&1")}),Ln=!A(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var o="ab".split(e);return 2!==o.length||"a"!==o[0]||"b"!==o[1]}),Bn=function(e,t,o,a){var n=bt(e),i=!A(function(){var t={};return t[n]=function(){return 7},7!=""[e](t)}),s=i&&!A(function(){var t=!1,o=/a/;return o.exec=function(){return t=!0,null},"split"===e&&(o.constructor={},o.constructor[Dn]=function(){return o}),o[n](""),!t});if(!i||!s||"replace"===e&&!Fn||"split"===e&&!Ln){var l=/./[n],r=o(n,""[e],function(e,t,o,a,n){return t.exec===Nn?i&&!n?{done:!0,value:l.call(t,o,a)}:{done:!0,value:e.call(o,t,a)}:{done:!1}}),c=r[0],d=r[1];Te(String.prototype,e,c),Te(RegExp.prototype,n,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}),a&&ie(RegExp.prototype[n],"sham",!0)}},Vn=Tn.charAt,Hn=function(e,t,o){return t+(o?Vn(e,t).length:1)},jn=function(e,t){var o=e.exec;if("function"==typeof o){var a=o.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==B(e))throw TypeError("RegExp#exec called on incompatible receiver");return Nn.call(e,t)},Mn=/\$([$&'`]|\d\d?|<[^>]*>)/g,Un=/\$([$&'`]|\d\d?)/g,qn=function(e){return void 0===e?e:e+""};Bn("replace",2,function(e,t,o){function a(e,o,a,i,s,l){var r=a+e.length,c=i.length,n=Un;return void 0!==s&&(s=et(s),n=Mn),t.call(l,n,function(t,l){var d;switch(l.charAt(0)){case"$":return"$";case"&":return e;case"`":return o.slice(0,a);case"'":return o.slice(r);case"<":d=s[l.slice(1,-1)];break;default:var p=+l;if(0==p)return t;if(p>c){var n=S(p/10);return 0===n?t:n<=c?void 0===i[n-1]?l.charAt(1):i[n-1]+l.charAt(1):t}d=i[p-1];}return void 0===d?"":d})}return[function(o,a){var n=M(this),i=null==o?void 0:o[e];return void 0===i?t.call(n+"",o,a):i.call(o,n,a)},function(e,n){var s=o(t,e,this,n);if(s.done)return s.value;var l=te(e),r=this+"",c="function"==typeof n;c||(n+="");var d=l.global;if(d){var p=l.unicode;l.lastIndex=0}for(var u,h,g=[];(u=jn(l,r),null!==u)&&(g.push(u),!!d);)h=u[0]+"",""==h&&(l.lastIndex=Hn(r,$e(l.lastIndex),p));for(var f="",m=0,b=0;b=m&&(f+=r.slice(m,v)+O,m=v+S.length)}return f+r.slice(m)}]});var zn=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Bn("search",1,function(e,t,o){return[function(t){var o=M(this),a=null==t?void 0:t[e];return void 0===a?new RegExp(t)[e](o+""):a.call(t,o)},function(e){var a=o(t,e,this);if(a.done)return a.value;var n=te(e),i=this+"",s=n.lastIndex;zn(s,0)||(n.lastIndex=0);var l=jn(n,i);return zn(n.lastIndex,s)||(n.lastIndex=s),null===l?-1:l.index}]});var Gn=bt("species"),Wn=function(e,t){var o,a=te(e).constructor;return void 0===a||null==(o=te(a)[Gn])?t:Tt(o)},Yn=[].push,Kn=4294967295,Xn=!A(function(){return!RegExp(Kn,"y")});Bn("split",2,function(e,t,o){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,o){var a=M(this)+"",n=void 0===o?Kn:o>>>0;if(0===n)return[];if(void 0===e)return[a];if(!Sn(e))return t.call(a,e,n);for(var i,s,l,r=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,c+"g");(i=Nn.call(p,a))&&(s=p.lastIndex,!(s>d&&(r.push(a.slice(d,i.index)),1=n)));)p.lastIndex===i.index&&p.lastIndex++;return d===a.length?(l||!p.test(""))&&r.push(""):r.push(a.slice(d)),r.length>n?r.slice(0,n):r}:function(e,o){return void 0===e&&0===o?[]:t.call(this,e,o)},[function(t,o){var n=M(this),i=null==t?void 0:t[e];return void 0===i?a.call(n+"",t,o):i.call(t,n,o)},function(n,s){var l=o(a,n,this,s,a!==t);if(l.done)return l.value;var r=te(n),c=this+"",d=Wn(r,RegExp),u=r.unicode,h=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(Xn?"y":"g"),g=new d(Xn?r:"^(?:"+r.source+")",h),f=void 0===s?Kn:s>>>0;if(0===f)return[];if(0===c.length)return null===jn(g,c)?[c]:[];for(var m=0,b=0,y=[];b",""],toolbarDropdownItem:"
  • ",toolbarDropdownSeperator:"
  • ",pageDropdown:["
      ","
    "],pageDropdownItem:"
  • %s
  • ",dropdownCaret:"",pagination:["
      ","
    "],paginationItem:"
  • %s
  • ",icon:"",inputGroup:"
    %s%s
    ",searchInput:"",searchButton:"",searchClearButton:""}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:["
    ","
    "],toolbarDropdownItem:"",pageDropdown:["
    ","
    "],pageDropdownItem:"%s",toolbarDropdownSeperator:"
    ",dropdownCaret:"",pagination:["
      ","
    "],paginationItem:"
  • %s
  • ",icon:"",inputGroup:"
    %s
    %s
    ",searchInput:"",searchButton:"",searchClearButton:""}}}[pi],gi={height:void 0,classes:"table table-bordered table-hover",theadClasses:"",rowStyle:function(){return{}},rowAttributes:function(){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:"asc",sortStable:!1,rememberOrder:!1,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(e){return e},queryParamsType:"limit",responseHandler:function(e){return e},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",pagination:!1,onlyInfoPagination:!1,showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchOnEnterKey:!1,strictSearch:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(){return{}},showColumns:!1,showColumnsToggleAll:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(e){var t=e.tagName;return["A","BUTTON"].includes(t)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailFormatter:function(){return""},detailFilter:function(){return!0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsPrefix:hi.classes.buttonsPrefix,buttonsClass:hi.classes.buttons,icons:hi.icons,html:hi.html,iconSize:void 0,iconsPrefix:hi.iconsPrefix,onAll:function(){return!1},onClickCell:function(){return!1},onDblClickCell:function(){return!1},onClickRow:function(){return!1},onDblClickRow:function(){return!1},onSort:function(){return!1},onCheck:function(){return!1},onUncheck:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onCheckSome:function(){return!1},onUncheckSome:function(){return!1},onLoadSuccess:function(){return!1},onLoadError:function(){return!1},onColumnSwitch:function(){return!1},onPageChange:function(){return!1},onSearch:function(){return!1},onToggle:function(){return!1},onPreBody:function(){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onPostFooter:function(){return!1},onExpandRow:function(){return!1},onCollapseRow:function(){return!1},onRefreshOptions:function(){return!1},onRefresh:function(){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1}},fi={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(e){return"".concat(e," rows per page")},formatShowingRows:function(e,t,o,a){return void 0!==a&&0o?"Showing ".concat(e," to ").concat(t," of ").concat(o," rows (filtered from ").concat(a," total rows)"):"Showing ".concat(e," to ").concat(t," of ").concat(o," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(e){return"to page ".concat(e)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(e){return"Showing ".concat(e," rows")},formatSearch:function(){return"Search"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}};Object.assign(gi,fi);var mi={VERSION:"1.15.1",THEME:"bootstrap".concat(pi),CONSTANTS:hi,DEFAULTS:gi,COLUMN_DEFAULTS:{field:void 0,title:void 0,titleTooltip:void 0,class:void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,switchable:!0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,escape:!1,events:void 0},METHODS:["getOptions","refreshOptions","getData","getSelections","getAllSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","resetWidth","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],EVENTS:{"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody"},LOCALES:{en:fi,"en-US":fi}},bi=A(function(){tt(1)});Qe({target:"Object",stat:!0,forced:bi},{keys:function(e){return tt(et(e))}});var yi={sprintf:function(e){for(var t=arguments.length,o=Array(1").addClass("fixed-table-scroll-inner"),o=t("
    ").addClass("fixed-table-scroll-outer");o.append(e),t("body").append(o);var a=e[0].offsetWidth;o.css("overflow","scroll");var n=e[0].offsetWidth;a===n&&(n=o[0].clientWidth),o.remove(),this.cachedWidth=a-n}return this.cachedWidth},calculateObjectValue:function(e,t,o,n){var i=t;if("string"==typeof t){var s=t.split(".");if(1/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`"):e},getRealDataAttr:function(e){for(var t=0,o=Object.entries(e);ttd,>th").each(function(n,s){for(var r=+t(s).attr("colspan")||1,c=+t(s).attr("rowspan")||1,d=n;i[o]&&i[o][d];d++);for(var p=d;pt?o:0):e===t?0:("string"!=typeof e&&(e=e.toString()),-1===e.localeCompare(t)?-1*o:o)}},wi=50,Si=4,vi=function(){function e(t){var o=this;n(this,e),this.rows=t.rows,this.scrollEl=t.scrollEl,this.contentEl=t.contentEl,this.callback=t.callback,this.itemHeight=t.itemHeight,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;var a=function(){o.lastCluster!==(o.lastCluster=o.getNum())&&(o.initDOM(o.rows),o.callback())};this.scrollEl.addEventListener("scroll",a,!1),this.destroy=function(){o.contentEl.innerHtml="",o.scrollEl.removeEventListener("scroll",a,!1)}}return s(e,[{key:"initDOM",value:function(e){"undefined"==typeof this.clusterHeight&&(this.cache.data=this.contentEl.innerHTML=e[0]+e[0]+e[0],this.getRowsHeight(e));var t=this.initData(e,this.getNum()),o=t.rows.join(""),a=this.checkChanges("data",o),n=this.checkChanges("top",t.topOffset),i=this.checkChanges("bottom",t.bottomOffset),s=[];a&&n?(t.topOffset&&s.push(this.getExtra("top",t.topOffset)),s.push(o),t.bottomOffset&&s.push(this.getExtra("bottom",t.bottomOffset)),this.contentEl.innerHTML=s.join("")):i&&(this.contentEl.lastChild.style.height="".concat(t.bottomOffset,"px"))}},{key:"getRowsHeight",value:function(){if("undefined"==typeof this.itemHeight){var e=this.contentEl.children,t=e[S(e.length/2)];this.itemHeight=t.offsetHeight}this.blockHeight=this.itemHeight*wi,this.clusterRows=wi*Si,this.clusterHeight=this.blockHeight*Si}},{key:"getNum",value:function(){return this.scrollTop=this.scrollEl.scrollTop,S(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}},{key:"initData",value:function(e,t){if(e.lengthn&&r++;for(var c=o;c
    ":"",o=["bottom","both"].includes(this.options.paginationVAlign)?"
    ":"";this.$container=t("\n
    \n
    \n ").concat(e,"\n
    \n
    \n
    \n
    \n \n ").concat(this.options.formatLoadingMessage(),"\n \n \n
    \n
    \n
    \n
    \n ").concat(o,"\n
    \n ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.$toolbar=this.options.buttonsToolbar?t("body").find(this.options.buttonsToolbar):this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after("
    "),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append("
    "),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var o=this,a=[];this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=t("")).appendTo(this.$el),this.$header.find("tr").each(function(e,o){var n=[];t(o).find("th").each(function(e,o){"undefined"!=typeof t(o).data("field")&&t(o).data("field","".concat(t(o).data("field"))),n.push(t.extend({},{title:t(o).html(),class:t(o).attr("class"),titleTooltip:t(o).attr("title"),rowspan:t(o).attr("rowspan")?+t(o).attr("rowspan"):void 0,colspan:t(o).attr("colspan")?+t(o).attr("colspan"):void 0},t(o).data()))}),a.push(n)}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=t.extend(!0,[],a,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],yi.setFieldIndex(this.options.columns),this.options.columns.forEach(function(a,n){a.forEach(function(a,i){var s=t.extend({},e.COLUMN_DEFAULTS,a);"undefined"!=typeof s.fieldIndex&&(o.columns[s.fieldIndex]=s,o.fieldsColumnsIndex[s.field]=s.fieldIndex),o.options.columns[n][i]=s})}),this.options.data.length||(this.options.data=yi.trToData(this.columns,this.$el.find(">tbody>tr")),[].length&&(this.fromHtml=!0)),this.footerData=yi.trToData(this.columns,this.$el.find(">tfoot>tr")),this.footerData&&this.$el.find("tfoot").html(""),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var o=this,a={},n=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},this.options.columns.forEach(function(e,t){n.push(""),0===t&&!o.options.cardView&&o.options.detailView&&o.options.detailViewIcon&&n.push("\n
    \n \n ")),e.forEach(function(e,i){var s=yi.sprintf(" class=\"%s\"",e["class"]),l=e.widthUnit,r=b(e.width),c=yi.sprintf("text-align: %s; ",e.halign?e.halign:e.align),d=yi.sprintf("text-align: %s; ",e.align),p=yi.sprintf("vertical-align: %s; ",e.valign);if(p+=yi.sprintf("width: %s; ",(e.checkbox||e.radio)&&!r?e.showSelectTitle?void 0:"36px":r?r+l:void 0),"undefined"!=typeof e.fieldIndex){if(o.header.fields[e.fieldIndex]=e.field,o.header.styles[e.fieldIndex]=d+p,o.header.classes[e.fieldIndex]=s,o.header.formatters[e.fieldIndex]=e.formatter,o.header.detailFormatters[e.fieldIndex]=e.detailFormatter,o.header.events[e.fieldIndex]=e.events,o.header.sorters[e.fieldIndex]=e.sorter,o.header.sortNames[e.fieldIndex]=e.sortName,o.header.cellStyles[e.fieldIndex]=e.cellStyle,o.header.searchables[e.fieldIndex]=e.searchable,!e.visible)return;if(o.options.cardView&&!e.cardVisible)return;a[e.field]=e}n.push(""),n.push(yi.sprintf("
    ",o.options.sortable&&e.sortable?"sortable both":""));var u=o.options.escape?yi.escapeHTML(e.title):e.title,h=u;e.checkbox&&(u="",!o.options.singleSelect&&o.options.checkboxHeader&&(u=""),o.header.stateField=e.field),e.radio&&(u="",o.header.stateField=e.field,o.options.singleSelect=!0),!u&&e.showSelectTitle&&(u+=h),n.push(u),n.push("
    "),n.push("
    "),n.push(""),n.push("")}),n.push("")}),this.$header.html(n.join("")),this.$header.find("th[data-field]").each(function(e,o){t(o).data(a[t(o).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(a){var e=t(a.currentTarget);return(!o.options.detailView||e.parent().hasClass("bs-checkbox")||e.closest(".bootstrap-table")[0]===o.$container[0])&&void(o.options.sortable&&e.parent().data().sortable&&o.onSort(a))}),this.$header.children().children().off("keypress").on("keypress",function(a){if(o.options.sortable&&t(a.currentTarget).data().sortable){var e=a.keyCode||a.which;13===e&&o.onSort(a)}});var i="resize.bootstrap-table".concat(this.$el.attr("id")||"");t(window).off(i),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),t(window).on(i,function(t){return o.resetWidth(t)})),this.$selectAll=this.$header.find("[name=\"btSelectAll\"]"),this.$selectAll.off("click").on("click",function(e){var a=e.currentTarget,n=t(a).prop("checked");o[n?"checkAll":"uncheckAll"](),o.updateSelected()})}},{key:"initData",value:function(e,t){this.options.data="append"===t?this.options.data.concat(e):"prepend"===t?[].concat(e).concat(this.options.data):e||this.options.data,this.data=this.options.data,"server"===this.options.sidePagination||this.initSort()}},{key:"initSort",value:function(){var e=this,t=this.options.sortName,o="desc"===this.options.sortOrder?-1:1,n=this.header.fields.indexOf(this.options.sortName),i=0;-1!==n&&(this.options.sortStable&&this.data.forEach(function(e,t){e.hasOwnProperty("_position")||(e._position=t)}),this.options.customSort?yi.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(i,a){e.header.sortNames[n]&&(t=e.header.sortNames[n]);var s=yi.getItemField(i,t,e.options.escape),l=yi.getItemField(a,t,e.options.escape),r=yi.calculateObjectValue(e.header,e.header.sorters[n],[s,l,i,a]);return void 0===r?yi.sort(s,l,o,e.options.sortStable):e.options.sortStable&&0===r?o*(i._position-a._position):o*r}),void 0!==this.options.sortClass&&(clearTimeout(i),i=setTimeout(function(){e.$el.removeClass(e.options.sortClass);var t=e.$header.find("[data-field=\"".concat(e.options.sortName,"\"]")).index();e.$el.find("tr td:nth-child(".concat(t+1,")")).addClass(e.options.sortClass)},250)))}},{key:"onSort",value:function(e){var o=e.type,a=e.currentTarget,n="keypress"===o?t(a):t(a).parent(),i=this.$header.find("th").eq(n.index());return this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===n.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=n.data("field"),this.options.sortOrder=this.options.rememberOrder?"asc"===n.data("order")?"desc":"asc":this.columns[this.fieldsColumnsIndex[n.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[n.data("field")]].order),this.trigger("sort",this.options.sortName,this.options.sortOrder),n.add(i).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination?(this.options.pageNumber=1,void this.initServer(this.options.silentSort)):void(this.initSort(),this.initBody())}},{key:"initToolbar",value:function(){var e,n,s=this,l=this.options,o=[],i=0,r=0;if(this.$toolbar.find(".bs-bars").children().length&&t("body").append(t(l.toolbar)),this.$toolbar.html(""),("string"==typeof l.toolbar||"object"===a(l.toolbar))&&t(yi.sprintf("
    ",this.constants.classes.pull,l.toolbarAlign)).appendTo(this.$toolbar).append(t(l.toolbar)),o=["
    ")],"string"==typeof l.icons&&(l.icons=yi.calculateObjectValue(null,l.icons)),l.showPaginationSwitch&&o.push("")),l.showRefresh&&o.push("")),l.showToggle&&o.push("")),l.showFullscreen&&o.push("")),l.showColumns){if(o.push("
    \n \n ").concat(this.constants.html.toolbarDropdown[0])),l.showColumnsToggleAll){var c=this.getVisibleColumns().length===this.columns.length;o.push(yi.sprintf(this.constants.html.toolbarDropdownItem,yi.sprintf(" %s",c?"checked=\"checked\"":"",l.formatColumnsToggleAll()))),o.push(this.constants.html.toolbarDropdownSeperator)}this.columns.forEach(function(e,t){if(!(e.radio||e.checkbox)&&(!l.cardView||e.cardVisible)){var a=e.visible?" checked=\"checked\"":"";e.switchable&&(o.push(yi.sprintf(s.constants.html.toolbarDropdownItem,yi.sprintf(" %s",e.field,t,a,e.title))),r++)}}),o.push(this.constants.html.toolbarDropdown[1],"
    ")}if(o.push("
    "),(this.showToolbar||2"),f=g;(l.showSearchButton||l.showSearchClearButton)&&(f=yi.sprintf(this.constants.html.inputGroup,g,(l.showSearchButton?u:"")+(l.showSearchClearButton?h:""))),o.push(yi.sprintf("\n
    \n %s\n
    \n "),f)),this.$toolbar.append(o.join(""));var m=this.$toolbar.find(".search input");n=l.showSearchButton?this.$toolbar.find(".search button[name=search]"):m;var b=l.showSearchButton?"click":yi.isIEBrowser()?"mouseup":"keyup drop blur";n.off(b).on(b,function(e){l.searchOnEnterKey&&13!==e.keyCode||[37,38,39,40].includes(e.keyCode)||(clearTimeout(i),i=setTimeout(function(){s.onSearch(l.showSearchButton?{currentTarget:m}:e)},l.searchTimeOut))}),l.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click(function(){s.resetSearch(),s.onSearch({currentTarget:s.$toolbar.find(".search input")})})}}},{key:"onSearch",value:function(){var e=0|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm,u=p.exec(t),h=!1;if(u){var g=u[1]||"".concat(u[5],"l"),f=u[2]||u[3],m=parseInt(r,10),b=parseInt(f,10);switch(g){case">":case"b;break;case"<":case">l":h=m=l":case"=>l":h=m<=b;break;case">=":case"=>":case"<=l":case"==b;break;default:}}if(h||"".concat(r).toLowerCase().includes(t))return!0}else if("".concat(r).toLowerCase()===t)return!0}return!1}):this.data}}},{key:"initPagination",value:function(){var e=Math.round,t=this,a=this.options;if(!a.pagination)return void this.$pagination.hide();this.$pagination.show();var o,n,s,l,r,c,d,p=[],u=!1,h=this.getData({includeHiddenRows:!1}),g=a.pageList;if("server"!==a.sidePagination&&(a.totalRows=h.length),this.totalPages=0,a.totalRows){if(a.pageSize===a.formatAllRows())a.pageSize=a.totalRows,u=!0;else if(a.pageSize===a.totalRows){var f="string"==typeof a.pageList?a.pageList.replace("[","").replace("]","").replace(/ /g,"").toLowerCase().split(","):a.pageList;f.includes(a.formatAllRows().toLowerCase())&&(u=!0)}this.totalPages=~~((a.totalRows-1)/a.pageSize)+1,a.totalPages=this.totalPages}0this.totalPages&&(a.pageNumber=this.totalPages),this.pageFrom=(a.pageNumber-1)*a.pageSize+1,this.pageTo=a.pageNumber*a.pageSize,this.pageTo>a.totalRows&&(this.pageTo=a.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0);var m=a.onlyInfoPagination?a.formatDetailPagination(a.totalRows):a.formatShowingRows(this.pageFrom,this.pageTo,a.totalRows,a.totalNotFiltered);if(p.push("
    \n \n ").concat(m,"\n ")),!a.onlyInfoPagination){p.push("");var b=["\n \n ").concat(this.constants.html.pageDropdown[0])];if("string"==typeof a.pageList){var y=a.pageList.replace("[","").replace("]","").replace(/ /g,"").split(",");g=[];var w=!0,S=!1,v=void 0;try{for(var x,k,T=y[Symbol.iterator]();!(w=(x=T.next()).done);w=!0)k=x.value,g.push(k.toLowerCase()===a.formatAllRows().toLowerCase()||["all","unlimited"].includes(k.toLowerCase())?a.formatAllRows():+k)}catch(e){S=!0,v=e}finally{try{w||null==T.return||T.return()}finally{if(S)throw v}}}g.forEach(function(e,o){if(!a.smartDisplay||0===o||g[o-1]")),p.push(a.formatRecordsPerPage(b.join(""))),p.push("
    "),p.push("
    "),yi.sprintf(this.constants.html.pagination[0],yi.sprintf(" pagination-%s",a.iconSize)),yi.sprintf(this.constants.html.paginationItem," page-pre",a.formatSRPaginationPreText(),a.paginationPreText)),this.totalPagesthis.totalPages-n&&(n=n-(a.paginationSuccessivelySize-(this.totalPages-n))+1),1>n&&(n=1),s>this.totalPages&&(s=this.totalPages);var P=e(a.paginationPagesBySide/2),O=function(e){var o=1=n&&(C=n-1),o=1;o<=C;o++)p.push(O(o));n-1===C+1?(o=n-1,p.push(O(o))):n-1>C&&(n-2*a.paginationPagesBySide>a.paginationPagesBySide&&a.paginationUseIntermediate?(o=e((n-P)/2+P),p.push(O(o," page-intermediate"))):p.push(yi.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(o=n;o<=s;o++)p.push(O(o));if(this.totalPages>s){var I=this.totalPages-(a.paginationPagesBySide-1);for(s>=I&&(I=s+1),s+1===I-1?(o=s+1,p.push(O(o))):I>s+1&&(this.totalPages-s>2*a.paginationPagesBySide&&a.paginationUseIntermediate?(o=e((this.totalPages-P-s)/2+s),p.push(O(o," page-intermediate"))):p.push(yi.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),o=I;o<=this.totalPages;o++)p.push(O(o))}p.push(yi.sprintf(this.constants.html.paginationItem," page-next",a.formatSRPaginationNextText(),a.paginationNextText)),p.push(this.constants.html.pagination[1],"
    ")}this.$pagination.html(p.join(""));var $=["bottom","both"].includes(a.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";this.$pagination.last().find(".page-list > span").addClass($),a.onlyInfoPagination||(l=this.$pagination.find(".page-list a"),r=this.$pagination.find(".page-pre"),c=this.$pagination.find(".page-next"),d=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),1>=this.totalPages&&this.$pagination.find("div.pagination").hide(),a.smartDisplay&&(2>g.length||a.totalRows<=g[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),!a.paginationLoop&&(1===a.pageNumber&&r.addClass("disabled"),a.pageNumber===this.totalPages&&c.addClass("disabled")),u&&(a.pageSize=a.formatAllRows()),l.off("click").on("click",function(o){return t.onPageListChange(o)}),r.off("click").on("click",function(o){return t.onPagePre(o)}),c.off("click").on("click",function(o){return t.onPageNext(o)}),d.off("click").on("click",function(o){return t.onPageNumber(o)}))}},{key:"updatePagination",value:function(e){e&&t(e.currentTarget).hasClass("disabled")||(!this.options.maintainMetaData&&this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))}},{key:"onPageListChange",value:function(e){e.preventDefault();var o=t(e.currentTarget);return o.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=o.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+o.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e),!1}},{key:"onPagePre",value:function(e){return e.preventDefault(),0==this.options.pageNumber-1?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(e),!1}},{key:"onPageNext",value:function(e){return e.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(e),!1}},{key:"onPageNumber",value:function(e){if(e.preventDefault(),this.options.pageNumber!==+t(e.currentTarget).text())return this.options.pageNumber=+t(e.currentTarget).text(),this.updatePagination(e),!1}},{key:"initRow",value:function(e,t){var o=this,n=[],i={},s=[],r="",c={},d=[];if(!(-1"),this.options.cardView&&n.push("
    ")),!this.options.cardView&&this.options.detailView&&this.options.detailViewIcon&&(n.push(""),yi.calculateObjectValue(null,this.options.detailFilter,[t,e])&&n.push("\n \n ".concat(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n \n ")),n.push("")),this.header.fields.forEach(function(a,i){var r="",d=yi.getItemField(e,a,o.options.escape),p="",u="",h={},g="",f=o.header.classes[i],m="",b="",y="",w="",S="",x=o.columns[i];if((!o.fromHtml||"undefined"!=typeof d||x.checkbox||x.radio)&&x.visible&&(!o.options.cardView||x.cardVisible)){if(x.escape&&(d=yi.escapeHTML(d)),s.concat([o.header.styles[i]]).length&&(m=" style=\"".concat(s.concat([o.header.styles[i]]).join("; "),"\"")),e["_".concat(a,"_id")]&&(g=yi.sprintf(" id=\"%s\"",e["_".concat(a,"_id")])),e["_".concat(a,"_class")]&&(f=yi.sprintf(" class=\"%s\"",e["_".concat(a,"_class")])),e["_".concat(a,"_rowspan")]&&(y=yi.sprintf(" rowspan=\"%s\"",e["_".concat(a,"_rowspan")])),e["_".concat(a,"_colspan")]&&(w=yi.sprintf(" colspan=\"%s\"",e["_".concat(a,"_colspan")])),e["_".concat(a,"_title")]&&(S=yi.sprintf(" title=\"%s\"",e["_".concat(a,"_title")])),h=yi.calculateObjectValue(o.header,o.header.cellStyles[i],[d,e,t,a],h),h.classes&&(f=" class=\"".concat(h.classes,"\"")),h.css){for(var T=[],P=0,O=Object.entries(h.css);P"):""),""),o.header.formatters[i]&&"string"==typeof p?p:"",o.options.cardView?"
    ":""].join(""),e[o.header.stateField]=!0===p||!!d||p&&p.checked}else if(p="undefined"==typeof p||null===p?o.options.undefinedText:p,o.options.cardView){var D=o.options.showHeader?"").concat(yi.getFieldTitle(o.columns,a),""):"";r="
    ".concat(D,"").concat(p,"
    "),o.options.smartDisplay&&""===p&&(r="
    ")}else r="").concat(p,"");n.push(r)}}),this.options.cardView&&n.push(""),n.push(""),n.join("")}}},{key:"initBody",value:function(e){var o=this,a=this.getData();this.trigger("pre-body",a),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=t("").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=a.length);for(var n=[],s=t(document.createDocumentFragment()),l=!1,r=this.pageFrom-1;r".concat(yi.sprintf("%s",this.$header.find("th").length,this.options.formatNoMatches()),"")),e||this.scrollTo(0),this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(a){var e=t(a.currentTarget),n=e.parent(),i=t(a.target).parents(".card-views").children(),s=t(a.target).parents(".card-view"),l=n.data("index"),r=o.data[l],c=o.options.cardView?i.index(s):e[0].cellIndex,d=o.getVisibleFields(),p=d[o.options.detailView&&!o.options.cardView?c-1:c],u=o.columns[o.fieldsColumnsIndex[p]],h=yi.getItemField(r,p,o.options.escape);if(!e.find(".detail-icon").length){if(o.trigger("click"===a.type?"click-cell":"dbl-click-cell",p,h,r,e),o.trigger("click"===a.type?"click-row":"dbl-click-row",r,n,p),"click"===a.type&&o.options.clickToSelect&&u.clickToSelect&&!yi.calculateObjectValue(o.options,o.options.ignoreClickToSelectOn,[a.target])){var g=n.find(yi.sprintf("[name=\"%s\"]",o.options.selectItemName));g.length&&g[0].click()}"click"===a.type&&o.options.detailViewByClick&&o.toggleDetailView(l,o.header.detailFormatters[c])}}).off("mousedown").on("mousedown",function(t){o.multipleSelectRowCtrlKey=t.ctrlKey||t.metaKey,o.multipleSelectRowShiftKey=t.shiftKey}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(a){return a.preventDefault(),o.toggleDetailView(t(a.currentTarget).parent().parent().data("index")),!1}),this.$selectItem=this.$body.find(yi.sprintf("[name=\"%s\"]",this.options.selectItemName)),this.$selectItem.off("click").on("click",function(a){a.stopImmediatePropagation();var e=t(a.currentTarget);o._toggleCheck(e.prop("checked"),e.data("index"))}),this.header.events.forEach(function(e,a){var n=e;if(n){"string"==typeof n&&(n=yi.calculateObjectValue(null,n));var i=o.header.fields[a],s=o.getVisibleFields().indexOf(i);if(-1!==s){o.options.detailView&&!o.options.cardView&&(s+=1);var l=function(e){if(!n.hasOwnProperty(e))return"continue";var a=n[e];o.$body.find(">tr:not(.no-records-found)").each(function(n,l){var r=t(l),c=r.find(o.options.cardView?".card-view":"td").eq(s),d=e.indexOf(" "),p=e.substring(0,d),u=e.substring(d+1);c.find(u).off(p).on(p,function(t){var e=r.data("index"),n=o.data[e],s=n[i];a.apply(o,[t,s,n,e])})})};for(var r in n){var c=l(r)}}}}),this.updateSelected(),this.initFooter(),this.resetView(),"server"!==this.options.sidePagination&&(this.options.totalRows=a.length),this.trigger("post-body",a)}},{key:"initServer",value:function(e,o,a){var n=this,i={},s=this.header.fields.indexOf(this.options.sortName),l={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if((this.header.sortNames[s]&&(l.sortName=this.header.sortNames[s]),this.options.pagination&&"server"===this.options.sidePagination&&(l.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,l.pageNumber=this.options.pageNumber),a||this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(l={search:l.searchText,sort:l.sortName,order:l.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(l.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),l.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,0===l.limit&&delete l.limit)),yi.isEmptyObject(this.filterColumnsPartial)||(l.filter=JSON.stringify(this.filterColumnsPartial,null)),i=yi.calculateObjectValue(this.options,this.options.queryParams,[l],i),t.extend(i,o||{}),!1!==i)){e||this.showLoading();var r=t.extend({},yi.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:a||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(i):i,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t){var o=yi.calculateObjectValue(n.options,n.options.responseHandler,[t],t);n.load(o),n.trigger("load-success",o),e||n.hideLoading()},error:function(t){var o=[];"server"===n.options.sidePagination&&(o={},o[n.options.totalField]=0,o[n.options.dataField]=[]),n.load(o),n.trigger("load-error",t.status,t),e||n.$tableLoading.hide()}});return this.options.ajax?yi.calculateObjectValue(this,this.options.ajax,[r],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=t.ajax(r)),i}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var e=this.$toolbar.find(".search input");e.val(this.options.searchText),this.onSearch({currentTarget:e,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var e=this;this.$header.find("th").each(function(o,a){t(a).find(".sortable").removeClass("desc asc").addClass(t(a).data("field")===e.options.sortName?e.options.sortOrder:"both")})}},{key:"updateSelected",value:function(){var e=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each(function(e,o){t(o).closest("tr")[t(o).prop("checked")?"addClass":"removeClass"]("selected")})}},{key:"updateRows",value:function(){var e=this;this.$selectItem.each(function(o,a){e.data[t(a).data("index")][e.header.stateField]=t(a).prop("checked")})}},{key:"resetRows",value:function(){var e=!0,t=!1,o=void 0;try{for(var a,n,i=this.data[Symbol.iterator]();!(e=(a=i.next()).done);e=!0)n=a.value,this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(n[this.header.stateField]=!1)}catch(e){t=!0,o=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw o}}this.initHiddenRows()}},{key:"trigger",value:function(o){for(var a,n="".concat(o,".bs.table"),i=arguments.length,s=Array(1o.clientWidth&&o.scrollHeight>o.clientHeight+this.$header.outerHeight()?yi.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var n=t(":focus");if(0tr:not(.no-records-found,.virtual-scroll-top)").eq(0);p.length&&p.find(">td[colspan]:not([colspan=\"1\"])").length;)p=p.next();p.find("> *").each(function(o,a){var n=t(a),i=o;if(e.options.detailView&&e.options.detailViewIcon&&!e.options.cardView){if(0===o){var s=d.filter(".detail"),l=s.width()-s.find(".fht-cell").width();s.find(".fht-cell").width(n.innerWidth()-l)}i=o-1}if(-1!==i){var r=e.$header_.find(yi.sprintf("th[data-field=\"%s\"]",c[i]));1
    ");var o=!0,a=!1,n=void 0;try{for(var i,s=this.columns[Symbol.iterator]();!(o=(i=s.next()).done);o=!0){var r=i.value,c="",d="",p=[],u={},h=yi.sprintf(" class=\"%s\"",r["class"]);if(r.visible){if(this.options.cardView&&!r.cardVisible)return;if(c=yi.sprintf("text-align: %s; ",r.falign?r.falign:r.align),d=yi.sprintf("vertical-align: %s; ",r.valign),u=yi.calculateObjectValue(null,this.options.footerStyle,[r]),u&&u.css)for(var g=0,f=Object.entries(u.css);g"),t.push("
    "),t.push(yi.calculateObjectValue(r,r.footerFormatter,[e],this.footerData[0]&&this.footerData[0][r.field]||"")),t.push("
    "),t.push("
    "),t.push(""),t.push("")}}}catch(e){a=!0,n=e}finally{try{o||null==s.return||s.return()}finally{if(a)throw n}}this.$tableFooter.find("tr").html(t.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var e=this;if(this.$el.is(":hidden"))return void setTimeout(function(){return e.fitFooter()},100);var o=this.$tableBody.get(0),a=o.scrollWidth>o.clientWidth&&o.scrollHeight>o.clientHeight+this.$header.outerHeight()?yi.getScrollBarWidth():0;this.$tableFooter.css("margin-right",a).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class"));for(var n=this.getVisibleFields(),s=this.$tableFooter.find("th"),l=this.$body.find(">tr:first-child:not(.no-records-found)");l.length&&l.find(">td[colspan]:not([colspan=\"1\"])").length;)l=l.next();l.find("> *").each(function(o,a){var n=t(a),i=o;if(e.options.detailView&&!e.options.cardView){if(0===o){var l=s.filter(".detail"),r=l.width()-l.find(".fht-cell").width();l.find(".fht-cell").width(n.innerWidth()-r)}i=o-1}if(-1!==i){var c=s.eq(o),d=c.width()-c.find(".fht-cell").width();c.find(".fht-cell").width(n.innerWidth()-d)}}),this.horizontalScroll()}},{key:"horizontalScroll",value:function(){var e=this;this.trigger("scroll-body"),this.$tableBody.off("scroll").on("scroll",function(o){var a=o.currentTarget;e.options.showHeader&&e.options.height&&e.$tableHeader.scrollLeft(t(a).scrollLeft()),e.options.showFooter&&!e.options.cardView&&e.$tableFooter.scrollLeft(t(a).scrollLeft())})}},{key:"getVisibleFields",value:function(){var e=[],t=!0,o=!1,a=void 0;try{for(var n,i=this.header.fields[Symbol.iterator]();!(t=(n=i.next()).done);t=!0){var s=n.value,l=this.columns[this.fieldsColumnsIndex[s]];l.visible&&e.push(s)}}catch(e){o=!0,a=e}finally{try{t||null==i.return||i.return()}finally{if(o)throw a}}return e}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var e=JSON.parse(JSON.stringify(this.options));return delete e.data,e}},{key:"refreshOptions",value:function(e){yi.compareObjects(this.options,e,!0)||(this.options=t.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(e){var t=this.options.data;if((this.searchText||this.options.sortName||!yi.isEmptyObject(this.filterColumns)||!yi.isEmptyObject(this.filterColumnsPartial))&&(t=this.data),e&&e.useCurrentPage&&(t=t.slice(this.pageFrom-1,this.pageTo)),e&&!e.includeHiddenRows){var o=this.getHiddenRows();t=t.filter(function(e){return-1===yi.findIndex(o,e)})}return t}},{key:"getSelections",value:function(){var e=this;return this.data.filter(function(t){return!0===t[e.header.stateField]})}},{key:"getAllSelections",value:function(){var e=this;return this.options.data.filter(function(t){return!0===t[e.header.stateField]})}},{key:"load",value:function(e){var t=!1,o=e;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=o[this.options.totalField]),this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalNotFiltered=o[this.options.totalNotFilteredField]),t=o.fixedScroll,o=Array.isArray(o)?o:o[this.options.dataField],this.initData(o),this.initSearch(),this.initPagination(),this.initBody(t)}},{key:"append",value:function(e){this.initData(e,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(e){this.initData(e,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(e){var t,o,a=this.options.data.length;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){for(t=a-1;0<=t;t--)(o=this.options.data[t],!!o.hasOwnProperty(e.field))&&e.values.includes(o[e.field])&&(this.options.data.splice(t,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1));a===this.options.data.length||(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}}},{key:"removeAll",value:function(){0o.options.minimumCountColumns&&t(a).prop("checked",e)}),c.filter(":checked").length<=this.options.minimumCountColumns&&c.filter(":checked").prop("disabled",!0)}}},{key:"mergeCells",value:function(e){var t,o,a=e.index,n=this.getVisibleFields().indexOf(e.field),s=e.rowspan||1,l=e.colspan||1,r=this.$body.find(">tr");this.options.detailView&&!this.options.cardView&&(n+=1);var c=r.eq(a).find(">td").eq(n);if(!(0>a||0>n||a>=this.data.length)){for(t=a;ttd").eq(o).hide();c.attr("rowspan",s).attr("colspan",l).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(e){var t=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.filter(":enabled").prop("checked",e),this.updateRows();var o=this.getSelections();return e?void this.trigger("check-all",o,t):void this.trigger("uncheck-all",o,t)}},{key:"checkInvert",value:function(){var e=this.$selectItem.filter(":enabled"),o=e.filter(":checked");e.each(function(e,o){t(o).prop("checked",!t(o).prop("checked"))}),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",o),o=this.getSelections(),this.trigger("check-some",o)}},{key:"check",value:function(e){this._toggleCheck(!0,e)}},{key:"uncheck",value:function(e){this._toggleCheck(!1,e)}},{key:"_toggleCheck",value:function(e,t){var o=this.$selectItem.filter("[data-index=\"".concat(t,"\"]")),a=this.data[t];if(o.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var n=!0,s=!1,l=void 0;try{for(var c,d,p=this.options.data[Symbol.iterator]();!(n=(c=p.next()).done);n=!0)d=c.value,d[this.header.stateField]=!1}catch(e){s=!0,l=e}finally{try{n||null==p.return||p.return()}finally{if(s)throw l}}this.$selectItem.filter(":checked").not(o).prop("checked",!1)}if(a[this.header.stateField]=e,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&0<=this.multipleSelectRowLastSelectedIndex)for(var u=[this.multipleSelectRowLastSelectedIndex,t].sort(),h=u[0]+1;h tr:lt(".concat(n.value,")")).each(function(o,a){e+=t(a).outerHeight(!0)})),this.$tableBody.scrollTop(e)}},{key:"getScrollPosition",value:function(){return this.scrollTo()}},{key:"selectPage",value:function(e){0 tr[data-index=\"%s\"]",e));o.next().is("tr.detail-view")?this.collapseRow(e):this.expandRow(e,t),this.resetView()}},{key:"expandRow",value:function(e,t){var o=this.data[e],a=this.$body.find(yi.sprintf("> tr[data-index=\"%s\"][data-has-detail-view]",e));if(!a.next().is("tr.detail-view")){this.options.detailViewIcon&&a.find("a.detail-icon").html(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),a.after(yi.sprintf("",a.children("td").length));var n=a.next().find("td"),i=t||this.options.detailFormatter,s=yi.calculateObjectValue(this.options,i,[e,o,n],"");1===n.length&&n.append(s),this.trigger("expand-row",e,o,n)}}},{key:"collapseRow",value:function(e){var t=this.data[e],o=this.$body.find(yi.sprintf("> tr[data-index=\"%s\"][data-has-detail-view]",e));o.next().is("tr.detail-view")&&(this.options.detailViewIcon&&o.find("a.detail-icon").html(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",e,t,o.next()),o.next().remove())}},{key:"expandAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),o=0;o tr[data-index][data-has-detail-view]"),o=0;otr:not(.no-records-found)').each((i, tr) => { const $tr = $(tr) const $td = $tr.find(this.options.cardView ? '.card-view' : 'td').eq(fieldIndex)