UNPKG

19.6 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.18.1
5 * @homepage https://bootstrap-table.com
6 * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
7 * @license MIT
8 */
9
10!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},c=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),u={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,s={f:a&&!u.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:u},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,p=function(t){return l.call(t).slice(8,-1)},h="".split,d=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,y=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return d(y(t))},v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!v(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!v(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!v(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!v(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,S=function(t,e){return m.call(t,e)},w=o.document,O=v(w)&&v(w.createElement),j=function(t){return O?w.createElement(t):{}},T=!c&&!i((function(){return 7!=Object.defineProperty(j("div"),"a",{get:function(){return 7}}).a})),B=Object.getOwnPropertyDescriptor,x={f:c?B:function(t,e){if(t=g(t),e=b(e,!0),T)try{return B(t,e)}catch(t){}if(S(t,e))return f(!s.f.call(t,e),t[e])}},G=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},E=Object.defineProperty,k={f:c?E:function(t,e,r){if(G(t),e=b(e,!0),G(r),T)try{return E(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},A=c?function(t,e,r){return k.f(t,e,f(1,r))}:function(t,e,r){return t[e]=r,t},L=function(t,e){try{A(o,t,e)}catch(r){o[t]=e}return e},P="__core-js_shared__",_=o[P]||L(P,{}),C=Function.toString;"function"!=typeof _.inspectSource&&(_.inspectSource=function(t){return C.call(t)});var F,M,V,I=_.inspectSource,$=o.WeakMap,R="function"==typeof $&&/native code/.test(I($)),N=r((function(t){(t.exports=function(t,e){return _[t]||(_[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),D=0,q=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++D+q).toString(36)},z=N("keys"),W=function(t){return z[t]||(z[t]=H(t))},K={},Q=o.WeakMap;if(R){var X=new Q,Y=X.get,J=X.has,U=X.set;F=function(t,e){return U.call(X,t,e),e},M=function(t){return Y.call(X,t)||{}},V=function(t){return J.call(X,t)}}else{var Z=W("state");K[Z]=!0,F=function(t,e){return A(t,Z,e),e},M=function(t){return S(t,Z)?t[Z]:{}},V=function(t){return S(t,Z)}}var tt,et,rt={set:F,get:M,has:V,enforce:function(t){return V(t)?M(t):F(t,{})},getterFor:function(t){return function(e){var r;if(!v(e)||(r=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},nt=r((function(t){var e=rt.get,r=rt.enforce,n=String(String).split("String");(t.exports=function(t,e,i,c){var u=!!c&&!!c.unsafe,a=!!c&&!!c.enumerable,s=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||A(i,"name",e),r(i).source=n.join("string"==typeof e?e:"")),t!==o?(u?!s&&t[e]&&(a=!0):delete t[e],a?t[e]=i:A(t,e,i)):a?t[e]=i:L(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||I(this)}))})),ot=o,it=function(t){return"function"==typeof t?t:void 0},ct=function(t,e){return arguments.length<2?it(ot[t])||it(o[t]):ot[t]&&ot[t][e]||o[t]&&o[t][e]},ut=Math.ceil,at=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?at:ut)(t)},ft=Math.min,lt=function(t){return t>0?ft(st(t),9007199254740991):0},pt=Math.max,ht=Math.min,dt=function(t,e){var r=st(t);return r<0?pt(r+e,0):ht(r,e)},yt=function(t){return function(e,r,n){var o,i=g(e),c=lt(i.length),u=dt(n,c);if(t&&r!=r){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},gt={includes:yt(!0),indexOf:yt(!1)}.indexOf,vt=function(t,e){var r,n=g(t),o=0,i=[];for(r in n)!S(K,r)&&S(n,r)&&i.push(r);for(;e.length>o;)S(n,r=e[o++])&&(~gt(i,r)||i.push(r));return i},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mt=bt.concat("length","prototype"),St={f:Object.getOwnPropertyNames||function(t){return vt(t,mt)}},wt={f:Object.getOwnPropertySymbols},Ot=ct("Reflect","ownKeys")||function(t){var e=St.f(G(t)),r=wt.f;return r?e.concat(r(t)):e},jt=function(t,e){for(var r=Ot(e),n=k.f,o=x.f,i=0;i<r.length;i++){var c=r[i];S(t,c)||n(t,c,o(e,c))}},Tt=/#|\.prototype\./,Bt=function(t,e){var r=Gt[xt(t)];return r==kt||r!=Et&&("function"==typeof e?i(e):!!e)},xt=Bt.normalize=function(t){return String(t).replace(Tt,".").toLowerCase()},Gt=Bt.data={},Et=Bt.NATIVE="N",kt=Bt.POLYFILL="P",At=Bt,Lt=x.f,Pt=function(t,e){var r,n,i,c,u,a=t.target,s=t.global,f=t.stat;if(r=s?o:f?o[a]||L(a,{}):(o[a]||{}).prototype)for(n in e){if(c=e[n],i=t.noTargetGet?(u=Lt(r,n))&&u.value:r[n],!At(s?n:a+(f?".":"#")+n,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;jt(c,i)}(t.sham||i&&i.sham)&&A(c,"sham",!0),nt(r,n,c,t)}},_t=Array.isArray||function(t){return"Array"==p(t)},Ct=function(t){return Object(y(t))},Ft=function(t,e,r){var n=b(e);n in t?k.f(t,n,f(0,r)):t[n]=r},Mt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Vt=Mt&&!Symbol.sham&&"symbol"==typeof Symbol(),It=N("wks"),$t=o.Symbol,Rt=Vt?$t:H,Nt=function(t){return S(It,t)||(Mt&&S($t,t)?It[t]=$t[t]:It[t]=Rt("Symbol."+t)),It[t]},Dt=Nt("species"),qt=function(t,e){var r;return _t(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!_t(r.prototype)?v(r)&&null===(r=r[Dt])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},Ht=ct("navigator","userAgent")||"",zt=o.process,Wt=zt&&zt.versions,Kt=Wt&&Wt.v8;Kt?et=(tt=Kt.split("."))[0]+tt[1]:Ht&&(!(tt=Ht.match(/Edge\/(\d+)/))||tt[1]>=74)&&(tt=Ht.match(/Chrome\/(\d+)/))&&(et=tt[1]);var Qt=et&&+et,Xt=Nt("species"),Yt=function(t){return Qt>=51||!i((function(){var e=[];return(e.constructor={})[Xt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Jt=Nt("isConcatSpreadable"),Ut=9007199254740991,Zt="Maximum allowed index exceeded",te=Qt>=51||!i((function(){var t=[];return t[Jt]=!1,t.concat()[0]!==t})),ee=Yt("concat"),re=function(t){if(!v(t))return!1;var e=t[Jt];return void 0!==e?!!e:_t(t)};Pt({target:"Array",proto:!0,forced:!te||!ee},{concat:function(t){var e,r,n,o,i,c=Ct(this),u=qt(c,0),a=0;for(e=-1,n=arguments.length;e<n;e++)if(re(i=-1===e?c:arguments[e])){if(a+(o=lt(i.length))>Ut)throw TypeError(Zt);for(r=0;r<o;r++,a++)r in i&&Ft(u,a,i[r])}else{if(a>=Ut)throw TypeError(Zt);Ft(u,a++,i)}return u.length=a,u}});var ne=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},oe=[].push,ie=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,c=5==t||i;return function(u,a,s,f){for(var l,p,h=Ct(u),y=d(h),g=function(t,e,r){if(ne(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}(a,s,3),v=lt(y.length),b=0,m=f||qt,S=e?m(u,v):r?m(u,0):void 0;v>b;b++)if((c||b in y)&&(p=g(l=y[b],b,h),t))if(e)S[b]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return b;case 2:oe.call(S,l)}else if(o)return!1;return i?-1:n||o?o:S}},ce={forEach:ie(0),map:ie(1),filter:ie(2),some:ie(3),every:ie(4),find:ie(5),findIndex:ie(6)},ue=ce.filter,ae=Yt("filter"),se=ae&&!i((function(){[].filter.call({length:-1,0:1},(function(t){throw t}))}));Pt({target:"Array",proto:!0,forced:!ae||!se},{filter:function(t){return ue(this,t,arguments.length>1?arguments[1]:void 0)}});var fe,le=Object.keys||function(t){return vt(t,bt)},pe=c?Object.defineProperties:function(t,e){G(t);for(var r,n=le(e),o=n.length,i=0;o>i;)k.f(t,r=n[i++],e[r]);return t},he=ct("document","documentElement"),de=W("IE_PROTO"),ye=function(){},ge=function(t){return"<script>"+t+"</"+"script>"},ve=function(){try{fe=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ve=fe?function(t){t.write(ge("")),t.close();var e=t.parentWindow.Object;return t=null,e}(fe):((e=j("iframe")).style.display="none",he.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ge("document.F=Object")),t.close(),t.F);for(var r=bt.length;r--;)delete ve.prototype[bt[r]];return ve()};K[de]=!0;var be=Object.create||function(t,e){var r;return null!==t?(ye.prototype=G(t),r=new ye,ye.prototype=null,r[de]=t):r=ve(),void 0===e?r:pe(r,e)},me=Nt("unscopables"),Se=Array.prototype;null==Se[me]&&k.f(Se,me,{configurable:!0,value:be(null)});var we,Oe=ce.find,je="find",Te=!0;je in[]&&Array(1).find((function(){Te=!1})),Pt({target:"Array",proto:!0,forced:Te},{find:function(t){return Oe(this,t,arguments.length>1?arguments[1]:void 0)}}),we=je,Se[me][we]=!0;var Be=function(t,e){var r=[][t];return!r||!i((function(){r.call(null,e||function(){throw 1},1)}))},xe=[].join,Ge=d!=Object,Ee=Be("join",",");Pt({target:"Array",proto:!0,forced:Ge||Ee},{join:function(t){return xe.call(g(this),void 0===t?",":t)}});var ke=Nt("species"),Ae=[].slice,Le=Math.max;Pt({target:"Array",proto:!0,forced:!Yt("slice")},{slice:function(t,e){var r,n,o,i=g(this),c=lt(i.length),u=dt(t,c),a=dt(void 0===e?c:e,c);if(_t(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!_t(r.prototype)?v(r)&&null===(r=r[ke])&&(r=void 0):r=void 0,r===Array||void 0===r))return Ae.call(i,u,a);for(n=new(void 0===r?Array:r)(Le(a-u,0)),o=0;u<a;u++,o++)u in i&&Ft(n,o,i[u]);return n.length=o,n}});var Pe=[],_e=Pe.sort,Ce=i((function(){Pe.sort(void 0)})),Fe=i((function(){Pe.sort(null)})),Me=Be("sort");Pt({target:"Array",proto:!0,forced:Ce||!Fe||Me},{sort:function(t){return void 0===t?_e.call(Ct(this)):_e.call(Ct(this),ne(t))}});var Ve=k.f,Ie=Function.prototype,$e=Ie.toString,Re=/^\s*function ([^ (]*)/,Ne="name";c&&!(Ne in Ie)&&Ve(Ie,Ne,{configurable:!0,get:function(){try{return $e.call(this).match(Re)[1]}catch(t){return""}}});var De=Object.assign,qe=Object.defineProperty,He=!De||i((function(){if(c&&1!==De({b:1},De(qe({},"a",{enumerable:!0,get:function(){qe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=De({},t)[r]||le(De({},e)).join("")!=n}))?function(t,e){for(var r=Ct(t),n=arguments.length,o=1,i=wt.f,u=s.f;n>o;)for(var a,f=d(arguments[o++]),l=i?le(f).concat(i(f)):le(f),p=l.length,h=0;p>h;)a=l[h++],c&&!u.call(f,a)||(r[a]=f[a]);return r}:De;Pt({target:"Object",stat:!0,forced:Object.assign!==He},{assign:He});var ze,We=ce.forEach,Ke=Be("forEach")?function(t){return We(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;for(var Qe in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Xe=o[Qe],Ye=Xe&&Xe.prototype;if(Ye&&Ye.forEach!==Ke)try{A(Ye,"forEach",Ke)}catch(t){Ye.forEach=Ke}}function Je(t){return(Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ze(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function tr(t){return(tr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function er(t,e){return(er=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rr(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function nr(t,e,r){return(nr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=tr(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(r):o.value}})(t,e,r||t)}var or=function(t,e){var r={};return t.forEach((function(t){var n=e(t);r[n]=r[n]||[],r[n].push(t)})),r};t.extend(t.fn.bootstrapTable.defaults.icons,{collapseGroup:{bootstrap3:"glyphicon-chevron-up",materialize:"arrow_drop_down"}[t.fn.bootstrapTable.theme]||"fa-angle-up",expandGroup:{bootstrap3:"glyphicon-chevron-down",materialize:"arrow_drop_up"}[t.fn.bootstrapTable.theme]||"fa-angle-down"}),t.extend(t.fn.bootstrapTable.defaults,{groupBy:!1,groupByField:"",groupByFormatter:void 0,groupByToggle:!1,groupByShowToggleIcon:!1,groupByCollapsedGroups:[]});var ir=t.fn.bootstrapTable.utils,cr=t.fn.bootstrapTable.Constructor,ur=cr.prototype.initSort,ar=cr.prototype.initBody,sr=cr.prototype.updateSelected;cr.prototype.initSort=function(){for(var e=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];ur.apply(this,Array.prototype.slice.apply(n));var i=this;if(this.tableGroups=[],this.options.groupBy&&""!==this.options.groupByField){this.options.sortName!==this.options.groupByField&&(this.options.customSort?ir.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.options.data.sort((function(r,n){var o=e.getGroupByFields(),i=[],c=[];return t.each(o,(function(t,e){i.push(r[e]),c.push(n[e])})),r=i.join(),n=c.join(),r.localeCompare(n,void 0,{numeric:!0})})));var c=or(i.data,(function(r){var n=e.getGroupByFields(),o=[];return t.each(n,(function(t,e){o.push(r[e])})),o.join(", ")})),u=0;t.each(c,(function(t,r){e.tableGroups.push({id:u,name:t,data:r}),r.forEach((function(n){n._data||(n._data={}),e.isCollapsed(t,r)&&(n._class="hidden"),n._data["parent-index"]=u})),u++}))}},cr.prototype.initBody=function(){var e=this;ze=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];if(ar.apply(this,Array.prototype.slice.apply(n)),this.options.groupBy&&""!==this.options.groupByField){var i=this,c=!1,u=0;this.columns.forEach((function(t){t.checkbox?c=!0:t.visible&&(u+=1)})),this.options.detailView&&!this.options.cardView&&(u+=1),this.tableGroups.forEach((function(r){var n=[];n.push(ir.sprintf('<tr class="info groupBy %s" data-group-index="%s">',e.options.groupByToggle?"expanded":"",r.id)),i.options.detailView&&!i.options.cardView&&n.push('<td class="detail"></td>'),c&&n.push('<td class="bs-checkbox">','<input name="btSelectGroup" type="checkbox" />',"</td>");var o=r.name;void 0!==i.options.groupByFormatter&&(o=ir.calculateObjectValue(i.options,i.options.groupByFormatter,[r.name,r.id,r.data])),n.push("<td",ir.sprintf(' colspan="%s"',u),">",o);var a=e.options.icons.collapseGroup;e.isCollapsed(r.name,r.data)&&(a=e.options.icons.expandGroup),e.options.groupByToggle&&e.options.groupByShowToggleIcon&&n.push('<span class="float-right '.concat(e.options.iconsPrefix," ").concat(a,'"></span>')),n.push("</td></tr>"),i.$body.find("tr[data-parent-index=".concat(r.id,"]:first")).before(t(n.join("")))})),this.$selectGroup=[],this.$body.find('[name="btSelectGroup"]').each((function(){var e=t(this);i.$selectGroup.push({group:e,item:i.$selectItem.filter((function(){return t(this).closest("tr").data("parent-index")===e.closest("tr").data("group-index")}))})})),this.options.groupByToggle&&this.$container.off("click",".groupBy").on("click",".groupBy",(function(){var e=t(this),r=e.closest("tr").data("group-index"),n=i.$body.find("tr[data-parent-index=".concat(r,"]"));e.toggleClass("expanded collapsed"),e.find("span").toggleClass("".concat(i.options.icons.collapseGroup," ").concat(i.options.icons.expandGroup)),n.toggleClass("hidden"),n.each((function(e,r){return i.collapseRow(t(r).data("index"))}))})),this.$container.off("click",'[name="btSelectGroup"]').on("click",'[name="btSelectGroup"]',(function(e){e.stopImmediatePropagation();var r=t(this).prop("checked");i[r?"checkGroup":"uncheckGroup"](t(this).closest("tr").data("group-index"))}))}ze=!1,this.updateSelected()},cr.prototype.updateSelected=function(){if(!ze){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];sr.apply(this,Array.prototype.slice.apply(e)),this.options.groupBy&&""!==this.options.groupByField&&this.$selectGroup.forEach((function(t){var e=t.item.filter(":enabled").length===t.item.filter(":enabled").filter(":checked").length;t.group.prop("checked",e)}))}},cr.prototype.checkGroup=function(t){this.checkGroup_(t,!0)},cr.prototype.uncheckGroup=function(t){this.checkGroup_(t,!1)},cr.prototype.isCollapsed=function(e,r){if(this.options.groupByCollapsedGroups){var n=ir.calculateObjectValue(this,this.options.groupByCollapsedGroups,[e,r],!0);if(t.inArray(e,n)>-1)return!0}return!1},cr.prototype.checkGroup_=function(e,r){var n=this.getSelections();this.$selectItem.filter((function(){return t(this).closest("tr").data("parent-index")===e})).prop("checked",r),this.updateRows(),this.updateSelected();var o=this.getSelections();r?this.trigger("check-all",o,n):this.trigger("uncheck-all",o,n)},cr.prototype.getGroupByFields=function(){var e=this.options.groupByField;return t.isArray(this.options.groupByField)||(e=[this.options.groupByField]),e},t.BootstrapTable=function(e){function r(){return Ue(this,r),rr(this,tr(r).apply(this,arguments))}var n,o,i;return 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}}),e&&er(t,e)}(r,e),n=r,(o=[{key:"scrollTo",value:function(e){if(this.options.groupBy){var n={unit:"px",value:0};if("object"===Je(e)&&(n=Object.assign(n,e)),"rows"===n.unit){var o=0;return this.$body.find("> tr:not(.groupBy):lt(".concat(n.value,")")).each((function(e,r){o+=t(r).outerHeight(!0)})),this.$body.find("> tr:not(.groupBy):eq(".concat(n.value,")")).prevAll(".groupBy").each((function(e,r){o+=t(r).outerHeight(!0)})),void this.$tableBody.scrollTop(o)}}nr(tr(r.prototype),"scrollTo",this).call(this,e)}}])&&Ze(n.prototype,o),i&&Ze(n,i),r}(t.BootstrapTable)}));