Files
admin/public/assets/extensions/bootstrap-table/fixed-columns/bootstrap-table-fixed-columns.min.js
Husanjonazamov e0f1989655 classify admin
2026-02-24 12:52:01 +05:00

11 lines
24 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 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.20.0
* @homepage https://bootstrap-table.com
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
* @license MIT
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function f(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)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 e=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 n,i=o(t);if(e){var r=o(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return f(this,n)}}function a(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=a(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},s.apply(this,arguments)}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(t,e){return t(e={exports:{}},e.exports),e.exports}var h,p,y=function(t){return t&&t.Math==Math&&t},g=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof l&&l)||function(){return this}()||Function("return this")(),b=function(t){try{return!!t()}catch(t){return!0}},v=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),x=Function.prototype.call,w=m?x.bind(x):function(){return x.apply(x,arguments)},$={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,O={f:C&&!$.call({1:2},1)?function(t){var e=C(this,t);return!!e&&e.enumerable}:$},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},j=Function.prototype,R=j.bind,B=j.call,T=m&&R.bind(B,B),F=m?function(t){return t&&T(t)}:function(t){return t&&function(){return B.apply(t,arguments)}},k=F({}.toString),P=F("".slice),E=function(t){return P(k(t),8,-1)},A=g.Object,N=F("".split),H=b((function(){return!A("z").propertyIsEnumerable(0)}))?function(t){return"String"==E(t)?N(t,""):A(t)}:A,I=g.TypeError,L=function(t){if(null==t)throw I("Can't call method on "+t);return t},W=function(t){return H(L(t))},D=function(t){return"function"==typeof t},M=function(t){return"object"==typeof t?null!==t:D(t)},_=function(t){return D(t)?t:void 0},z=function(t,e){return arguments.length<2?_(g[t]):g[t]&&g[t][e]},X=F({}.isPrototypeOf),Y=z("navigator","userAgent")||"",G=g.process,q=g.Deno,V=G&&G.versions||q&&q.version,U=V&&V.v8;U&&(p=(h=U.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!p&&Y&&(!(h=Y.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=Y.match(/Chrome\/(\d+)/))&&(p=+h[1]);var K=p,Q=!!Object.getOwnPropertySymbols&&!b((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&K&&K<41})),Z=Q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=g.Object,tt=Z?function(t){return"symbol"==typeof t}:function(t){var e=z("Symbol");return D(e)&&X(e.prototype,J(t))},et=g.String,nt=g.TypeError,it=function(t){if(D(t))return t;throw nt(function(t){try{return et(t)}catch(t){return"Object"}}(t)+" is not a function")},rt=g.TypeError,ot=Object.defineProperty,ut=function(t,e){try{ot(g,t,{value:e,configurable:!0,writable:!0})}catch(n){g[t]=e}return e},ft="__core-js_shared__",ct=g[ft]||ut(ft,{}),at=d((function(t){(t.exports=function(t,e){return ct[t]||(ct[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),st=g.Object,lt=function(t){return st(L(t))},dt=F({}.hasOwnProperty),ht=Object.hasOwn||function(t,e){return dt(lt(t),e)},pt=0,yt=Math.random(),gt=F(1..toString),bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+gt(++pt+yt,36)},vt=at("wks"),mt=g.Symbol,xt=mt&&mt.for,wt=Z?mt:mt&&mt.withoutSetter||bt,$t=function(t){if(!ht(vt,t)||!Q&&"string"!=typeof vt[t]){var e="Symbol."+t;Q&&ht(mt,t)?vt[t]=mt[t]:vt[t]=Z&&xt?xt(e):wt(e)}return vt[t]},Ct=g.TypeError,Ot=$t("toPrimitive"),St=function(t,e){if(!M(t)||tt(t))return t;var n,i,r=null==(n=t[Ot])?void 0:it(n);if(r){if(void 0===e&&(e="default"),i=w(r,t,e),!M(i)||tt(i))return i;throw Ct("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,i;if("string"===e&&D(n=t.toString)&&!M(i=w(n,t)))return i;if(D(n=t.valueOf)&&!M(i=w(n,t)))return i;if("string"!==e&&D(n=t.toString)&&!M(i=w(n,t)))return i;throw rt("Can't convert object to primitive value")}(t,e)},jt=function(t){var e=St(t,"string");return tt(e)?e:e+""},Rt=g.document,Bt=M(Rt)&&M(Rt.createElement),Tt=function(t){return Bt?Rt.createElement(t):{}},Ft=!v&&!b((function(){return 7!=Object.defineProperty(Tt("div"),"a",{get:function(){return 7}}).a})),kt=Object.getOwnPropertyDescriptor,Pt={f:v?kt:function(t,e){if(t=W(t),e=jt(e),Ft)try{return kt(t,e)}catch(t){}if(ht(t,e))return S(!w(O.f,t,e),t[e])}},Et=v&&b((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),At=g.String,Nt=g.TypeError,Ht=function(t){if(M(t))return t;throw Nt(At(t)+" is not an object")},It=g.TypeError,Lt=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,Dt="enumerable",Mt="configurable",_t="writable",zt={f:v?Et?function(t,e,n){if(Ht(t),e=jt(e),Ht(n),"function"==typeof t&&"prototype"===e&&"value"in n&&_t in n&&!n.writable){var i=Wt(t,e);i&&i.writable&&(t[e]=n.value,n={configurable:Mt in n?n.configurable:i.configurable,enumerable:Dt in n?n.enumerable:i.enumerable,writable:!1})}return Lt(t,e,n)}:Lt:function(t,e,n){if(Ht(t),e=jt(e),Ht(n),Ft)try{return Lt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw It("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Xt=v?function(t,e,n){return zt.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},Yt=F(Function.toString);D(ct.inspectSource)||(ct.inspectSource=function(t){return Yt(t)});var Gt,qt,Vt,Ut=ct.inspectSource,Kt=g.WeakMap,Qt=D(Kt)&&/native code/.test(Ut(Kt)),Zt=at("keys"),Jt=function(t){return Zt[t]||(Zt[t]=bt(t))},te={},ee="Object already initialized",ne=g.TypeError,ie=g.WeakMap;if(Qt||ct.state){var re=ct.state||(ct.state=new ie),oe=F(re.get),ue=F(re.has),fe=F(re.set);Gt=function(t,e){if(ue(re,t))throw new ne(ee);return e.facade=t,fe(re,t,e),e},qt=function(t){return oe(re,t)||{}},Vt=function(t){return ue(re,t)}}else{var ce=Jt("state");te[ce]=!0,Gt=function(t,e){if(ht(t,ce))throw new ne(ee);return e.facade=t,Xt(t,ce,e),e},qt=function(t){return ht(t,ce)?t[ce]:{}},Vt=function(t){return ht(t,ce)}}var ae={set:Gt,get:qt,has:Vt,enforce:function(t){return Vt(t)?qt(t):Gt(t,{})},getterFor:function(t){return function(e){var n;if(!M(e)||(n=qt(e)).type!==t)throw ne("Incompatible receiver, "+t+" required");return n}}},se=Function.prototype,le=v&&Object.getOwnPropertyDescriptor,de=ht(se,"name"),he={EXISTS:de,PROPER:de&&"something"===function(){}.name,CONFIGURABLE:de&&(!v||v&&le(se,"name").configurable)},pe=d((function(t){var e=he.CONFIGURABLE,n=ae.get,i=ae.enforce,r=String(String).split("String");(t.exports=function(t,n,o,u){var f,c=!!u&&!!u.unsafe,a=!!u&&!!u.enumerable,s=!!u&&!!u.noTargetGet,l=u&&void 0!==u.name?u.name:n;D(o)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ht(o,"name")||e&&o.name!==l)&&Xt(o,"name",l),(f=i(o)).source||(f.source=r.join("string"==typeof l?l:""))),t!==g?(c?!s&&t[n]&&(a=!0):delete t[n],a?t[n]=o:Xt(t,n,o)):a?t[n]=o:ut(n,o)})(Function.prototype,"toString",(function(){return D(this)&&n(this).source||Ut(this)}))})),ye=Math.ceil,ge=Math.floor,be=function(t){var e=+t;return e!=e||0===e?0:(e>0?ge:ye)(e)},ve=Math.max,me=Math.min,xe=Math.min,we=function(t){return(e=t.length)>0?xe(be(e),9007199254740991):0;var e},$e=function(t){return function(e,n,i){var r,o=W(e),u=we(o),f=function(t,e){var n=be(t);return n<0?ve(n+e,0):me(n,e)}(i,u);if(t&&n!=n){for(;u>f;)if((r=o[f++])!=r)return!0}else for(;u>f;f++)if((t||f in o)&&o[f]===n)return t||f||0;return!t&&-1}},Ce={includes:$e(!0),indexOf:$e(!1)},Oe=Ce.indexOf,Se=F([].push),je=function(t,e){var n,i=W(t),r=0,o=[];for(n in i)!ht(te,n)&&ht(i,n)&&Se(o,n);for(;e.length>r;)ht(i,n=e[r++])&&(~Oe(o,n)||Se(o,n));return o},Re=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Be=Re.concat("length","prototype"),Te={f:Object.getOwnPropertyNames||function(t){return je(t,Be)}},Fe={f:Object.getOwnPropertySymbols},ke=F([].concat),Pe=z("Reflect","ownKeys")||function(t){var e=Te.f(Ht(t)),n=Fe.f;return n?ke(e,n(t)):e},Ee=function(t,e,n){for(var i=Pe(e),r=zt.f,o=Pt.f,u=0;u<i.length;u++){var f=i[u];ht(t,f)||n&&ht(n,f)||r(t,f,o(e,f))}},Ae=/#|\.prototype\./,Ne=function(t,e){var n=Ie[He(t)];return n==We||n!=Le&&(D(e)?b(e):!!e)},He=Ne.normalize=function(t){return String(t).replace(Ae,".").toLowerCase()},Ie=Ne.data={},Le=Ne.NATIVE="N",We=Ne.POLYFILL="P",De=Ne,Me=Pt.f,_e=function(t,e){var n,i,r,o,u,f=t.target,c=t.global,a=t.stat;if(n=c?g:a?g[f]||ut(f,{}):(g[f]||{}).prototype)for(i in e){if(o=e[i],r=t.noTargetGet?(u=Me(n,i))&&u.value:n[i],!De(c?i:f+(a?".":"#")+i,t.forced)&&void 0!==r){if(typeof o==typeof r)continue;Ee(o,r)}(t.sham||r&&r.sham)&&Xt(o,"sham",!0),pe(n,i,o,t)}},ze=F(F.bind),Xe=Array.isArray||function(t){return"Array"==E(t)},Ye={};Ye[$t("toStringTag")]="z";var Ge="[object z]"===String(Ye),qe=$t("toStringTag"),Ve=g.Object,Ue="Arguments"==E(function(){return arguments}()),Ke=Ge?E:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ve(t),qe))?n:Ue?E(e):"Object"==(i=E(e))&&D(e.callee)?"Arguments":i},Qe=function(){},Ze=[],Je=z("Reflect","construct"),tn=/^\s*(?:class|function)\b/,en=F(tn.exec),nn=!tn.exec(Qe),rn=function(t){if(!D(t))return!1;try{return Je(Qe,Ze,t),!0}catch(t){return!1}},on=function(t){if(!D(t))return!1;switch(Ke(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return nn||!!en(tn,Ut(t))}catch(t){return!0}};on.sham=!0;var un,fn=!Je||b((function(){var t;return rn(rn.call)||!rn(Object)||!rn((function(){t=!0}))||t}))?on:rn,cn=$t("species"),an=g.Array,sn=function(t,e){return new(function(t){var e;return Xe(t)&&(e=t.constructor,(fn(e)&&(e===an||Xe(e.prototype))||M(e)&&null===(e=e[cn]))&&(e=void 0)),void 0===e?an:e}(t))(0===e?0:e)},ln=F([].push),dn=function(t){var e=1==t,n=2==t,i=3==t,r=4==t,o=6==t,u=7==t,f=5==t||o;return function(c,a,s,l){for(var d,h,p=lt(c),y=H(p),g=function(t,e){return it(t),void 0===e?t:m?ze(t,e):function(){return t.apply(e,arguments)}}(a,s),b=we(y),v=0,x=l||sn,w=e?x(c,b):n||u?x(c,0):void 0;b>v;v++)if((f||v in y)&&(h=g(d=y[v],v,p),t))if(e)w[v]=h;else if(h)switch(t){case 3:return!0;case 5:return d;case 6:return v;case 2:ln(w,d)}else switch(t){case 4:return!1;case 7:ln(w,d)}return o?-1:i||r?r:w}},hn={forEach:dn(0),map:dn(1),filter:dn(2),some:dn(3),every:dn(4),find:dn(5),findIndex:dn(6),filterReject:dn(7)},pn=Object.keys||function(t){return je(t,Re)},yn=v&&!Et?Object.defineProperties:function(t,e){Ht(t);for(var n,i=W(e),r=pn(e),o=r.length,u=0;o>u;)zt.f(t,n=r[u++],i[n]);return t},gn={f:yn},bn=z("document","documentElement"),vn=Jt("IE_PROTO"),mn=function(){},xn=function(t){return"<script>"+t+"</"+"script>"},wn=function(t){t.write(xn("")),t.close();var e=t.parentWindow.Object;return t=null,e},$n=function(){try{un=new ActiveXObject("htmlfile")}catch(t){}var t,e;$n="undefined"!=typeof document?document.domain&&un?wn(un):((e=Tt("iframe")).style.display="none",bn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(xn("document.F=Object")),t.close(),t.F):wn(un);for(var n=Re.length;n--;)delete $n.prototype[Re[n]];return $n()};te[vn]=!0;var Cn=Object.create||function(t,e){var n;return null!==t?(mn.prototype=Ht(t),n=new mn,mn.prototype=null,n[vn]=t):n=$n(),void 0===e?n:gn.f(n,e)},On=$t("unscopables"),Sn=Array.prototype;null==Sn[On]&&zt.f(Sn,On,{configurable:!0,value:Cn(null)});var jn,Rn=hn.find,Bn="find",Tn=!0;Bn in[]&&Array(1).find((function(){Tn=!1})),_e({target:"Array",proto:!0,forced:Tn},{find:function(t){return Rn(this,t,arguments.length>1?arguments[1]:void 0)}}),jn=Bn,Sn[On][jn]=!0;var Fn=Ge?{}.toString:function(){return"[object "+Ke(this)+"]"};Ge||pe(Object.prototype,"toString",Fn,{unsafe:!0});var kn,Pn=function(t,e,n){var i=jt(e);i in t?zt.f(t,i,S(0,n)):t[i]=n},En=$t("species"),An=$t("isConcatSpreadable"),Nn=9007199254740991,Hn="Maximum allowed index exceeded",In=g.TypeError,Ln=K>=51||!b((function(){var t=[];return t[An]=!1,t.concat()[0]!==t})),Wn=(kn="concat",K>=51||!b((function(){var t=[];return(t.constructor={})[En]=function(){return{foo:1}},1!==t[kn](Boolean).foo}))),Dn=function(t){if(!M(t))return!1;var e=t[An];return void 0!==e?!!e:Xe(t)};_e({target:"Array",proto:!0,forced:!Ln||!Wn},{concat:function(t){var e,n,i,r,o,u=lt(this),f=sn(u,0),c=0;for(e=-1,i=arguments.length;e<i;e++)if(Dn(o=-1===e?u:arguments[e])){if(c+(r=we(o))>Nn)throw In(Hn);for(n=0;n<r;n++,c++)n in o&&Pn(f,c,o[n])}else{if(c>=Nn)throw In(Hn);Pn(f,c++,o)}return f.length=c,f}});var Mn=F([].reverse),_n=[1,2];_e({target:"Array",proto:!0,forced:String(_n)===String(_n.reverse())},{reverse:function(){return Xe(this)&&(this.length=this.length),Mn(this)}});var zn=g.String,Xn=function(t){if("Symbol"===Ke(t))throw TypeError("Cannot convert a Symbol value to a string");return zn(t)},Yn="\t\n\v\f\r    \u2028\u2029\ufeff",Gn=F("".replace),qn="["+Yn+"]",Vn=RegExp("^"+qn+qn+"*"),Un=RegExp(qn+qn+"*$"),Kn=function(t){return function(e){var n=Xn(L(e));return 1&t&&(n=Gn(n,Vn,"")),2&t&&(n=Gn(n,Un,"")),n}},Qn={start:Kn(1),end:Kn(2),trim:Kn(3)}.trim,Zn=g.parseInt,Jn=g.Symbol,ti=Jn&&Jn.iterator,ei=/^[+-]?0x/i,ni=F(ei.exec),ii=8!==Zn(Yn+"08")||22!==Zn(Yn+"0x16")||ti&&!b((function(){Zn(Object(ti))}))?function(t,e){var n=Qn(Xn(t));return Zn(n,e>>>0||(ni(ei,n)?16:10))}:Zn;_e({global:!0,forced:parseInt!=ii},{parseInt:ii});var ri=Ce.indexOf,oi=F([].indexOf),ui=!!oi&&1/oi([1],1,-0)<0,fi=function(t,e){var n=[][t];return!!n&&b((function(){n.call(null,e||function(){return 1},1)}))}("indexOf");_e({target:"Array",proto:!0,forced:ui||!fi},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return ui?oi(this,t,e)||0:ri(this,t,e)}});var ci=n.default.fn.bootstrapTable.utils;n.default.extend(n.default.fn.bootstrapTable.defaults,{fixedColumns:!1,fixedNumber:0,fixedRightNumber:0}),n.default.BootstrapTable=function(t){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(d,t);var e,f,a,l=c(d);function d(){return i(this,d),l.apply(this,arguments)}return e=d,f=[{key:"fixedColumnsSupported",value:function(){return this.options.fixedColumns&&!this.options.detailView&&!this.options.cardView}},{key:"initContainer",value:function(){s(o(d.prototype),"initContainer",this).call(this),this.fixedColumnsSupported()&&(this.options.fixedNumber&&(this.$tableContainer.append('<div class="fixed-columns"></div>'),this.$fixedColumns=this.$tableContainer.find(".fixed-columns")),this.options.fixedRightNumber&&(this.$tableContainer.append('<div class="fixed-columns-right"></div>'),this.$fixedColumnsRight=this.$tableContainer.find(".fixed-columns-right")))}},{key:"initBody",value:function(){for(var t,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];(t=s(o(d.prototype),"initBody",this)).call.apply(t,[this].concat(n)),this.$fixedColumns&&this.$fixedColumns.length&&this.$fixedColumns.toggle(this.fixedColumnsSupported()),this.$fixedColumnsRight&&this.$fixedColumnsRight.length&&this.$fixedColumnsRight.toggle(this.fixedColumnsSupported()),this.fixedColumnsSupported()&&(this.options.showHeader&&this.options.height||(this.initFixedColumnsBody(),this.initFixedColumnsEvents()))}},{key:"trigger",value:function(){for(var t,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];(t=s(o(d.prototype),"trigger",this)).call.apply(t,[this].concat(n)),this.fixedColumnsSupported()&&("post-header"===n[0]?this.initFixedColumnsHeader():"scroll-body"===n[0]&&(this.needFixedColumns&&this.options.fixedNumber&&this.$fixedBody.scrollTop(this.$tableBody.scrollTop()),this.needFixedColumns&&this.options.fixedRightNumber&&this.$fixedBodyRight.scrollTop(this.$tableBody.scrollTop())))}},{key:"updateSelected",value:function(){var t=this;s(o(d.prototype),"updateSelected",this).call(this),this.fixedColumnsSupported()&&this.$tableBody.find("tr").each((function(e,i){var r=n.default(i),o=r.data("index"),u=r.attr("class"),f='[name="'.concat(t.options.selectItemName,'"]'),c=r.find(f);if(void 0!==o){var a=function(e,n){var i=n.find('tr[data-index="'.concat(o,'"]'));i.attr("class",u),c.length&&i.find(f).prop("checked",c.prop("checked")),t.$selectAll.length&&e.add(n).find('[name="btSelectAll"]').prop("checked",t.$selectAll.prop("checked"))};t.$fixedBody&&t.options.fixedNumber&&a(t.$fixedHeader,t.$fixedBody),t.$fixedBodyRight&&t.options.fixedRightNumber&&a(t.$fixedHeaderRight,t.$fixedBodyRight)}}))}},{key:"hideLoading",value:function(){s(o(d.prototype),"hideLoading",this).call(this),this.needFixedColumns&&this.options.fixedNumber&&this.$fixedColumns.find(".fixed-table-loading").hide(),this.needFixedColumns&&this.options.fixedRightNumber&&this.$fixedColumnsRight.find(".fixed-table-loading").hide()}},{key:"initFixedColumnsHeader",value:function(){var t=this;this.options.height?this.needFixedColumns=this.$tableHeader.outerWidth(!0)<this.$tableHeader.find("table").outerWidth(!0):this.needFixedColumns=this.$tableBody.outerWidth(!0)<this.$tableBody.find("table").outerWidth(!0);var e=function(e,n){return e.find(".fixed-table-header").remove(),e.append(t.$tableHeader.clone(!0)),e.css({width:t.getFixedColumnsWidth(n)}),e.find(".fixed-table-header")};this.needFixedColumns&&this.options.fixedNumber?(this.$fixedHeader=e(this.$fixedColumns),this.$fixedHeader.css("margin-right","")):this.$fixedColumns&&this.$fixedColumns.html("").css("width",""),this.needFixedColumns&&this.options.fixedRightNumber?(this.$fixedHeaderRight=e(this.$fixedColumnsRight,!0),this.$fixedHeaderRight.scrollLeft(this.$fixedHeaderRight.find("table").width())):this.$fixedColumnsRight&&this.$fixedColumnsRight.html("").css("width",""),this.initFixedColumnsBody(),this.initFixedColumnsEvents()}},{key:"initFixedColumnsBody",value:function(){var t=this,e=function(e,n){e.find(".fixed-table-body").remove(),e.append(t.$tableBody.clone(!0)),e.find(".fixed-table-body table").removeAttr("id");var i=e.find(".fixed-table-body"),r=t.$tableBody.get(0),o=r.scrollWidth>r.clientWidth?ci.getScrollBarWidth():0,u=t.$tableContainer.outerHeight(!0)-o-1;return e.css({height:u}),i.css({height:u-n.height()}),i};this.needFixedColumns&&this.options.fixedNumber&&(this.$fixedBody=e(this.$fixedColumns,this.$fixedHeader)),this.needFixedColumns&&this.options.fixedRightNumber&&(this.$fixedBodyRight=e(this.$fixedColumnsRight,this.$fixedHeaderRight),this.$fixedBodyRight.scrollLeft(this.$fixedBodyRight.find("table").width()),this.$fixedBodyRight.css("overflow-y",this.options.height?"auto":"hidden"))}},{key:"getFixedColumnsWidth",value:function(t){var e=this.getVisibleFields(),n=0,i=this.options.fixedNumber,r=0;t&&(e=e.reverse(),i=this.options.fixedRightNumber,r=parseInt(this.$tableHeader.css("margin-right"),10));for(var o=0;o<i;o++)n+=this.$header.find('th[data-field="'.concat(e[o],'"]')).outerWidth(!0);return n+r+1}},{key:"initFixedColumnsEvents",value:function(){var t=this,e=function(e,i){var r='tr[data-index="'.concat(n.default(e.currentTarget).data("index"),'"]'),o=t.$tableBody.find(r);t.$fixedBody&&(o=o.add(t.$fixedBody.find(r))),t.$fixedBodyRight&&(o=o.add(t.$fixedBodyRight.find(r))),o.css("background-color",i?n.default(e.currentTarget).css("background-color"):"")};this.$tableBody.find("tr").hover((function(t){e(t,!0)}),(function(t){e(t,!1)}));var i="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1?"DOMMouseScroll":"mousewheel";this.needFixedColumns&&this.options.fixedNumber&&(this.$fixedBody.find("tr").hover((function(t){e(t,!0)}),(function(t){e(t,!1)})),this.$fixedBody[0].addEventListener(i,(function(e){!function(e,n){var i,r,o,u,f,c=(r=0,o=0,u=0,f=0,"detail"in(i=e)&&(o=i.detail),"wheelDelta"in i&&(o=-i.wheelDelta/120),"wheelDeltaY"in i&&(o=-i.wheelDeltaY/120),"wheelDeltaX"in i&&(r=-i.wheelDeltaX/120),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(r=o,o=0),u=10*r,f=10*o,"deltaY"in i&&(f=i.deltaY),"deltaX"in i&&(u=i.deltaX),(u||f)&&i.deltaMode&&(1===i.deltaMode?(u*=40,f*=40):(u*=800,f*=800)),u&&!r&&(r=u<1?-1:1),f&&!o&&(o=f<1?-1:1),{spinX:r,spinY:o,pixelX:u,pixelY:f}),a=Math.ceil(c.pixelY),s=t.$tableBody.scrollTop()+a;(a<0&&s>0||a>0&&s<n.scrollHeight-n.clientHeight)&&e.preventDefault(),t.$tableBody.scrollTop(s),t.$fixedBody&&t.$fixedBody.scrollTop(s),t.$fixedBodyRight&&t.$fixedBodyRight.scrollTop(s)}(e,t.$fixedBody[0])}))),this.needFixedColumns&&this.options.fixedRightNumber&&(this.$fixedBodyRight.find("tr").hover((function(t){e(t,!0)}),(function(t){e(t,!1)})),this.$fixedBodyRight.off("scroll").on("scroll",(function(){var e=t.$fixedBodyRight.scrollTop();t.$tableBody.scrollTop(e),t.$fixedBody&&t.$fixedBody.scrollTop(e)}))),this.options.filterControl&&n.default(this.$fixedColumns).off("keyup change").on("keyup change",(function(e){var i=n.default(e.target),r=i.val(),o=i.parents("th").data("field"),u=t.$header.find('th[data-field="'.concat(o,'"]'));if(i.is("input"))u.find("input").val(r);else if(i.is("select")){var f=u.find("select");f.find("option[selected]").removeAttr("selected"),f.find('option[value="'.concat(r,'"]')).attr("selected",!0)}t.triggerSearch()}))}},{key:"renderStickyHeader",value:function(){if(this.options.stickyHeader&&(this.$stickyContainer=this.$container.find(".sticky-header-container"),s(o(d.prototype),"renderStickyHeader",this).call(this),this.needFixedColumns&&this.options.fixedNumber&&this.$fixedColumns.css("z-index",101).find(".sticky-header-container").css("right","").width(this.$fixedColumns.outerWidth()),this.needFixedColumns&&this.options.fixedRightNumber)){var t=this.$fixedColumnsRight.find(".sticky-header-container");this.$fixedColumnsRight.css("z-index",101),t.css("left","").scrollLeft(t.find(".table").outerWidth()).width(this.$fixedColumnsRight.outerWidth())}}},{key:"matchPositionX",value:function(){this.options.stickyHeader&&this.$stickyContainer.eq(0).scrollLeft(this.$tableBody.scrollLeft())}}],f&&r(e.prototype,f),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),d}(n.default.BootstrapTable)}));