UNPKG

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