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