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