UNPKG

19.9 kBJavaScriptView Raw
1/**
2 * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
3 *
4 * @version v1.21.3
5 * @homepage https://bootstrap-table.com
6 * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
7 * @license MIT
8 */
9
10!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function n(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function r(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,(o=e.key,i=void 0,"symbol"==typeof(i=function(t,n){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var e=r.call(t,n||"default");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(o,"string"))?i:String(i)),e)}var o,i}function e(t){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},e(t)}function o(t,n){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},o(t,n)}function i(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=e(t);if(n){var u=e(this).constructor;r=Reflect.construct(o,arguments,u)}else r=o.apply(this,arguments);return i(this,r)}}function a(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,r){var e=a(t,n);if(e){var o=Object.getOwnPropertyDescriptor(e,n);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(this,arguments)}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(t){return t&&t.Math==Math&&t},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof f&&f)||function(){return this}()||Function("return this")(),p={},y=function(t){try{return!!t()}catch(t){return!0}},d=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!y((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),g=h,b=Function.prototype.call,v=g?b.bind(b):function(){return b.apply(b,arguments)},m={},w={}.propertyIsEnumerable,O=Object.getOwnPropertyDescriptor,S=O&&!w.call({1:2},1);m.f=S?function(t){var n=O(this,t);return!!n&&n.enumerable}:w;var j,D,P=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},x=h,T=Function.prototype,R=T.call,E=x&&T.bind.bind(R,R),A=x?E:function(t){return function(){return R.apply(t,arguments)}},k=A,I=k({}.toString),_=k("".slice),C=function(t){return _(I(t),8,-1)},M=y,F=C,B=Object,L=A("".split),z=M((function(){return!B("z").propertyIsEnumerable(0)}))?function(t){return"String"==F(t)?L(t,""):B(t)}:B,N=function(t){return null==t},H=N,q=TypeError,G=function(t){if(H(t))throw q("Can't call method on "+t);return t},$=z,U=G,W=function(t){return $(U(t))},K="object"==typeof document&&document.all,Q={all:K,IS_HTMLDDA:void 0===K&&void 0!==K},V=Q.all,X=Q.IS_HTMLDDA?function(t){return"function"==typeof t||t===V}:function(t){return"function"==typeof t},Y=X,J=Q.all,Z=Q.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Y(t)||t===J}:function(t){return"object"==typeof t?null!==t:Y(t)},tt=l,nt=X,rt=function(t){return nt(t)?t:void 0},et=function(t,n){return arguments.length<2?rt(tt[t]):tt[t]&&tt[t][n]},ot=A({}.isPrototypeOf),it=l,ut="undefined"!=typeof navigator&&String(navigator.userAgent)||"",at=it.process,ct=it.Deno,ft=at&&at.versions||ct&&ct.version,st=ft&&ft.v8;st&&(D=(j=st.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!D&&ut&&(!(j=ut.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ut.match(/Chrome\/(\d+)/))&&(D=+j[1]);var lt=D,pt=lt,yt=y,dt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pt&&pt<41})),ht=dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gt=et,bt=X,vt=ot,mt=Object,wt=ht?function(t){return"symbol"==typeof t}:function(t){var n=gt("Symbol");return bt(n)&&vt(n.prototype,mt(t))},Ot=String,St=function(t){try{return Ot(t)}catch(t){return"Object"}},jt=X,Dt=St,Pt=TypeError,xt=function(t){if(jt(t))return t;throw Pt(Dt(t)+" is not a function")},Tt=N,Rt=v,Et=X,At=Z,kt=TypeError,It={},_t={get exports(){return It},set exports(t){It=t}},Ct=l,Mt=Object.defineProperty,Ft=function(t,n){try{Mt(Ct,t,{value:n,configurable:!0,writable:!0})}catch(r){Ct[t]=n}return n},Bt=Ft,Lt="__core-js_shared__",zt=l[Lt]||Bt(Lt,{}),Nt=zt;(_t.exports=function(t,n){return Nt[t]||(Nt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ht=G,qt=Object,Gt=function(t){return qt(Ht(t))},$t=Gt,Ut=A({}.hasOwnProperty),Wt=Object.hasOwn||function(t,n){return Ut($t(t),n)},Kt=A,Qt=0,Vt=Math.random(),Xt=Kt(1..toString),Yt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Xt(++Qt+Vt,36)},Jt=It,Zt=Wt,tn=Yt,nn=dt,rn=ht,en=l.Symbol,on=Jt("wks"),un=rn?en.for||en:en&&en.withoutSetter||tn,an=function(t){return Zt(on,t)||(on[t]=nn&&Zt(en,t)?en[t]:un("Symbol."+t)),on[t]},cn=v,fn=Z,sn=wt,ln=function(t,n){var r=t[n];return Tt(r)?void 0:xt(r)},pn=function(t,n){var r,e;if("string"===n&&Et(r=t.toString)&&!At(e=Rt(r,t)))return e;if(Et(r=t.valueOf)&&!At(e=Rt(r,t)))return e;if("string"!==n&&Et(r=t.toString)&&!At(e=Rt(r,t)))return e;throw kt("Can't convert object to primitive value")},yn=TypeError,dn=an("toPrimitive"),hn=function(t,n){if(!fn(t)||sn(t))return t;var r,e=ln(t,dn);if(e){if(void 0===n&&(n="default"),r=cn(e,t,n),!fn(r)||sn(r))return r;throw yn("Can't convert object to primitive value")}return void 0===n&&(n="number"),pn(t,n)},gn=wt,bn=function(t){var n=hn(t,"string");return gn(n)?n:n+""},vn=Z,mn=l.document,wn=vn(mn)&&vn(mn.createElement),On=function(t){return wn?mn.createElement(t):{}},Sn=!d&&!y((function(){return 7!=Object.defineProperty(On("div"),"a",{get:function(){return 7}}).a})),jn=d,Dn=v,Pn=m,xn=P,Tn=W,Rn=bn,En=Wt,An=Sn,kn=Object.getOwnPropertyDescriptor;p.f=jn?kn:function(t,n){if(t=Tn(t),n=Rn(n),An)try{return kn(t,n)}catch(t){}if(En(t,n))return xn(!Dn(Pn.f,t,n),t[n])};var In={},_n=d&&y((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Cn=Z,Mn=String,Fn=TypeError,Bn=function(t){if(Cn(t))return t;throw Fn(Mn(t)+" is not an object")},Ln=d,zn=Sn,Nn=_n,Hn=Bn,qn=bn,Gn=TypeError,$n=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,Wn="enumerable",Kn="configurable",Qn="writable";In.f=Ln?Nn?function(t,n,r){if(Hn(t),n=qn(n),Hn(r),"function"==typeof t&&"prototype"===n&&"value"in r&&Qn in r&&!r.writable){var e=Un(t,n);e&&e.writable&&(t[n]=r.value,r={configurable:Kn in r?r.configurable:e.configurable,enumerable:Wn in r?r.enumerable:e.enumerable,writable:!1})}return $n(t,n,r)}:$n:function(t,n,r){if(Hn(t),n=qn(n),Hn(r),zn)try{return $n(t,n,r)}catch(t){}if("get"in r||"set"in r)throw Gn("Accessors not supported");return"value"in r&&(t[n]=r.value),t};var Vn=In,Xn=P,Yn=d?function(t,n,r){return Vn.f(t,n,Xn(1,r))}:function(t,n,r){return t[n]=r,t},Jn={},Zn={get exports(){return Jn},set exports(t){Jn=t}},tr=d,nr=Wt,rr=Function.prototype,er=tr&&Object.getOwnPropertyDescriptor,or=nr(rr,"name"),ir={EXISTS:or,PROPER:or&&"something"===function(){}.name,CONFIGURABLE:or&&(!tr||tr&&er(rr,"name").configurable)},ur=X,ar=zt,cr=A(Function.toString);ur(ar.inspectSource)||(ar.inspectSource=function(t){return cr(t)});var fr,sr,lr,pr=ar.inspectSource,yr=X,dr=l.WeakMap,hr=yr(dr)&&/native code/.test(String(dr)),gr=Yt,br=It("keys"),vr={},mr=hr,wr=l,Or=Z,Sr=Yn,jr=Wt,Dr=zt,Pr=function(t){return br[t]||(br[t]=gr(t))},xr=vr,Tr="Object already initialized",Rr=wr.TypeError,Er=wr.WeakMap;if(mr||Dr.state){var Ar=Dr.state||(Dr.state=new Er);Ar.get=Ar.get,Ar.has=Ar.has,Ar.set=Ar.set,fr=function(t,n){if(Ar.has(t))throw Rr(Tr);return n.facade=t,Ar.set(t,n),n},sr=function(t){return Ar.get(t)||{}},lr=function(t){return Ar.has(t)}}else{var kr=Pr("state");xr[kr]=!0,fr=function(t,n){if(jr(t,kr))throw Rr(Tr);return n.facade=t,Sr(t,kr,n),n},sr=function(t){return jr(t,kr)?t[kr]:{}},lr=function(t){return jr(t,kr)}}var Ir={set:fr,get:sr,has:lr,enforce:function(t){return lr(t)?sr(t):fr(t,{})},getterFor:function(t){return function(n){var r;if(!Or(n)||(r=sr(n)).type!==t)throw Rr("Incompatible receiver, "+t+" required");return r}}},_r=A,Cr=y,Mr=X,Fr=Wt,Br=d,Lr=ir.CONFIGURABLE,zr=pr,Nr=Ir.enforce,Hr=Ir.get,qr=String,Gr=Object.defineProperty,$r=_r("".slice),Ur=_r("".replace),Wr=_r([].join),Kr=Br&&!Cr((function(){return 8!==Gr((function(){}),"length",{value:8}).length})),Qr=String(String).split("String"),Vr=Zn.exports=function(t,n,r){"Symbol("===$r(qr(n),0,7)&&(n="["+Ur(qr(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!Fr(t,"name")||Lr&&t.name!==n)&&(Br?Gr(t,"name",{value:n,configurable:!0}):t.name=n),Kr&&r&&Fr(r,"arity")&&t.length!==r.arity&&Gr(t,"length",{value:r.arity});try{r&&Fr(r,"constructor")&&r.constructor?Br&&Gr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=Nr(t);return Fr(e,"source")||(e.source=Wr(Qr,"string"==typeof n?n:"")),t};Function.prototype.toString=Vr((function(){return Mr(this)&&Hr(this).source||zr(this)}),"toString");var Xr=X,Yr=In,Jr=Jn,Zr=Ft,te={},ne=Math.ceil,re=Math.floor,ee=Math.trunc||function(t){var n=+t;return(n>0?re:ne)(n)},oe=function(t){var n=+t;return n!=n||0===n?0:ee(n)},ie=oe,ue=Math.max,ae=Math.min,ce=function(t,n){var r=ie(t);return r<0?ue(r+n,0):ae(r,n)},fe=oe,se=Math.min,le=function(t){return t>0?se(fe(t),9007199254740991):0},pe=function(t){return le(t.length)},ye=W,de=ce,he=pe,ge=function(t){return function(n,r,e){var o,i=ye(n),u=he(i),a=de(e,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},be={includes:ge(!0),indexOf:ge(!1)},ve=Wt,me=W,we=be.indexOf,Oe=vr,Se=A([].push),je=function(t,n){var r,e=me(t),o=0,i=[];for(r in e)!ve(Oe,r)&&ve(e,r)&&Se(i,r);for(;n.length>o;)ve(e,r=n[o++])&&(~we(i,r)||Se(i,r));return i},De=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pe=je,xe=De.concat("length","prototype");te.f=Object.getOwnPropertyNames||function(t){return Pe(t,xe)};var Te={};Te.f=Object.getOwnPropertySymbols;var Re=et,Ee=te,Ae=Te,ke=Bn,Ie=A([].concat),_e=Re("Reflect","ownKeys")||function(t){var n=Ee.f(ke(t)),r=Ae.f;return r?Ie(n,r(t)):n},Ce=Wt,Me=_e,Fe=p,Be=In,Le=y,ze=X,Ne=/#|\.prototype\./,He=function(t,n){var r=Ge[qe(t)];return r==Ue||r!=$e&&(ze(n)?Le(n):!!n)},qe=He.normalize=function(t){return String(t).replace(Ne,".").toLowerCase()},Ge=He.data={},$e=He.NATIVE="N",Ue=He.POLYFILL="P",We=He,Ke=l,Qe=p.f,Ve=Yn,Xe=function(t,n,r,e){e||(e={});var o=e.enumerable,i=void 0!==e.name?e.name:n;if(Xr(r)&&Jr(r,i,e),e.global)o?t[n]=r:Zr(n,r);else{try{e.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=r:Yr.f(t,n,{value:r,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},Ye=Ft,Je=function(t,n,r){for(var e=Me(n),o=Be.f,i=Fe.f,u=0;u<e.length;u++){var a=e[u];Ce(t,a)||r&&Ce(r,a)||o(t,a,i(n,a))}},Ze=We,to=function(t,n){var r,e,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?Ke:f?Ke[a]||Ye(a,{}):(Ke[a]||{}).prototype)for(e in n){if(i=n[e],o=t.dontCallGetSet?(u=Qe(r,e))&&u.value:r[e],!Ze(c?e:a+(f?".":"#")+e,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Je(i,o)}(t.sham||o&&o.sham)&&Ve(i,"sham",!0),Xe(r,e,i,t)}},no=je,ro=De,eo=Object.keys||function(t){return no(t,ro)},oo=d,io=A,uo=v,ao=y,co=eo,fo=Te,so=m,lo=Gt,po=z,yo=Object.assign,ho=Object.defineProperty,go=io([].concat),bo=!yo||ao((function(){if(oo&&1!==yo({b:1},yo(ho({},"a",{enumerable:!0,get:function(){ho(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach((function(t){n[t]=t})),7!=yo({},t)[r]||co(yo({},n)).join("")!=e}))?function(t,n){for(var r=lo(t),e=arguments.length,o=1,i=fo.f,u=so.f;e>o;)for(var a,c=po(arguments[o++]),f=i?go(co(c),i(c)):co(c),s=f.length,l=0;s>l;)a=f[l++],oo&&!uo(u,c,a)||(r[a]=c[a]);return r}:yo,vo=bo;to({target:"Object",stat:!0,arity:2,forced:Object.assign!==vo},{assign:vo});var mo=C,wo=Array.isArray||function(t){return"Array"==mo(t)},Oo=TypeError,So=function(t){if(t>9007199254740991)throw Oo("Maximum allowed index exceeded");return t},jo=bn,Do=In,Po=P,xo=function(t,n,r){var e=jo(n);e in t?Do.f(t,e,Po(0,r)):t[e]=r},To={};To[an("toStringTag")]="z";var Ro="[object z]"===String(To),Eo=X,Ao=C,ko=an("toStringTag"),Io=Object,_o="Arguments"==Ao(function(){return arguments}()),Co=A,Mo=y,Fo=X,Bo=Ro?Ao:function(t){var n,r,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Io(t),ko))?r:_o?Ao(n):"Object"==(e=Ao(n))&&Eo(n.callee)?"Arguments":e},Lo=pr,zo=function(){},No=[],Ho=et("Reflect","construct"),qo=/^\s*(?:class|function)\b/,Go=Co(qo.exec),$o=!qo.exec(zo),Uo=function(t){if(!Fo(t))return!1;try{return Ho(zo,No,t),!0}catch(t){return!1}},Wo=function(t){if(!Fo(t))return!1;switch(Bo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $o||!!Go(qo,Lo(t))}catch(t){return!0}};Wo.sham=!0;var Ko=!Ho||Mo((function(){var t;return Uo(Uo.call)||!Uo(Object)||!Uo((function(){t=!0}))||t}))?Wo:Uo,Qo=wo,Vo=Ko,Xo=Z,Yo=an("species"),Jo=Array,Zo=function(t){var n;return Qo(t)&&(n=t.constructor,(Vo(n)&&(n===Jo||Qo(n.prototype))||Xo(n)&&null===(n=n[Yo]))&&(n=void 0)),void 0===n?Jo:n},ti=function(t,n){return new(Zo(t))(0===n?0:n)},ni=y,ri=lt,ei=an("species"),oi=function(t){return ri>=51||!ni((function(){var n=[];return(n.constructor={})[ei]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},ii=to,ui=y,ai=wo,ci=Z,fi=Gt,si=pe,li=So,pi=xo,yi=ti,di=oi,hi=lt,gi=an("isConcatSpreadable"),bi=hi>=51||!ui((function(){var t=[];return t[gi]=!1,t.concat()[0]!==t})),vi=function(t){if(!ci(t))return!1;var n=t[gi];return void 0!==n?!!n:ai(t)};ii({target:"Array",proto:!0,arity:1,forced:!bi||!di("concat")},{concat:function(t){var n,r,e,o,i,u=fi(this),a=yi(u,0),c=0;for(n=-1,e=arguments.length;n<e;n++)if(vi(i=-1===n?u:arguments[n]))for(o=si(i),li(c+o),r=0;r<o;r++,c++)r in i&&pi(a,c,i[r]);else li(c+1),pi(a,c++,i);return a.length=c,a}});var mi=C,wi=A,Oi=y,Si=to,ji=be.indexOf,Di=function(t,n){var r=[][t];return!!r&&Oi((function(){r.call(null,n||function(){return 1},1)}))},Pi=function(t){if("Function"===mi(t))return wi(t)}([].indexOf),xi=!!Pi&&1/Pi([1],1,-0)<0;Si({target:"Array",proto:!0,forced:xi||!Di("indexOf")},{indexOf:function(t){var n=arguments.length>1?arguments[1]:void 0;return xi?Pi(this,t,n)||0:ji(this,t,n)}});var Ti=d,Ri=wo,Ei=TypeError,Ai=Object.getOwnPropertyDescriptor,ki=Ti&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Ii=St,_i=TypeError,Ci=to,Mi=Gt,Fi=ce,Bi=oe,Li=pe,zi=ki?function(t,n){if(Ri(t)&&!Ai(t,"length").writable)throw Ei("Cannot set read only .length");return t.length=n}:function(t,n){return t.length=n},Ni=So,Hi=ti,qi=xo,Gi=function(t,n){if(!delete t[n])throw _i("Cannot delete property "+Ii(n)+" of "+Ii(t))},$i=oi("splice"),Ui=Math.max,Wi=Math.min;Ci({target:"Array",proto:!0,forced:!$i},{splice:function(t,n){var r,e,o,i,u,a,c=Mi(this),f=Li(c),s=Fi(t,f),l=arguments.length;for(0===l?r=e=0:1===l?(r=0,e=f-s):(r=l-2,e=Wi(Ui(Bi(n),0),f-s)),Ni(f+r-e),o=Hi(c,e),i=0;i<e;i++)(u=s+i)in c&&qi(o,i,c[u]);if(o.length=e,r<e){for(i=s;i<f-e;i++)a=i+r,(u=i+e)in c?c[a]=c[u]:Gi(c,a);for(i=f;i>f-e+r;i--)Gi(c,i-1)}else if(r>e)for(i=f-e;i>s;i--)a=i+r-1,(u=i+e-1)in c?c[a]=c[u]:Gi(c,a);for(i=0;i<r;i++)c[i+s]=arguments[i+2];return zi(c,f-e+r),o}});var Ki=function(t,n){return{id:"customId_".concat(n)}};Object.assign(t.fn.bootstrapTable.defaults,{reorderableRows:!1,onDragStyle:null,onDropStyle:null,onDragClass:"reorder-rows-on-drag-class",dragHandle:">tbody>tr>td:not(.bs-checkbox)",useRowAttrFunc:!1,onReorderRowsDrag:function(t){return!1},onReorderRowsDrop:function(t){return!1},onReorderRow:function(t){return!1},onDragStop:function(){},onAllowDrop:function(){return!0}}),Object.assign(t.fn.bootstrapTable.events,{"reorder-row.bs.table":"onReorderRow"}),t.BootstrapTable=function(i){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&o(t,n)}(p,i);var a,f,s,l=u(p);function p(){return n(this,p),l.apply(this,arguments)}return a=p,f=[{key:"init",value:function(){for(var t,n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if(this.options.reorderableRows){this.options.useRowAttrFunc&&(this.options.rowAttributes=Ki);var u=this.options.onPostBody;this.options.onPostBody=function(){setTimeout((function(){n.makeRowsReorderable(),u.call(n.options,n.options.data)}),1)},(t=c(e(p.prototype),"init",this)).call.apply(t,[this].concat(o))}else{var a;(a=c(e(p.prototype),"init",this)).call.apply(a,[this].concat(o))}}},{key:"makeRowsReorderable",value:function(){var t=this;this.$el.tableDnD({onDragStyle:this.options.onDragStyle,onDropStyle:this.options.onDropStyle,onDragClass:this.options.onDragClass,onAllowDrop:function(n,r){return t.onAllowDrop(n,r)},onDragStop:function(n,r){return t.onDragStop(n,r)},onDragStart:function(n,r){return t.onDropStart(n,r)},onDrop:function(n,r){return t.onDrop(n,r)},dragHandle:this.options.dragHandle})}},{key:"onDropStart",value:function(n,r){this.$draggingTd=t(r).css("cursor","move"),this.draggingIndex=t(this.$draggingTd.parent()).data("index"),this.options.onReorderRowsDrag(this.data[this.draggingIndex])}},{key:"onDragStop",value:function(n,r){var e=t(r).data("index"),o=this.data[e];this.options.onDragStop(n,o,r)}},{key:"onAllowDrop",value:function(n,r){var e=t(r).data("index"),o=t(n).data("index"),i=this.data[e],u=this.data[o];return this.options.onAllowDrop(u,i,n,r)}},{key:"onDrop",value:function(n){this.$draggingTd.css("cursor","");for(var r=[],e=0;e<n.tBodies[0].rows.length;e++){var o=t(n.tBodies[0].rows[e]);r.push(this.data[o.data("index")]),o.data("index",e)}var i=this.data[this.draggingIndex],u=r.indexOf(this.data[this.draggingIndex]),a=this.data[u],c=this.options.data.indexOf(this.data[u]);this.options.data.splice(this.options.data.indexOf(i),1),this.options.data.splice(c,0,i),this.initSearch(),this.options.onReorderRowsDrop(a),this.trigger("reorder-row",r,i,a)}},{key:"initSearch",value:function(){this.ignoreInitSort=!0,c(e(p.prototype),"initSearch",this).call(this)}},{key:"initSort",value:function(){this.ignoreInitSort?this.ignoreInitSort=!1:c(e(p.prototype),"initSort",this).call(this)}}],f&&r(a.prototype,f),s&&r(a,s),Object.defineProperty(a,"prototype",{writable:!1}),p}(t.BootstrapTable)}));