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