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.20.2
5 * @homepage https://bootstrap-table.com
6 * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
7 * @license MIT
8 */
9
10!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 n=e(t);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function c(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)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 a(t){var e=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 n,r=i(t);if(e){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(this,arguments)}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p=function(t){return t&&t.Math==Math&&t},h=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof l&&l)||function(){return this}()||Function("return this")(),y={},b=function(t){try{return!!t()}catch(t){return!0}},v=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),g=d,m=Function.prototype.call,w=g?m.bind(m):function(){return m.apply(m,arguments)},O={},j={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,R=S&&!j.call({1:2},1);O.f=R?function(t){var e=S(this,t);return!!e&&e.enumerable}:j;var P,T,A=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},E=d,x=Function.prototype,I=x.bind,k=x.call,F=E&&I.bind(k,k),_=E?function(t){return t&&F(t)}:function(t){return t&&function(){return k.apply(t,arguments)}},C=_,M=C({}.toString),z=C("".slice),B=function(t){return z(M(t),8,-1)},D=_,L=b,N=B,G=h.Object,q=D("".split),W=L((function(){return!G("z").propertyIsEnumerable(0)}))?function(t){return"String"==N(t)?q(t,""):G(t)}:G,U=h.TypeError,$=function(t){if(null==t)throw U("Can't call method on "+t);return t},X=W,K=$,Q=function(t){return X(K(t))},V=function(t){return"function"==typeof t},Y=V,H=function(t){return"object"==typeof t?null!==t:Y(t)},J=h,Z=V,tt=function(t){return Z(t)?t:void 0},et=function(t,e){return arguments.length<2?tt(J[t]):J[t]&&J[t][e]},nt=_({}.isPrototypeOf),rt=h,ot=et("navigator","userAgent")||"",it=rt.process,ut=rt.Deno,ct=it&&it.versions||ut&&ut.version,at=ct&&ct.v8;at&&(T=(P=at.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!T&&ot&&(!(P=ot.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=ot.match(/Chrome\/(\d+)/))&&(T=+P[1]);var ft=T,st=ft,lt=b,pt=!!Object.getOwnPropertySymbols&&!lt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&st&&st<41})),ht=pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yt=et,bt=V,vt=nt,dt=ht,gt=h.Object,mt=dt?function(t){return"symbol"==typeof t}:function(t){var e=yt("Symbol");return bt(e)&&vt(e.prototype,gt(t))},wt=h.String,Ot=V,jt=function(t){try{return wt(t)}catch(t){return"Object"}},St=h.TypeError,Rt=function(t){if(Ot(t))return t;throw St(jt(t)+" is not a function")},Pt=Rt,Tt=w,At=V,Et=H,xt=h.TypeError,It={exports:{}},kt=h,Ft=Object.defineProperty,_t=function(t,e){try{Ft(kt,t,{value:e,configurable:!0,writable:!0})}catch(n){kt[t]=e}return e},Ct=_t,Mt="__core-js_shared__",zt=h[Mt]||Ct(Mt,{}),Bt=zt;(It.exports=function(t,e){return Bt[t]||(Bt[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 Dt=$,Lt=h.Object,Nt=function(t){return Lt(Dt(t))},Gt=Nt,qt=_({}.hasOwnProperty),Wt=Object.hasOwn||function(t,e){return qt(Gt(t),e)},Ut=_,$t=0,Xt=Math.random(),Kt=Ut(1..toString),Qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Kt(++$t+Xt,36)},Vt=h,Yt=It.exports,Ht=Wt,Jt=Qt,Zt=pt,te=ht,ee=Yt("wks"),ne=Vt.Symbol,re=ne&&ne.for,oe=te?ne:ne&&ne.withoutSetter||Jt,ie=function(t){if(!Ht(ee,t)||!Zt&&"string"!=typeof ee[t]){var e="Symbol."+t;Zt&&Ht(ne,t)?ee[t]=ne[t]:ee[t]=te&&re?re(e):oe(e)}return ee[t]},ue=w,ce=H,ae=mt,fe=function(t,e){var n=t[e];return null==n?void 0:Pt(n)},se=function(t,e){var n,r;if("string"===e&&At(n=t.toString)&&!Et(r=Tt(n,t)))return r;if(At(n=t.valueOf)&&!Et(r=Tt(n,t)))return r;if("string"!==e&&At(n=t.toString)&&!Et(r=Tt(n,t)))return r;throw xt("Can't convert object to primitive value")},le=ie,pe=h.TypeError,he=le("toPrimitive"),ye=function(t,e){if(!ce(t)||ae(t))return t;var n,r=fe(t,he);if(r){if(void 0===e&&(e="default"),n=ue(r,t,e),!ce(n)||ae(n))return n;throw pe("Can't convert object to primitive value")}return void 0===e&&(e="number"),se(t,e)},be=mt,ve=function(t){var e=ye(t,"string");return be(e)?e:e+""},de=H,ge=h.document,me=de(ge)&&de(ge.createElement),we=function(t){return me?ge.createElement(t):{}},Oe=we,je=!v&&!b((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Se=v,Re=w,Pe=O,Te=A,Ae=Q,Ee=ve,xe=Wt,Ie=je,ke=Object.getOwnPropertyDescriptor;y.f=Se?ke:function(t,e){if(t=Ae(t),e=Ee(e),Ie)try{return ke(t,e)}catch(t){}if(xe(t,e))return Te(!Re(Pe.f,t,e),t[e])};var Fe={},_e=v&&b((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ce=h,Me=H,ze=Ce.String,Be=Ce.TypeError,De=function(t){if(Me(t))return t;throw Be(ze(t)+" is not an object")},Le=v,Ne=je,Ge=_e,qe=De,We=ve,Ue=h.TypeError,$e=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,Ke="enumerable",Qe="configurable",Ve="writable";Fe.f=Le?Ge?function(t,e,n){if(qe(t),e=We(e),qe(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ve in n&&!n.writable){var r=Xe(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:Qe in n?n.configurable:r.configurable,enumerable:Ke in n?n.enumerable:r.enumerable,writable:!1})}return $e(t,e,n)}:$e:function(t,e,n){if(qe(t),e=We(e),qe(n),Ne)try{return $e(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ue("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ye=Fe,He=A,Je=v?function(t,e,n){return Ye.f(t,e,He(1,n))}:function(t,e,n){return t[e]=n,t},Ze={exports:{}},tn=v,en=Wt,nn=Function.prototype,rn=tn&&Object.getOwnPropertyDescriptor,on=en(nn,"name"),un={EXISTS:on,PROPER:on&&"something"===function(){}.name,CONFIGURABLE:on&&(!tn||tn&&rn(nn,"name").configurable)},cn=V,an=zt,fn=_(Function.toString);cn(an.inspectSource)||(an.inspectSource=function(t){return fn(t)});var sn,ln,pn,hn=an.inspectSource,yn=V,bn=hn,vn=h.WeakMap,dn=yn(vn)&&/native code/.test(bn(vn)),gn=It.exports,mn=Qt,wn=gn("keys"),On=function(t){return wn[t]||(wn[t]=mn(t))},jn={},Sn=dn,Rn=h,Pn=_,Tn=H,An=Je,En=Wt,xn=zt,In=On,kn=jn,Fn="Object already initialized",_n=Rn.TypeError,Cn=Rn.WeakMap;if(Sn||xn.state){var Mn=xn.state||(xn.state=new Cn),zn=Pn(Mn.get),Bn=Pn(Mn.has),Dn=Pn(Mn.set);sn=function(t,e){if(Bn(Mn,t))throw new _n(Fn);return e.facade=t,Dn(Mn,t,e),e},ln=function(t){return zn(Mn,t)||{}},pn=function(t){return Bn(Mn,t)}}else{var Ln=In("state");kn[Ln]=!0,sn=function(t,e){if(En(t,Ln))throw new _n(Fn);return e.facade=t,An(t,Ln,e),e},ln=function(t){return En(t,Ln)?t[Ln]:{}},pn=function(t){return En(t,Ln)}}var Nn={set:sn,get:ln,has:pn,enforce:function(t){return pn(t)?ln(t):sn(t,{})},getterFor:function(t){return function(e){var n;if(!Tn(e)||(n=ln(e)).type!==t)throw _n("Incompatible receiver, "+t+" required");return n}}},Gn=b,qn=V,Wn=Wt,Un=v,$n=un.CONFIGURABLE,Xn=hn,Kn=Nn.enforce,Qn=Nn.get,Vn=Object.defineProperty,Yn=Un&&!Gn((function(){return 8!==Vn((function(){}),"length",{value:8}).length})),Hn=String(String).split("String"),Jn=Ze.exports=function(t,e,n){if("Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Wn(t,"name")||$n&&t.name!==e)&&Vn(t,"name",{value:e,configurable:!0}),Yn&&n&&Wn(n,"arity")&&t.length!==n.arity&&Vn(t,"length",{value:n.arity}),n&&Wn(n,"constructor")&&n.constructor){if(Un)try{Vn(t,"prototype",{writable:!1})}catch(t){}}else t.prototype=void 0;var r=Kn(t);return Wn(r,"source")||(r.source=Hn.join("string"==typeof e?e:"")),t};Function.prototype.toString=Jn((function(){return qn(this)&&Qn(this).source||Xn(this)}),"toString");var Zn=h,tr=V,er=Je,nr=Ze.exports,rr=_t,or=function(t,e,n,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:e;return tr(n)&&nr(n,c,r),t===Zn?(i?t[e]=n:rr(e,n),t):(o?!u&&t[e]&&(i=!0):delete t[e],i?t[e]=n:er(t,e,n),t)},ir={},ur=Math.ceil,cr=Math.floor,ar=function(t){var e=+t;return e!=e||0===e?0:(e>0?cr:ur)(e)},fr=ar,sr=Math.max,lr=Math.min,pr=ar,hr=Math.min,yr=function(t){return t>0?hr(pr(t),9007199254740991):0},br=function(t){return yr(t.length)},vr=Q,dr=function(t,e){var n=fr(t);return n<0?sr(n+e,0):lr(n,e)},gr=br,mr=function(t){return function(e,n,r){var o,i=vr(e),u=gr(i),c=dr(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},wr={includes:mr(!0),indexOf:mr(!1)},Or=Wt,jr=Q,Sr=wr.indexOf,Rr=jn,Pr=_([].push),Tr=function(t,e){var n,r=jr(t),o=0,i=[];for(n in r)!Or(Rr,n)&&Or(r,n)&&Pr(i,n);for(;e.length>o;)Or(r,n=e[o++])&&(~Sr(i,n)||Pr(i,n));return i},Ar=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Er=Tr,xr=Ar.concat("length","prototype");ir.f=Object.getOwnPropertyNames||function(t){return Er(t,xr)};var Ir={};Ir.f=Object.getOwnPropertySymbols;var kr=et,Fr=ir,_r=Ir,Cr=De,Mr=_([].concat),zr=kr("Reflect","ownKeys")||function(t){var e=Fr.f(Cr(t)),n=_r.f;return n?Mr(e,n(t)):e},Br=Wt,Dr=zr,Lr=y,Nr=Fe,Gr=b,qr=V,Wr=/#|\.prototype\./,Ur=function(t,e){var n=Xr[$r(t)];return n==Qr||n!=Kr&&(qr(e)?Gr(e):!!e)},$r=Ur.normalize=function(t){return String(t).replace(Wr,".").toLowerCase()},Xr=Ur.data={},Kr=Ur.NATIVE="N",Qr=Ur.POLYFILL="P",Vr=Ur,Yr=h,Hr=y.f,Jr=Je,Zr=or,to=_t,eo=function(t,e,n){for(var r=Dr(e),o=Nr.f,i=Lr.f,u=0;u<r.length;u++){var c=r[u];Br(t,c)||n&&Br(n,c)||o(t,c,i(e,c))}},no=Vr,ro=function(t,e){var n,r,o,i,u,c=t.target,a=t.global,f=t.stat;if(n=a?Yr:f?Yr[c]||to(c,{}):(Yr[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=Hr(n,r))&&u.value:n[r],!no(a?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(t.sham||o&&o.sham)&&Jr(i,"sham",!0),Zr(n,r,i,t)}},oo=B,io=Array.isArray||function(t){return"Array"==oo(t)},uo=ve,co=Fe,ao=A,fo={};fo[ie("toStringTag")]="z";var so="[object z]"===String(fo),lo=h,po=so,ho=V,yo=B,bo=ie("toStringTag"),vo=lo.Object,go="Arguments"==yo(function(){return arguments}()),mo=po?yo:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=vo(t),bo))?n:go?yo(e):"Object"==(r=yo(e))&&ho(e.callee)?"Arguments":r},wo=_,Oo=b,jo=V,So=mo,Ro=hn,Po=function(){},To=[],Ao=et("Reflect","construct"),Eo=/^\s*(?:class|function)\b/,xo=wo(Eo.exec),Io=!Eo.exec(Po),ko=function(t){if(!jo(t))return!1;try{return Ao(Po,To,t),!0}catch(t){return!1}},Fo=function(t){if(!jo(t))return!1;switch(So(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Io||!!xo(Eo,Ro(t))}catch(t){return!0}};Fo.sham=!0;var _o=!Ao||Oo((function(){var t;return ko(ko.call)||!ko(Object)||!ko((function(){t=!0}))||t}))?Fo:ko,Co=h,Mo=io,zo=_o,Bo=H,Do=ie("species"),Lo=Co.Array,No=function(t){var e;return Mo(t)&&(e=t.constructor,(zo(e)&&(e===Lo||Mo(e.prototype))||Bo(e)&&null===(e=e[Do]))&&(e=void 0)),void 0===e?Lo:e},Go=function(t,e){return new(No(t))(0===e?0:e)},qo=b,Wo=ft,Uo=ie("species"),$o=ro,Xo=h,Ko=b,Qo=io,Vo=H,Yo=Nt,Ho=br,Jo=function(t,e,n){var r=uo(e);r in t?co.f(t,r,ao(0,n)):t[r]=n},Zo=Go,ti=function(t){return Wo>=51||!qo((function(){var e=[];return(e.constructor={})[Uo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ei=ft,ni=ie("isConcatSpreadable"),ri=9007199254740991,oi="Maximum allowed index exceeded",ii=Xo.TypeError,ui=ei>=51||!Ko((function(){var t=[];return t[ni]=!1,t.concat()[0]!==t})),ci=ti("concat"),ai=function(t){if(!Vo(t))return!1;var e=t[ni];return void 0!==e?!!e:Qo(t)};$o({target:"Array",proto:!0,arity:1,forced:!ui||!ci},{concat:function(t){var e,n,r,o,i,u=Yo(this),c=Zo(u,0),a=0;for(e=-1,r=arguments.length;e<r;e++)if(ai(i=-1===e?u:arguments[e])){if(a+(o=Ho(i))>ri)throw ii(oi);for(n=0;n<o;n++,a++)n in i&&Jo(c,a,i[n])}else{if(a>=ri)throw ii(oi);Jo(c,a++,i)}return c.length=a,c}});var fi=Tr,si=Ar,li=Object.keys||function(t){return fi(t,si)},pi=v,hi=_,yi=w,bi=b,vi=li,di=Ir,gi=O,mi=Nt,wi=W,Oi=Object.assign,ji=Object.defineProperty,Si=hi([].concat),Ri=!Oi||bi((function(){if(pi&&1!==Oi({b:1},Oi(ji({},"a",{enumerable:!0,get:function(){ji(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Oi({},t)[n]||vi(Oi({},e)).join("")!=r}))?function(t,e){for(var n=mi(t),r=arguments.length,o=1,i=di.f,u=gi.f;r>o;)for(var c,a=wi(arguments[o++]),f=i?Si(vi(a),i(a)):vi(a),s=f.length,l=0;s>l;)c=f[l++],pi&&!yi(u,a,c)||(n[c]=a[c]);return n}:Oi,Pi=Ri;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==Pi},{assign:Pi});var Ti=Rt,Ai=d,Ei=_(_.bind),xi=function(t,e){return Ti(t),void 0===e?t:Ai?Ei(t,e):function(){return t.apply(e,arguments)}},Ii=W,ki=Nt,Fi=br,_i=Go,Ci=_([].push),Mi=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=7==t,c=5==t||i;return function(a,f,s,l){for(var p,h,y=ki(a),b=Ii(y),v=xi(f,s),d=Fi(b),g=0,m=l||_i,w=e?m(a,d):n||u?m(a,0):void 0;d>g;g++)if((c||g in b)&&(h=v(p=b[g],g,y),t))if(e)w[g]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:Ci(w,p)}else switch(t){case 4:return!1;case 7:Ci(w,p)}return i?-1:r||o?o:w}},zi={forEach:Mi(0),map:Mi(1),filter:Mi(2),some:Mi(3),every:Mi(4),find:Mi(5),findIndex:Mi(6),filterReject:Mi(7)},Bi={},Di=v,Li=_e,Ni=Fe,Gi=De,qi=Q,Wi=li;Bi.f=Di&&!Li?Object.defineProperties:function(t,e){Gi(t);for(var n,r=qi(e),o=Wi(e),i=o.length,u=0;i>u;)Ni.f(t,n=o[u++],r[n]);return t};var Ui,$i=et("document","documentElement"),Xi=De,Ki=Bi,Qi=Ar,Vi=jn,Yi=$i,Hi=we,Ji=On("IE_PROTO"),Zi=function(){},tu=function(t){return"<script>"+t+"</"+"script>"},eu=function(t){t.write(tu("")),t.close();var e=t.parentWindow.Object;return t=null,e},nu=function(){try{Ui=new ActiveXObject("htmlfile")}catch(t){}var t,e;nu="undefined"!=typeof document?document.domain&&Ui?eu(Ui):((e=Hi("iframe")).style.display="none",Yi.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(tu("document.F=Object")),t.close(),t.F):eu(Ui);for(var n=Qi.length;n--;)delete nu.prototype[Qi[n]];return nu()};Vi[Ji]=!0;var ru=Object.create||function(t,e){var n;return null!==t?(Zi.prototype=Xi(t),n=new Zi,Zi.prototype=null,n[Ji]=t):n=nu(),void 0===e?n:Ki.f(n,e)},ou=Fe,iu=ie("unscopables"),uu=Array.prototype;null==uu[iu]&&ou.f(uu,iu,{configurable:!0,value:ru(null)});var cu=ro,au=zi.find,fu=function(t){uu[iu][t]=!0},su="find",lu=!0;su in[]&&Array(1).find((function(){lu=!1})),cu({target:"Array",proto:!0,forced:lu},{find:function(t){return au(this,t,arguments.length>1?arguments[1]:void 0)}}),fu(su);var pu=mo,hu=so?{}.toString:function(){return"[object "+pu(this)+"]"};so||or(Object.prototype,"toString",hu,{unsafe:!0});var yu=n.default.fn.bootstrapTable.utils;n.default.extend(n.default.fn.bootstrapTable.defaults,{autoRefresh:!1,showAutoRefresh:!0,autoRefreshInterval:60,autoRefreshSilent:!0,autoRefreshStatus:!0,autoRefreshFunction:null}),n.default.extend(n.default.fn.bootstrapTable.defaults.icons,{autoRefresh:{bootstrap3:"glyphicon-time icon-time",bootstrap5:"bi-clock",materialize:"access_time","bootstrap-table":"icon-clock"}[n.default.fn.bootstrapTable.theme]||"fa-clock"}),n.default.extend(n.default.fn.bootstrapTable.locales,{formatAutoRefresh:function(){return"Auto Refresh"}}),n.default.extend(n.default.fn.bootstrapTable.defaults,n.default.fn.bootstrapTable.locales),n.default.BootstrapTable=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(l,t);var e,n,c,f=a(l);function l(){return r(this,l),f.apply(this,arguments)}return e=l,n=[{key:"init",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=s(i(l.prototype),"init",this)).call.apply(t,[this].concat(n)),this.options.autoRefresh&&this.options.autoRefreshStatus&&this.setupRefreshInterval()}},{key:"initToolbar",value:function(){var t;this.options.autoRefresh&&(this.buttons=Object.assign(this.buttons,{autoRefresh:{html:'\n <button class="auto-refresh '.concat(this.constants.buttonsClass,"\n ").concat(this.options.autoRefreshStatus?" ".concat(this.constants.classes.buttonActive):"",'"\n type="button" name="autoRefresh" title="').concat(this.options.formatAutoRefresh(),'">\n ').concat(this.options.showButtonIcons?yu.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.autoRefresh):"","\n ").concat(this.options.showButtonText?this.options.formatAutoRefresh():"","\n </button>\n "),event:this.toggleAutoRefresh}}));for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=s(i(l.prototype),"initToolbar",this)).call.apply(t,[this].concat(n))}},{key:"toggleAutoRefresh",value:function(){this.options.autoRefresh&&(this.options.autoRefreshStatus?(clearInterval(this.options.autoRefreshFunction),this.$toolbar.find(">.columns .auto-refresh").removeClass(this.constants.classes.buttonActive)):(this.setupRefreshInterval(),this.$toolbar.find(">.columns .auto-refresh").addClass(this.constants.classes.buttonActive)),this.options.autoRefreshStatus=!this.options.autoRefreshStatus)}},{key:"destroy",value:function(){this.options.autoRefresh&&this.options.autoRefreshStatus&&clearInterval(this.options.autoRefreshFunction),s(i(l.prototype),"destroy",this).call(this)}},{key:"setupRefreshInterval",value:function(){var t=this;this.options.autoRefreshFunction=setInterval((function(){t.options.autoRefresh&&t.options.autoRefreshStatus&&t.refresh({silent:t.options.autoRefreshSilent})}),1e3*this.options.autoRefreshInterval)}}],n&&o(e.prototype,n),c&&o(e,c),Object.defineProperty(e,"prototype",{writable:!1}),l}(n.default.BootstrapTable)}));