UNPKG

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