UNPKG

bootstrap-table

Version:

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)

11 lines (9 loc) 19.2 kB
/** * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) * * @version v1.20.2 * @homepage https://bootstrap-table.com * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/) * @license MIT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(t),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||function(){return this}()||Function("return this")(),a={},s=function(t){try{return!!t()}catch(t){return!0}},u=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=c,p=Function.prototype.call,l=f?p.bind(p):function(){return p.apply(p,arguments)},h={},d={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,g=y&&!d.call({1:2},1);h.f=g?function(t){var e=y(this,t);return!!e&&e.enumerable}:d;var v,b,m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w=c,S=Function.prototype,O=S.bind,j=S.call,x=w&&O.bind(j,j),P=w?function(t){return t&&x(t)}:function(t){return t&&function(){return j.apply(t,arguments)}},T=P,C=T({}.toString),E=T("".slice),A=function(t){return E(C(t),8,-1)},z=P,N=s,W=A,R=i.Object,F=z("".split),I=N((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"==W(t)?F(t,""):R(t)}:R,L=i.TypeError,M=function(t){if(null==t)throw L("Can't call method on "+t);return t},D=I,_=M,k=function(t){return D(_(t))},q=function(t){return"function"==typeof t},G=q,V=function(t){return"object"==typeof t?null!==t:G(t)},J=i,B=q,H=function(t){return B(t)?t:void 0},U=function(t,e){return arguments.length<2?H(J[t]):J[t]&&J[t][e]},$=P({}.isPrototypeOf),K=i,Q=U("navigator","userAgent")||"",X=K.process,Y=K.Deno,Z=X&&X.versions||Y&&Y.version,tt=Z&&Z.v8;tt&&(b=(v=tt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!b&&Q&&(!(v=Q.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=Q.match(/Chrome\/(\d+)/))&&(b=+v[1]);var et=b,rt=et,nt=s,ot=!!Object.getOwnPropertySymbols&&!nt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),it=ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=U,st=q,ut=$,ct=it,ft=i.Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var e=at("Symbol");return st(e)&&ut(e.prototype,ft(t))},lt=i.String,ht=q,dt=function(t){try{return lt(t)}catch(t){return"Object"}},yt=i.TypeError,gt=function(t){if(ht(t))return t;throw yt(dt(t)+" is not a function")},vt=gt,bt=l,mt=q,wt=V,St=i.TypeError,Ot={exports:{}},jt=i,xt=Object.defineProperty,Pt=function(t,e){try{xt(jt,t,{value:e,configurable:!0,writable:!0})}catch(r){jt[t]=e}return e},Tt=Pt,Ct="__core-js_shared__",Et=i[Ct]||Tt(Ct,{}),At=Et;(Ot.exports=function(t,e){return At[t]||(At[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE",source:"https://github.com/zloirock/core-js"});var zt=M,Nt=i.Object,Wt=function(t){return Nt(zt(t))},Rt=Wt,Ft=P({}.hasOwnProperty),It=Object.hasOwn||function(t,e){return Ft(Rt(t),e)},Lt=P,Mt=0,Dt=Math.random(),_t=Lt(1..toString),kt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+_t(++Mt+Dt,36)},qt=i,Gt=Ot.exports,Vt=It,Jt=kt,Bt=ot,Ht=it,Ut=Gt("wks"),$t=qt.Symbol,Kt=$t&&$t.for,Qt=Ht?$t:$t&&$t.withoutSetter||Jt,Xt=function(t){if(!Vt(Ut,t)||!Bt&&"string"!=typeof Ut[t]){var e="Symbol."+t;Bt&&Vt($t,t)?Ut[t]=$t[t]:Ut[t]=Ht&&Kt?Kt(e):Qt(e)}return Ut[t]},Yt=l,Zt=V,te=pt,ee=function(t,e){var r=t[e];return null==r?void 0:vt(r)},re=function(t,e){var r,n;if("string"===e&&mt(r=t.toString)&&!wt(n=bt(r,t)))return n;if(mt(r=t.valueOf)&&!wt(n=bt(r,t)))return n;if("string"!==e&&mt(r=t.toString)&&!wt(n=bt(r,t)))return n;throw St("Can't convert object to primitive value")},ne=Xt,oe=i.TypeError,ie=ne("toPrimitive"),ae=function(t,e){if(!Zt(t)||te(t))return t;var r,n=ee(t,ie);if(n){if(void 0===e&&(e="default"),r=Yt(n,t,e),!Zt(r)||te(r))return r;throw oe("Can't convert object to primitive value")}return void 0===e&&(e="number"),re(t,e)},se=pt,ue=function(t){var e=ae(t,"string");return se(e)?e:e+""},ce=V,fe=i.document,pe=ce(fe)&&ce(fe.createElement),le=function(t){return pe?fe.createElement(t):{}},he=!u&&!s((function(){return 7!=Object.defineProperty(le("div"),"a",{get:function(){return 7}}).a})),de=u,ye=l,ge=h,ve=m,be=k,me=ue,we=It,Se=he,Oe=Object.getOwnPropertyDescriptor;a.f=de?Oe:function(t,e){if(t=be(t),e=me(e),Se)try{return Oe(t,e)}catch(t){}if(we(t,e))return ve(!ye(ge.f,t,e),t[e])};var je={},xe=u&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pe=i,Te=V,Ce=Pe.String,Ee=Pe.TypeError,Ae=function(t){if(Te(t))return t;throw Ee(Ce(t)+" is not an object")},ze=u,Ne=he,We=xe,Re=Ae,Fe=ue,Ie=i.TypeError,Le=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,De="enumerable",_e="configurable",ke="writable";je.f=ze?We?function(t,e,r){if(Re(t),e=Fe(e),Re(r),"function"==typeof t&&"prototype"===e&&"value"in r&&ke in r&&!r.writable){var n=Me(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:_e in r?r.configurable:n.configurable,enumerable:De in r?r.enumerable:n.enumerable,writable:!1})}return Le(t,e,r)}:Le:function(t,e,r){if(Re(t),e=Fe(e),Re(r),Ne)try{return Le(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ie("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var qe=je,Ge=m,Ve=u?function(t,e,r){return qe.f(t,e,Ge(1,r))}:function(t,e,r){return t[e]=r,t},Je={exports:{}},Be=u,He=It,Ue=Function.prototype,$e=Be&&Object.getOwnPropertyDescriptor,Ke=He(Ue,"name"),Qe={EXISTS:Ke,PROPER:Ke&&"something"===function(){}.name,CONFIGURABLE:Ke&&(!Be||Be&&$e(Ue,"name").configurable)},Xe=q,Ye=Et,Ze=P(Function.toString);Xe(Ye.inspectSource)||(Ye.inspectSource=function(t){return Ze(t)});var tr,er,rr,nr=Ye.inspectSource,or=q,ir=nr,ar=i.WeakMap,sr=or(ar)&&/native code/.test(ir(ar)),ur=Ot.exports,cr=kt,fr=ur("keys"),pr={},lr=sr,hr=i,dr=P,yr=V,gr=Ve,vr=It,br=Et,mr=function(t){return fr[t]||(fr[t]=cr(t))},wr=pr,Sr="Object already initialized",Or=hr.TypeError,jr=hr.WeakMap;if(lr||br.state){var xr=br.state||(br.state=new jr),Pr=dr(xr.get),Tr=dr(xr.has),Cr=dr(xr.set);tr=function(t,e){if(Tr(xr,t))throw new Or(Sr);return e.facade=t,Cr(xr,t,e),e},er=function(t){return Pr(xr,t)||{}},rr=function(t){return Tr(xr,t)}}else{var Er=mr("state");wr[Er]=!0,tr=function(t,e){if(vr(t,Er))throw new Or(Sr);return e.facade=t,gr(t,Er,e),e},er=function(t){return vr(t,Er)?t[Er]:{}},rr=function(t){return vr(t,Er)}}var Ar={set:tr,get:er,has:rr,enforce:function(t){return rr(t)?er(t):tr(t,{})},getterFor:function(t){return function(e){var r;if(!yr(e)||(r=er(e)).type!==t)throw Or("Incompatible receiver, "+t+" required");return r}}},zr=s,Nr=q,Wr=It,Rr=u,Fr=Qe.CONFIGURABLE,Ir=nr,Lr=Ar.enforce,Mr=Ar.get,Dr=Object.defineProperty,_r=Rr&&!zr((function(){return 8!==Dr((function(){}),"length",{value:8}).length})),kr=String(String).split("String"),qr=Je.exports=function(t,e,r){if("Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Wr(t,"name")||Fr&&t.name!==e)&&Dr(t,"name",{value:e,configurable:!0}),_r&&r&&Wr(r,"arity")&&t.length!==r.arity&&Dr(t,"length",{value:r.arity}),r&&Wr(r,"constructor")&&r.constructor){if(Rr)try{Dr(t,"prototype",{writable:!1})}catch(t){}}else t.prototype=void 0;var n=Lr(t);return Wr(n,"source")||(n.source=kr.join("string"==typeof e?e:"")),t};Function.prototype.toString=qr((function(){return Nr(this)&&Mr(this).source||Ir(this)}),"toString");var Gr=i,Vr=q,Jr=Ve,Br=Je.exports,Hr=Pt,Ur=function(t,e,r,n){var o=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet,s=n&&void 0!==n.name?n.name:e;return Vr(r)&&Br(r,s,n),t===Gr?(i?t[e]=r:Hr(e,r),t):(o?!a&&t[e]&&(i=!0):delete t[e],i?t[e]=r:Jr(t,e,r),t)},$r={},Kr=Math.ceil,Qr=Math.floor,Xr=function(t){var e=+t;return e!=e||0===e?0:(e>0?Qr:Kr)(e)},Yr=Xr,Zr=Math.max,tn=Math.min,en=function(t,e){var r=Yr(t);return r<0?Zr(r+e,0):tn(r,e)},rn=Xr,nn=Math.min,on=function(t){return t>0?nn(rn(t),9007199254740991):0},an=function(t){return on(t.length)},sn=k,un=en,cn=an,fn=function(t){return function(e,r,n){var o,i=sn(e),a=cn(i),s=un(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},pn={includes:fn(!0),indexOf:fn(!1)},ln=It,hn=k,dn=pn.indexOf,yn=pr,gn=P([].push),vn=function(t,e){var r,n=hn(t),o=0,i=[];for(r in n)!ln(yn,r)&&ln(n,r)&&gn(i,r);for(;e.length>o;)ln(n,r=e[o++])&&(~dn(i,r)||gn(i,r));return i},bn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");$r.f=Object.getOwnPropertyNames||function(t){return vn(t,bn)};var mn={};mn.f=Object.getOwnPropertySymbols;var wn=U,Sn=$r,On=mn,jn=Ae,xn=P([].concat),Pn=wn("Reflect","ownKeys")||function(t){var e=Sn.f(jn(t)),r=On.f;return r?xn(e,r(t)):e},Tn=It,Cn=Pn,En=a,An=je,zn=s,Nn=q,Wn=/#|\.prototype\./,Rn=function(t,e){var r=In[Fn(t)];return r==Mn||r!=Ln&&(Nn(e)?zn(e):!!e)},Fn=Rn.normalize=function(t){return String(t).replace(Wn,".").toLowerCase()},In=Rn.data={},Ln=Rn.NATIVE="N",Mn=Rn.POLYFILL="P",Dn=Rn,_n=i,kn=a.f,qn=Ve,Gn=Ur,Vn=Pt,Jn=function(t,e,r){for(var n=Cn(e),o=An.f,i=En.f,a=0;a<n.length;a++){var s=n[a];Tn(t,s)||r&&Tn(r,s)||o(t,s,i(e,s))}},Bn=Dn,Hn=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?_n:c?_n[s]||Vn(s,{}):(_n[s]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=kn(r,n))&&a.value:r[n],!Bn(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Jn(i,o)}(t.sham||o&&o.sham)&&qn(i,"sham",!0),Gn(r,n,i,t)}},Un=A,$n=Array.isArray||function(t){return"Array"==Un(t)},Kn={};Kn[Xt("toStringTag")]="z";var Qn="[object z]"===String(Kn),Xn=i,Yn=Qn,Zn=q,to=A,eo=Xt("toStringTag"),ro=Xn.Object,no="Arguments"==to(function(){return arguments}()),oo=Yn?to:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=ro(t),eo))?r:no?to(e):"Object"==(n=to(e))&&Zn(e.callee)?"Arguments":n},io=P,ao=s,so=q,uo=oo,co=nr,fo=function(){},po=[],lo=U("Reflect","construct"),ho=/^\s*(?:class|function)\b/,yo=io(ho.exec),go=!ho.exec(fo),vo=function(t){if(!so(t))return!1;try{return lo(fo,po,t),!0}catch(t){return!1}},bo=function(t){if(!so(t))return!1;switch(uo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return go||!!yo(ho,co(t))}catch(t){return!0}};bo.sham=!0;var mo=!lo||ao((function(){var t;return vo(vo.call)||!vo(Object)||!vo((function(){t=!0}))||t}))?bo:vo,wo=ue,So=je,Oo=m,jo=s,xo=et,Po=Xt("species"),To=function(t){return xo>=51||!jo((function(){var e=[];return(e.constructor={})[Po]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Co=P([].slice),Eo=Hn,Ao=i,zo=$n,No=mo,Wo=V,Ro=en,Fo=an,Io=k,Lo=function(t,e,r){var n=wo(e);n in t?So.f(t,n,Oo(0,r)):t[n]=r},Mo=Xt,Do=Co,_o=To("slice"),ko=Mo("species"),qo=Ao.Array,Go=Math.max;Eo({target:"Array",proto:!0,forced:!_o},{slice:function(t,e){var r,n,o,i=Io(this),a=Fo(i),s=Ro(t,a),u=Ro(void 0===e?a:e,a);if(zo(i)&&(r=i.constructor,(No(r)&&(r===qo||zo(r.prototype))||Wo(r)&&null===(r=r[ko]))&&(r=void 0),r===qo||void 0===r))return Do(i,s,u);for(n=new(void 0===r?qo:r)(Go(u-s,0)),o=0;s<u;s++,o++)s in i&&Lo(n,o,i[s]);return n.length=o,n}});var Vo=oo,Jo=i.String,Bo=function(t){if("Symbol"===Vo(t))throw TypeError("Cannot convert a Symbol value to a string");return Jo(t)},Ho="\t\n\v\f\r                 \u2028\u2029\ufeff",Uo=M,$o=Bo,Ko=P("".replace),Qo="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Xo=RegExp("^"+Qo+Qo+"*"),Yo=RegExp(Qo+Qo+"*$"),Zo=function(t){return function(e){var r=$o(Uo(e));return 1&t&&(r=Ko(r,Xo,"")),2&t&&(r=Ko(r,Yo,"")),r}},ti={start:Zo(1),end:Zo(2),trim:Zo(3)},ei=i,ri=s,ni=P,oi=Bo,ii=ti.trim,ai=Ho,si=ei.parseInt,ui=ei.Symbol,ci=ui&&ui.iterator,fi=/^[+-]?0x/i,pi=ni(fi.exec),li=8!==si(ai+"08")||22!==si(ai+"0x16")||ci&&!ri((function(){si(Object(ci))}))?function(t,e){var r=ii(oi(t));return si(r,e>>>0||(pi(fi,r)?16:10))}:si;Hn({global:!0,forced:parseInt!=li},{parseInt:li});var hi=s,di=Hn,yi=pn.indexOf,gi=function(t,e){var r=[][t];return!!r&&hi((function(){r.call(null,e||function(){return 1},1)}))},vi=P([].indexOf),bi=!!vi&&1/vi([1],1,-0)<0,mi=gi("indexOf");di({target:"Array",proto:!0,forced:bi||!mi},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return bi?vi(this,t,e)||0:yi(this,t,e)}});var wi=gt,Si=c,Oi=P(P.bind),ji=i,xi=$n,Pi=mo,Ti=V,Ci=Xt("species"),Ei=ji.Array,Ai=function(t){var e;return xi(t)&&(e=t.constructor,(Pi(e)&&(e===Ei||xi(e.prototype))||Ti(e)&&null===(e=e[Ci]))&&(e=void 0)),void 0===e?Ei:e},zi=function(t,e){return wi(t),void 0===e?t:Si?Oi(t,e):function(){return t.apply(e,arguments)}},Ni=I,Wi=Wt,Ri=an,Fi=function(t,e){return new(Ai(t))(0===e?0:e)},Ii=P([].push),Li=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,c,f,p){for(var l,h,d=Wi(u),y=Ni(d),g=zi(c,f),v=Ri(y),b=0,m=p||Fi,w=e?m(u,v):r||a?m(u,0):void 0;v>b;b++)if((s||b in y)&&(h=g(l=y[b],b,d),t))if(e)w[b]=h;else if(h)switch(t){case 3:return!0;case 5:return l;case 6:return b;case 2:Ii(w,l)}else switch(t){case 4:return!1;case 7:Ii(w,l)}return i?-1:n||o?o:w}},Mi={forEach:Li(0),map:Li(1),filter:Li(2),some:Li(3),every:Li(4),find:Li(5),findIndex:Li(6),filterReject:Li(7)}.filter;Hn({target:"Array",proto:!0,forced:!To("filter")},{filter:function(t){return Mi(this,t,arguments.length>1?arguments[1]:void 0)}});var Di=oo,_i=Qn?{}.toString:function(){return"[object "+Di(this)+"]"};Qn||Ur(Object.prototype,"toString",_i,{unsafe:!0});var ki=r.default.fn.bootstrapTable.utils;r.default.extend(r.default.fn.bootstrapTable.defaults,{usePipeline:!1,pipelineSize:1e3,onCachedDataHit:function(t){return!1},onCachedDataReset:function(t){return!1}}),r.default.extend(r.default.fn.bootstrapTable.Constructor.EVENTS,{"cached-data-hit.bs.table":"onCachedDataHit","cached-data-reset.bs.table":"onCachedDataReset"});var qi=r.default.fn.bootstrapTable.Constructor,Gi=qi.prototype.init,Vi=qi.prototype.onSearch,Ji=qi.prototype.onSort,Bi=qi.prototype.onPageListChange;qi.prototype.init=function(){this.initPipeline();for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Gi.apply(this,Array.prototype.slice.apply(e))},qi.prototype.initPipeline=function(){this.cacheRequestJSON={},this.cacheWindows=[],this.currWindow=0,this.resetCache=!0},qi.prototype.onSearch=function(){this.options.usePipeline&&(this.resetCache=!0),Vi.apply(this,Array.prototype.slice.apply(arguments))},qi.prototype.onSort=function(){this.options.usePipeline&&(this.resetCache=!0),Ji.apply(this,Array.prototype.slice.apply(arguments))},qi.prototype.onPageListChange=function(t){var e=r.default(t.currentTarget),n=parseInt(e.text(),10);this.options.pipelineSize=this.calculatePipelineSize(this.options.pipelineSize,n),this.resetCache=!0,Bi.apply(this,Array.prototype.slice.apply(arguments))},qi.prototype.calculatePipelineSize=function(t,e){return 0===e?0:Math.ceil(t/e)*e},qi.prototype.setCacheWindows=function(){this.cacheWindows=[];for(var t=this.options.totalRows/this.options.pipelineSize,e=0;e<=t;e++){var r=e*this.options.pipelineSize;this.cacheWindows[e]={lower:r,upper:r+this.options.pipelineSize-1}}},qi.prototype.setCurrWindow=function(t){this.currWindow=0;for(var e=0;e<this.cacheWindows.length;e++)if(this.cacheWindows[e].lower<=t&&t<=this.cacheWindows[e].upper){this.currWindow=e;break}},qi.prototype.drawFromCache=function(t,e){var n=r.default.extend(!0,{},this.cacheRequestJSON),o=t-this.cacheWindows[this.currWindow].lower,i=o+e;return n.rows=n.rows.slice(o,i),n},qi.prototype.initServer=function(t,e,n){var o,i={},a=this.header.fields.indexOf(this.options.sortName),s={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[a]&&(s.sortName=this.header.sortNames[a]),this.options.pagination&&"server"===this.options.sidePagination&&(s.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,s.pageNumber=this.options.pageNumber),n||this.options.url||this.options.ajax){var u=!0;if("limit"===this.options.queryParamsType&&(s={searchText:s.searchText,sortName:s.sortName,sortOrder:s.sortOrder},this.options.pagination&&"server"===this.options.sidePagination))if(s.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,s.offset=(this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize)*(this.options.pageNumber-1),this.options.usePipeline)if(this.cacheWindows.length){var c=this.cacheWindows[this.currWindow];this.resetCache||s.offset<c.lower||s.offset>c.upper?(u=!0,this.setCurrWindow(s.offset),s.drawOffset=s.offset,s.offset=this.cacheWindows[this.currWindow].lower):u=!1}else u=!0,s.drawOffset=s.offset;else 0===s.limit&&delete s.limit;if(this.resetCache&&(u=!0,this.resetCache=!1),this.options.usePipeline&&u&&(s.drawLimit=s.limit,s.limit=this.options.pipelineSize),!u){var f=this.drawFromCache(s.offset,s.limit);return this.load(f),this.trigger("load-success",f),void this.trigger("cached-data-hit",f)}if(r.default.isEmptyObject(this.filterColumnsPartial)||(s.filter=JSON.stringify(this.filterColumnsPartial,null)),i=ki.calculateObjectValue(this.options,this.options.queryParams,[s],i),r.default.extend(i,e||{}),!1!==i){t||this.$tableLoading.show();var p=this;o=r.default.extend({},ki.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:n||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(e){e=ki.calculateObjectValue(p.options,p.options.responseHandler,[e],e),p.options.usePipeline&&(p.cacheRequestJSON=r.default.extend(!0,{},e),p.options.totalRows=e[p.options.totalField],p.setCacheWindows(),p.setCurrWindow(s.drawOffset),e=p.drawFromCache(s.drawOffset,s.drawLimit),p.trigger("cached-data-reset",e)),p.load(e),p.trigger("load-success",e),t||p.hideLoading()},error:function(e){var r=[];"server"===p.options.sidePagination&&((r={})[p.options.totalField]=0,r[p.options.dataField]=[]),p.load(r),p.trigger("load-error",e.status,e),t||p.hideLoading()}}),this.options.ajax?ki.calculateObjectValue(this,this.options.ajax,[o],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=r.default.ajax(o))}}}}));