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) • 20 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.22.2
* @homepage https://bootstrap-table.com
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
* @license MIT
*/
!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){var n=function(t,n){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:String(n)}function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t,n){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},i(t,n)}function c(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 e,r=o(t);if(n){var i=o(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return c(this,e)}}function a(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=o(t)););return t}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,e){var r=a(t,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(arguments.length<3?t:e):o.value}},s.apply(this,arguments)}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=function(t){return t&&t.Math===Math&&t},p=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof f&&f)||l("object"==typeof f&&f)||function(){return this}()||Function("return this")(),d={},b=function(t){try{return!!t()}catch(t){return!0}},h=!b((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),y=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),v=y,g=Function.prototype.call,m=v?g.bind(g):function(){return g.apply(g,arguments)},w={},O={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,S=j&&!O.call({1:2},1);w.f=S?function(t){var n=j(this,t);return!!n&&n.enumerable}:O;var P,T,E=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},A=y,D=Function.prototype,k=D.call,C=A&&D.bind.bind(k,k),_=A?C:function(t){return function(){return k.apply(t,arguments)}},x=_,I=x({}.toString),R=x("".slice),F=function(t){return R(I(t),8,-1)},M=b,L=F,z=Object,B=_("".split),N=M((function(){return!z("z").propertyIsEnumerable(0)}))?function(t){return"String"===L(t)?B(t,""):z(t)}:z,G=function(t){return null==t},W=G,q=TypeError,H=function(t){if(W(t))throw new q("Can't call method on "+t);return t},U=N,$=H,X=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,Y=Q.IS_HTMLDDA?function(t){return"function"==typeof t||t===V}:function(t){return"function"==typeof t},J=Y,Z=Q.all,tt=Q.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:J(t)||t===Z}:function(t){return"object"==typeof t?null!==t:J(t)},nt=p,et=Y,rt=function(t){return et(t)?t:void 0},ot=function(t,n){return arguments.length<2?rt(nt[t]):nt[t]&&nt[t][n]},it=_({}.isPrototypeOf),ct=p,ut="undefined"!=typeof navigator&&String(navigator.userAgent)||"",at=ct.process,st=ct.Deno,ft=at&&at.versions||st&&st.version,lt=ft&&ft.v8;lt&&(T=(P=lt.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!T&&ut&&(!(P=ut.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=ut.match(/Chrome\/(\d+)/))&&(T=+P[1]);var pt=T,dt=b,bt=p.String,ht=!!Object.getOwnPropertySymbols&&!dt((function(){var t=Symbol("symbol detection");return!bt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pt&&pt<41})),yt=ht&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=ot,gt=Y,mt=it,wt=Object,Ot=yt?function(t){return"symbol"==typeof t}:function(t){var n=vt("Symbol");return gt(n)&&mt(n.prototype,wt(t))},jt=String,St=Y,Pt=function(t){try{return jt(t)}catch(t){return"Object"}},Tt=TypeError,Et=function(t){if(St(t))return t;throw new Tt(Pt(t)+" is not a function")},At=Et,Dt=G,kt=m,Ct=Y,_t=tt,xt=TypeError,It={exports:{}},Rt=p,Ft=Object.defineProperty,Mt=function(t,n){try{Ft(Rt,t,{value:n,configurable:!0,writable:!0})}catch(e){Rt[t]=n}return n},Lt=Mt,zt="__core-js_shared__",Bt=p[zt]||Lt(zt,{}),Nt=Bt;(It.exports=function(t,n){return Nt[t]||(Nt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt=It.exports,Wt=H,qt=Object,Ht=function(t){return qt(Wt(t))},Ut=Ht,$t=_({}.hasOwnProperty),Xt=Object.hasOwn||function(t,n){return $t(Ut(t),n)},Kt=_,Qt=0,Vt=Math.random(),Yt=Kt(1..toString),Jt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Yt(++Qt+Vt,36)},Zt=Gt,tn=Xt,nn=Jt,en=ht,rn=yt,on=p.Symbol,cn=Zt("wks"),un=rn?on.for||on:on&&on.withoutSetter||nn,an=function(t){return tn(cn,t)||(cn[t]=en&&tn(on,t)?on[t]:un("Symbol."+t)),cn[t]},sn=m,fn=tt,ln=Ot,pn=function(t,n){var e=t[n];return Dt(e)?void 0:At(e)},dn=function(t,n){var e,r;if("string"===n&&Ct(e=t.toString)&&!_t(r=kt(e,t)))return r;if(Ct(e=t.valueOf)&&!_t(r=kt(e,t)))return r;if("string"!==n&&Ct(e=t.toString)&&!_t(r=kt(e,t)))return r;throw new xt("Can't convert object to primitive value")},bn=TypeError,hn=an("toPrimitive"),yn=function(t,n){if(!fn(t)||ln(t))return t;var e,r=pn(t,hn);if(r){if(void 0===n&&(n="default"),e=sn(r,t,n),!fn(e)||ln(e))return e;throw new bn("Can't convert object to primitive value")}return void 0===n&&(n="number"),dn(t,n)},vn=Ot,gn=function(t){var n=yn(t,"string");return vn(n)?n:n+""},mn=tt,wn=p.document,On=mn(wn)&&mn(wn.createElement),jn=function(t){return On?wn.createElement(t):{}},Sn=jn,Pn=!h&&!b((function(){return 7!==Object.defineProperty(Sn("div"),"a",{get:function(){return 7}}).a})),Tn=h,En=m,An=w,Dn=E,kn=X,Cn=gn,_n=Xt,xn=Pn,In=Object.getOwnPropertyDescriptor;d.f=Tn?In:function(t,n){if(t=kn(t),n=Cn(n),xn)try{return In(t,n)}catch(t){}if(_n(t,n))return Dn(!En(An.f,t,n),t[n])};var Rn={},Fn=h&&b((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Mn=tt,Ln=String,zn=TypeError,Bn=function(t){if(Mn(t))return t;throw new zn(Ln(t)+" is not an object")},Nn=h,Gn=Pn,Wn=Fn,qn=Bn,Hn=gn,Un=TypeError,$n=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,Kn="enumerable",Qn="configurable",Vn="writable";Rn.f=Nn?Wn?function(t,n,e){if(qn(t),n=Hn(n),qn(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Vn in e&&!e.writable){var r=Xn(t,n);r&&r.writable&&(t[n]=e.value,e={configurable:Qn in e?e.configurable:r.configurable,enumerable:Kn in e?e.enumerable:r.enumerable,writable:!1})}return $n(t,n,e)}:$n:function(t,n,e){if(qn(t),n=Hn(n),qn(e),Gn)try{return $n(t,n,e)}catch(t){}if("get"in e||"set"in e)throw new Un("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Yn=Rn,Jn=E,Zn=h?function(t,n,e){return Yn.f(t,n,Jn(1,e))}:function(t,n,e){return t[n]=e,t},te={exports:{}},ne=h,ee=Xt,re=Function.prototype,oe=ne&&Object.getOwnPropertyDescriptor,ie=ee(re,"name"),ce={EXISTS:ie,PROPER:ie&&"something"===function(){}.name,CONFIGURABLE:ie&&(!ne||ne&&oe(re,"name").configurable)},ue=Y,ae=Bt,se=_(Function.toString);ue(ae.inspectSource)||(ae.inspectSource=function(t){return se(t)});var fe,le,pe,de=ae.inspectSource,be=Y,he=p.WeakMap,ye=be(he)&&/native code/.test(String(he)),ve=Jt,ge=Gt("keys"),me=function(t){return ge[t]||(ge[t]=ve(t))},we={},Oe=ye,je=p,Se=tt,Pe=Zn,Te=Xt,Ee=Bt,Ae=me,De=we,ke="Object already initialized",Ce=je.TypeError,_e=je.WeakMap;if(Oe||Ee.state){var xe=Ee.state||(Ee.state=new _e);xe.get=xe.get,xe.has=xe.has,xe.set=xe.set,fe=function(t,n){if(xe.has(t))throw new Ce(ke);return n.facade=t,xe.set(t,n),n},le=function(t){return xe.get(t)||{}},pe=function(t){return xe.has(t)}}else{var Ie=Ae("state");De[Ie]=!0,fe=function(t,n){if(Te(t,Ie))throw new Ce(ke);return n.facade=t,Pe(t,Ie,n),n},le=function(t){return Te(t,Ie)?t[Ie]:{}},pe=function(t){return Te(t,Ie)}}var Re={set:fe,get:le,has:pe,enforce:function(t){return pe(t)?le(t):fe(t,{})},getterFor:function(t){return function(n){var e;if(!Se(n)||(e=le(n)).type!==t)throw new Ce("Incompatible receiver, "+t+" required");return e}}},Fe=_,Me=b,Le=Y,ze=Xt,Be=h,Ne=ce.CONFIGURABLE,Ge=de,We=Re.enforce,qe=Re.get,He=String,Ue=Object.defineProperty,$e=Fe("".slice),Xe=Fe("".replace),Ke=Fe([].join),Qe=Be&&!Me((function(){return 8!==Ue((function(){}),"length",{value:8}).length})),Ve=String(String).split("String"),Ye=te.exports=function(t,n,e){"Symbol("===$e(He(n),0,7)&&(n="["+Xe(He(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!ze(t,"name")||Ne&&t.name!==n)&&(Be?Ue(t,"name",{value:n,configurable:!0}):t.name=n),Qe&&e&&ze(e,"arity")&&t.length!==e.arity&&Ue(t,"length",{value:e.arity});try{e&&ze(e,"constructor")&&e.constructor?Be&&Ue(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=We(t);return ze(r,"source")||(r.source=Ke(Ve,"string"==typeof n?n:"")),t};Function.prototype.toString=Ye((function(){return Le(this)&&qe(this).source||Ge(this)}),"toString");var Je=te.exports,Ze=Y,tr=Rn,nr=Je,er=Mt,rr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(Ze(e)&&nr(e,i,r),r.global)o?t[n]=e:er(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:tr.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},or={},ir=Math.ceil,cr=Math.floor,ur=Math.trunc||function(t){var n=+t;return(n>0?cr:ir)(n)},ar=function(t){var n=+t;return n!=n||0===n?0:ur(n)},sr=ar,fr=Math.max,lr=Math.min,pr=ar,dr=Math.min,br=function(t){return t>0?dr(pr(t),9007199254740991):0},hr=function(t){return br(t.length)},yr=X,vr=function(t,n){var e=sr(t);return e<0?fr(e+n,0):lr(e,n)},gr=hr,mr=function(t){return function(n,e,r){var o,i=yr(n),c=gr(i),u=vr(r,c);if(t&&e!=e){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},wr={includes:mr(!0),indexOf:mr(!1)},Or=Xt,jr=X,Sr=wr.indexOf,Pr=we,Tr=_([].push),Er=function(t,n){var e,r=jr(t),o=0,i=[];for(e in r)!Or(Pr,e)&&Or(r,e)&&Tr(i,e);for(;n.length>o;)Or(r,e=n[o++])&&(~Sr(i,e)||Tr(i,e));return i},Ar=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dr=Er,kr=Ar.concat("length","prototype");or.f=Object.getOwnPropertyNames||function(t){return Dr(t,kr)};var Cr={};Cr.f=Object.getOwnPropertySymbols;var _r=ot,xr=or,Ir=Cr,Rr=Bn,Fr=_([].concat),Mr=_r("Reflect","ownKeys")||function(t){var n=xr.f(Rr(t)),e=Ir.f;return e?Fr(n,e(t)):n},Lr=Xt,zr=Mr,Br=d,Nr=Rn,Gr=b,Wr=Y,qr=/#|\.prototype\./,Hr=function(t,n){var e=$r[Ur(t)];return e===Kr||e!==Xr&&(Wr(n)?Gr(n):!!n)},Ur=Hr.normalize=function(t){return String(t).replace(qr,".").toLowerCase()},$r=Hr.data={},Xr=Hr.NATIVE="N",Kr=Hr.POLYFILL="P",Qr=Hr,Vr=p,Yr=d.f,Jr=Zn,Zr=rr,to=Mt,no=function(t,n,e){for(var r=zr(n),o=Nr.f,i=Br.f,c=0;c<r.length;c++){var u=r[c];Lr(t,u)||e&&Lr(e,u)||o(t,u,i(n,u))}},eo=Qr,ro=function(t,n){var e,r,o,i,c,u=t.target,a=t.global,s=t.stat;if(e=a?Vr:s?Vr[u]||to(u,{}):(Vr[u]||{}).prototype)for(r in n){if(i=n[r],o=t.dontCallGetSet?(c=Yr(e,r))&&c.value:e[r],!eo(a?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;no(i,o)}(t.sham||o&&o.sham)&&Jr(i,"sham",!0),Zr(e,r,i,t)}},oo=F,io=_,co=function(t){if("Function"===oo(t))return io(t)},uo=Et,ao=y,so=co(co.bind),fo=F,lo=Array.isArray||function(t){return"Array"===fo(t)},po={};po[an("toStringTag")]="z";var bo="[object z]"===String(po),ho=bo,yo=Y,vo=F,go=an("toStringTag"),mo=Object,wo="Arguments"===vo(function(){return arguments}()),Oo=ho?vo:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=mo(t),go))?e:wo?vo(n):"Object"===(r=vo(n))&&yo(n.callee)?"Arguments":r},jo=_,So=b,Po=Y,To=Oo,Eo=de,Ao=function(){},Do=[],ko=ot("Reflect","construct"),Co=/^\s*(?:class|function)\b/,_o=jo(Co.exec),xo=!Co.test(Ao),Io=function(t){if(!Po(t))return!1;try{return ko(Ao,Do,t),!0}catch(t){return!1}},Ro=function(t){if(!Po(t))return!1;switch(To(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return xo||!!_o(Co,Eo(t))}catch(t){return!0}};Ro.sham=!0;var Fo=!ko||So((function(){var t;return Io(Io.call)||!Io(Object)||!Io((function(){t=!0}))||t}))?Ro:Io,Mo=lo,Lo=Fo,zo=tt,Bo=an("species"),No=Array,Go=function(t){var n;return Mo(t)&&(n=t.constructor,(Lo(n)&&(n===No||Mo(n.prototype))||zo(n)&&null===(n=n[Bo]))&&(n=void 0)),void 0===n?No:n},Wo=function(t,n){return uo(t),void 0===n?t:ao?so(t,n):function(){return t.apply(n,arguments)}},qo=N,Ho=Ht,Uo=hr,$o=function(t,n){return new(Go(t))(0===n?0:n)},Xo=_([].push),Ko=function(t){var n=1===t,e=2===t,r=3===t,o=4===t,i=6===t,c=7===t,u=5===t||i;return function(a,s,f,l){for(var p,d,b=Ho(a),h=qo(b),y=Uo(h),v=Wo(s,f),g=0,m=l||$o,w=n?m(a,y):e||c?m(a,0):void 0;y>g;g++)if((u||g in h)&&(d=v(p=h[g],g,b),t))if(n)w[g]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:Xo(w,p)}else switch(t){case 4:return!1;case 7:Xo(w,p)}return i?-1:r||o?o:w}},Qo={forEach:Ko(0),map:Ko(1),filter:Ko(2),some:Ko(3),every:Ko(4),find:Ko(5),findIndex:Ko(6),filterReject:Ko(7)},Vo={},Yo=Er,Jo=Ar,Zo=Object.keys||function(t){return Yo(t,Jo)},ti=h,ni=Fn,ei=Rn,ri=Bn,oi=X,ii=Zo;Vo.f=ti&&!ni?Object.defineProperties:function(t,n){ri(t);for(var e,r=oi(n),o=ii(n),i=o.length,c=0;i>c;)ei.f(t,e=o[c++],r[e]);return t};var ci,ui=ot("document","documentElement"),ai=Bn,si=Vo,fi=Ar,li=we,pi=ui,di=jn,bi=me("IE_PROTO"),hi=function(){},yi=function(t){return"<script>"+t+"</"+"script>"},vi=function(t){t.write(yi("")),t.close();var n=t.parentWindow.Object;return t=null,n},gi=function(){try{ci=new ActiveXObject("htmlfile")}catch(t){}var t,n;gi="undefined"!=typeof document?document.domain&&ci?vi(ci):((n=di("iframe")).style.display="none",pi.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(yi("document.F=Object")),t.close(),t.F):vi(ci);for(var e=fi.length;e--;)delete gi.prototype[fi[e]];return gi()};li[bi]=!0;var mi=an,wi=Object.create||function(t,n){var e;return null!==t?(hi.prototype=ai(t),e=new hi,hi.prototype=null,e[bi]=t):e=gi(),void 0===n?e:si.f(e,n)},Oi=Rn.f,ji=mi("unscopables"),Si=Array.prototype;void 0===Si[ji]&&Oi(Si,ji,{configurable:!0,value:wi(null)});var Pi=function(t){Si[ji][t]=!0},Ti=ro,Ei=Qo.find,Ai=Pi,Di="find",ki=!0;Di in[]&&Array(1).find((function(){ki=!1})),Ti({target:"Array",proto:!0,forced:ki},{find:function(t){return Ei(this,t,arguments.length>1?arguments[1]:void 0)}}),Ai(Di);var Ci=Oo,_i=bo?{}.toString:function(){return"[object "+Ci(this)+"]"};bo||rr(Object.prototype,"toString",_i,{unsafe:!0});var xi=wr.includes,Ii=Pi;ro({target:"Array",proto:!0,forced:b((function(){return!Array(1).includes()}))},{includes:function(t){return xi(this,t,arguments.length>1?arguments[1]:void 0)}}),Ii("includes");var Ri=tt,Fi=F,Mi=an("match"),Li=function(t){var n;return Ri(t)&&(void 0!==(n=t[Mi])?!!n:"RegExp"===Fi(t))},zi=TypeError,Bi=Oo,Ni=String,Gi=an("match"),Wi=ro,qi=function(t){if(Li(t))throw new zi("The method doesn't accept regular expressions");return t},Hi=H,Ui=function(t){if("Symbol"===Bi(t))throw new TypeError("Cannot convert a Symbol value to a string");return Ni(t)},$i=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[Gi]=!1,"/./"[t](n)}catch(t){}}return!1},Xi=_("".indexOf);Wi({target:"String",proto:!0,forced:!$i("includes")},{includes:function(t){return!!~Xi(Ui(Hi(this)),Ui(qi(t)),arguments.length>1?arguments[1]:void 0)}}),t.fn.bootstrapTable.utils.extend(t.fn.bootstrapTable.defaults,{classes:"table is-bordered is-hoverable",buttonsPrefix:"",buttonsClass:"button"}),t.fn.bootstrapTable.theme="bulma",t.BootstrapTable=function(n){!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&&i(t,n)}(p,n);var c,a,f,l=u(p);function p(){return e(this,p),l.apply(this,arguments)}return c=p,(a=[{key:"initConstants",value:function(){s(o(p.prototype),"initConstants",this).call(this),this.constants.classes.buttonsGroup="buttons has-addons",this.constants.classes.buttonsDropdown="button dropdown is-right",this.constants.classes.input="input",this.constants.classes.paginationDropdown="ui dropdown",this.constants.classes.dropup="is-up",this.constants.classes.dropdownActive="is-active",this.constants.classes.paginationActive="is-current",this.constants.classes.buttonActive="is-active",this.constants.html.toolbarDropdown=['<div class="dropdown-menu"><div class="dropdown-content">',"</div></div>"],this.constants.html.toolbarDropdownItem='<label class="dropdown-item dropdown-item-marker">%s</label>',this.constants.html.toolbarDropdownSeparator='<li class="dropdown-divider"></li>',this.constants.html.pageDropdown=['<div class="dropdown-menu"><div class="dropdown-content">',"</div></div>"],this.constants.html.pageDropdownItem='<a class="dropdown-item %s" href="#">%s</a>',this.constants.html.dropdownCaret='<span class="icon is-small"><i class="fas fa-angle-down" aria-hidden="true"></i></span>',this.constants.html.pagination=['<ul class="pagination%s">',"</ul>"],this.constants.html.paginationItem='<li><a class="page-item pagination-link%s" aria-label="%s" href="#">%s</a></li>',this.constants.html.searchInput='<p class="control"><input class="%s input-%s" type="search" placeholder="%s"></p>',this.constants.html.inputGroup='<div class="field has-addons has-addons-right">%s%s</div>',this.constants.html.searchButton='<p class="control"><button class="%s" type="button" name="search" title="%s">%s %s</button></p>',this.constants.html.searchClearButton='<p class="control"><button class="%s" type="button" name="clearSearch" title="%s">%s %s</button></p>'}},{key:"initToolbar",value:function(){s(o(p.prototype),"initToolbar",this).call(this),this.handleToolbar()}},{key:"handleToolbar",value:function(){this.$toolbar.find(".dropdown").length&&this._initDropdown()}},{key:"initPagination",value:function(){s(o(p.prototype),"initPagination",this).call(this),this.options.pagination&&this.paginationParts.includes("pageSize")&&this._initDropdown()}},{key:"_initDropdown",value:function(){var n=this.$container.find(".dropdown:not(.is-hoverable)");n.off("click").on("click",(function(e){var r=t(e.currentTarget);e.stopPropagation(),n.not(r).removeClass("is-active"),r.toggleClass("is-active")})),t(document).off("click.bs.dropdown.bulma").on("click.bs.dropdown.bulma",(function(){n.removeClass("is-active")}))}}])&&r(c.prototype,a),f&&r(c,f),Object.defineProperty(c,"prototype",{writable:!1}),p}(t.BootstrapTable)}));