UNPKG

19.3 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.17.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 n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),c={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!c.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:c},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f={}.toString,p=function(t){return f.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 n,r;if(e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!v(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,w=function(t,e){return m.call(t,e)},x=o.document,O=v(x)&&v(x.createElement),j=function(t){return O?x.createElement(t):{}},E=!u&&!i((function(){return 7!=Object.defineProperty(j("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,S={f:u?T:function(t,e){if(t=g(t),e=b(e,!0),E)try{return T(t,e)}catch(t){}if(w(t,e))return s(!l.f.call(t,e),t[e])}},C=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,A={f:u?P:function(t,e,n){if(C(t),e=b(e,!0),C(n),E)try{return P(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},V=u?function(t,e,n){return A.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},_=function(t,e){try{V(o,t,e)}catch(n){o[t]=e}return e},R=o["__core-js_shared__"]||_("__core-js_shared__",{}),I=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(t){return I.call(t)});var B,k,M,N=R.inspectSource,$=o.WeakMap,F="function"==typeof $&&/native code/.test(N($)),D=n((function(t){(t.exports=function(t,e){return R[t]||(R[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),L=0,q=Math.random(),z=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++L+q).toString(36)},K=D("keys"),U=function(t){return K[t]||(K[t]=z(t))},W={},G=o.WeakMap;if(F){var Y=new G,Q=Y.get,X=Y.has,H=Y.set;B=function(t,e){return H.call(Y,t,e),e},k=function(t){return Q.call(Y,t)||{}},M=function(t){return X.call(Y,t)}}else{var J=U("state");W[J]=!0,B=function(t,e){return V(t,J,e),e},k=function(t){return w(t,J)?t[J]:{}},M=function(t){return w(t,J)}}var Z,tt,et={set:B,get:k,has:M,enforce:function(t){return M(t)?k(t):B(t,{})},getterFor:function(t){return function(e){var n;if(!v(e)||(n=k(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=n((function(t){var e=et.get,n=et.enforce,r=String(String).split("String");(t.exports=function(t,e,i,u){var c=!!u&&!!u.unsafe,a=!!u&&!!u.enumerable,l=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||V(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(c?!l&&t[e]&&(a=!0):delete t[e],a?t[e]=i:V(t,e,i)):a?t[e]=i:_(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||N(this)}))})),rt=o,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(o[t]):rt[t]&&rt[t][e]||o[t]&&o[t][e]},ut=Math.ceil,ct=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ct:ut)(t)},lt=Math.min,st=function(t){return t>0?lt(at(t),9007199254740991):0},ft=Math.max,pt=Math.min,ht=function(t,e){var n=at(t);return n<0?ft(n+e,0):pt(n,e)},dt=function(t){return function(e,n,r){var o,i=g(e),u=st(i.length),c=ht(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},yt={includes:dt(!0),indexOf:dt(!1)}.indexOf,gt=function(t,e){var n,r=g(t),o=0,i=[];for(n in r)!w(W,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~yt(i,n)||i.push(n));return i},vt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=vt.concat("length","prototype"),mt={f:Object.getOwnPropertyNames||function(t){return gt(t,bt)}},wt={f:Object.getOwnPropertySymbols},xt=it("Reflect","ownKeys")||function(t){var e=mt.f(C(t)),n=wt.f;return n?e.concat(n(t)):e},Ot=function(t,e){for(var n=xt(e),r=A.f,o=S.f,i=0;i<n.length;i++){var u=n[i];w(t,u)||r(t,u,o(e,u))}},jt=/#|\.prototype\./,Et=function(t,e){var n=St[Tt(t)];return n==Pt||n!=Ct&&("function"==typeof e?i(e):!!e)},Tt=Et.normalize=function(t){return String(t).replace(jt,".").toLowerCase()},St=Et.data={},Ct=Et.NATIVE="N",Pt=Et.POLYFILL="P",At=Et,Vt=S.f,_t=function(t,e){var n,r,i,u,c,a=t.target,l=t.global,s=t.stat;if(n=l?o:s?o[a]||_(a,{}):(o[a]||{}).prototype)for(r in e){if(u=e[r],i=t.noTargetGet?(c=Vt(n,r))&&c.value:n[r],!At(l?r:a+(s?".":"#")+r,t.forced)&&void 0!==i){if(typeof u==typeof i)continue;Ot(u,i)}(t.sham||i&&i.sham)&&V(u,"sham",!0),nt(n,r,u,t)}},Rt=Array.isArray||function(t){return"Array"==p(t)},It=function(t){return Object(y(t))},Bt=function(t,e,n){var r=b(e);r in t?A.f(t,r,s(0,n)):t[r]=n},kt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Mt=kt&&!Symbol.sham&&"symbol"==typeof Symbol(),Nt=D("wks"),$t=o.Symbol,Ft=Mt?$t:z,Dt=function(t){return w(Nt,t)||(kt&&w($t,t)?Nt[t]=$t[t]:Nt[t]=Ft("Symbol."+t)),Nt[t]},Lt=Dt("species"),qt=function(t,e){var n;return Rt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Rt(n.prototype)?v(n)&&null===(n=n[Lt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},zt=it("navigator","userAgent")||"",Kt=o.process,Ut=Kt&&Kt.versions,Wt=Ut&&Ut.v8;Wt?tt=(Z=Wt.split("."))[0]+Z[1]:zt&&(!(Z=zt.match(/Edge\/(\d+)/))||Z[1]>=74)&&(Z=zt.match(/Chrome\/(\d+)/))&&(tt=Z[1]);var Gt=tt&&+tt,Yt=Dt("species"),Qt=function(t){return Gt>=51||!i((function(){var e=[];return(e.constructor={})[Yt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Xt=Dt("isConcatSpreadable"),Ht=Gt>=51||!i((function(){var t=[];return t[Xt]=!1,t.concat()[0]!==t})),Jt=Qt("concat"),Zt=function(t){if(!v(t))return!1;var e=t[Xt];return void 0!==e?!!e:Rt(t)};_t({target:"Array",proto:!0,forced:!Ht||!Jt},{concat:function(t){var e,n,r,o,i,u=It(this),c=qt(u,0),a=0;for(e=-1,r=arguments.length;e<r;e++)if(Zt(i=-1===e?u:arguments[e])){if(a+(o=st(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,a++)n in i&&Bt(c,a,i[n])}else{if(a>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Bt(c,a++,i)}return c.length=a,c}});var te,ee=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},ne=[].push,re=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=5==t||i;return function(c,a,l,s){for(var f,p,h=It(c),y=d(h),g=function(t,e,n){if(ee(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}(a,l,3),v=st(y.length),b=0,m=s||qt,w=e?m(c,v):n?m(c,0):void 0;v>b;b++)if((u||b in y)&&(p=g(f=y[b],b,h),t))if(e)w[b]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:ne.call(w,f)}else if(o)return!1;return i?-1:r||o?o:w}},oe={forEach:re(0),map:re(1),filter:re(2),some:re(3),every:re(4),find:re(5),findIndex:re(6)},ie=Object.keys||function(t){return gt(t,vt)},ue=u?Object.defineProperties:function(t,e){C(t);for(var n,r=ie(e),o=r.length,i=0;o>i;)A.f(t,n=r[i++],e[n]);return t},ce=it("document","documentElement"),ae=U("IE_PROTO"),le=function(){},se=function(t){return"<script>"+t+"<\/script>"},fe=function(){try{te=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;fe=te?function(t){t.write(se("")),t.close();var e=t.parentWindow.Object;return t=null,e}(te):((e=j("iframe")).style.display="none",ce.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(se("document.F=Object")),t.close(),t.F);for(var n=vt.length;n--;)delete fe.prototype[vt[n]];return fe()};W[ae]=!0;var pe=Object.create||function(t,e){var n;return null!==t?(le.prototype=C(t),n=new le,le.prototype=null,n[ae]=t):n=fe(),void 0===e?n:ue(n,e)},he=Dt("unscopables"),de=Array.prototype;null==de[he]&&A.f(de,he,{configurable:!0,value:pe(null)});var ye,ge=oe.find,ve=!0;"find"in[]&&Array(1).find((function(){ve=!1})),_t({target:"Array",proto:!0,forced:ve},{find:function(t){return ge(this,t,arguments.length>1?arguments[1]:void 0)}}),ye="find",de[he][ye]=!0;var be,me,we=[].join,xe=d!=Object,Oe=(be=",",!(me=[]["join"])||!i((function(){me.call(null,be||function(){throw 1},1)})));_t({target:"Array",proto:!0,forced:xe||Oe},{join:function(t){return we.call(g(this),void 0===t?",":t)}});var je=Dt("species"),Ee=[].slice,Te=Math.max;_t({target:"Array",proto:!0,forced:!Qt("slice")},{slice:function(t,e){var n,r,o,i=g(this),u=st(i.length),c=ht(t,u),a=ht(void 0===e?u:e,u);if(Rt(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Rt(n.prototype)?v(n)&&null===(n=n[je])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ee.call(i,c,a);for(r=new(void 0===n?Array:n)(Te(a-c,0)),o=0;c<a;c++,o++)c in i&&Bt(r,o,i[c]);return r.length=o,r}});var Se=function(){var t=C(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Ce(t,e){return RegExp(t,e)}var Pe,Ae,Ve={UNSUPPORTED_Y:i((function(){var t=Ce("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:i((function(){var t=Ce("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},_e=RegExp.prototype.exec,Re=String.prototype.replace,Ie=_e,Be=(Pe=/a/,Ae=/b*/g,_e.call(Pe,"a"),_e.call(Ae,"a"),0!==Pe.lastIndex||0!==Ae.lastIndex),ke=Ve.UNSUPPORTED_Y||Ve.BROKEN_CARET,Me=void 0!==/()??/.exec("")[1];(Be||Me||ke)&&(Ie=function(t){var e,n,r,o,i=this,u=ke&&i.sticky,c=Se.call(i),a=i.source,l=0,s=t;return u&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),s=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(a="(?: "+a+")",s=" "+s,l++),n=new RegExp("^(?:"+a+")",c)),Me&&(n=new RegExp("^"+a+"$(?!\\s)",c)),Be&&(e=i.lastIndex),r=_e.call(u?n:i,s),u?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Be&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Me&&r&&r.length>1&&Re.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Ne=Ie;_t({target:"RegExp",proto:!0,forced:/./.exec!==Ne},{exec:Ne});var $e=Dt("species"),Fe=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),De="$0"==="a".replace(/./,"$0"),Le=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),qe=Dt("match"),ze=Dt("species"),Ke=function(t){return function(e,n){var r,o,i=String(y(e)),u=at(n),c=i.length;return u<0||u>=c?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===c||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):r:t?i.slice(u,u+2):o-56320+(r-55296<<10)+65536}},Ue={codeAt:Ke(!1),charAt:Ke(!0)}.charAt,We=function(t,e,n){return e+(n?Ue(t,e).length:1)},Ge=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==p(t))throw TypeError("RegExp#exec called on incompatible receiver");return Ne.call(t,e)},Ye=[].push,Qe=Math.min,Xe=!i((function(){return!RegExp(4294967295,"y")}));function He(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Je(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ze(t){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function tn(t,e){return(tn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function en(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 nn(t,e,n){return(nn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ze(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}!function(t,e,n,r){var o=Dt(t),u=!i((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=u&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[$e]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!u||!c||"replace"===t&&(!Fe||!De)||"split"===t&&!Le){var a=/./[o],l=n(o,""[t],(function(t,e,n,r,o){return e.exec===Ne?u&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:De}),s=l[0],f=l[1];nt(String.prototype,t,s),nt(RegExp.prototype,o,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}r&&V(RegExp.prototype[o],"sham",!0)}("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r,o,i=String(y(this)),u=void 0===n?4294967295:n>>>0;if(0===u)return[];if(void 0===t)return[i];if(!v(r=t)||!(void 0!==(o=r[qe])?o:"RegExp"==p(r)))return e.call(i,t,u);for(var c,a,l,s=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,d=new RegExp(t.source,f+"g");(c=Ne.call(d,i))&&!((a=d.lastIndex)>h&&(s.push(i.slice(h,c.index)),c.length>1&&c.index<i.length&&Ye.apply(s,c.slice(1)),l=c[0].length,h=a,s.length>=u));)d.lastIndex===c.index&&d.lastIndex++;return h===i.length?!l&&d.test("")||s.push(""):s.push(i.slice(h)),s.length>u?s.slice(0,u):s}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=y(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var u=C(t),c=String(this),a=function(t,e){var n,r=C(t).constructor;return void 0===r||null==(n=C(r)[ze])?e:ee(n)}(u,RegExp),l=u.unicode,s=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(Xe?"y":"g"),f=new a(Xe?u:"^(?:"+u.source+")",s),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===c.length)return null===Ge(f,c)?[c]:[];for(var h=0,d=0,y=[];d<c.length;){f.lastIndex=Xe?d:0;var g,v=Ge(f,Xe?c:c.slice(d));if(null===v||(g=Qe(st(f.lastIndex+(Xe?0:d)),c.length))===h)d=We(c,d,l);else{if(y.push(c.slice(h,d)),y.length===p)return y;for(var b=1;b<=v.length-1;b++)if(y.push(v[b]),y.length===p)return y;d=h=g}}return y.push(c.slice(h)),y}]}),!Xe);var rn=t.fn.bootstrapTable.utils;t.extend(t.fn.bootstrapTable.defaults,{customView:!1,showCustomView:!1,showCustomViewButton:!1}),t.extend(t.fn.bootstrapTable.defaults.icons,{customView:{bootstrap3:"glyphicon glyphicon-eye-open",bootstrap4:"fa fa-eye",semantic:"fa fa-eye",foundation:"fa fa-eye",bulma:"fa fa-eye",materialize:"remove_red_eye"}[t.fn.bootstrapTable.theme]||"fa-eye"}),t.extend(t.fn.bootstrapTable.defaults,{onCustomViewPostBody:function(){return!1},onCustomViewPreBody:function(){return!1}}),t.extend(t.fn.bootstrapTable.locales,{formatToggleCustomView:function(){return"Toggle custom view"}}),t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales),t.fn.bootstrapTable.methods.push("toggleCustomView"),t.extend(t.fn.bootstrapTable.Constructor.EVENTS,{"custom-view-post-body.bs.table":"onCustomViewPostBody","custom-view-pre-body.bs.table":"onCustomViewPreBody"}),t.BootstrapTable=function(e){function n(){return He(this,n),en(this,Ze(n).apply(this,arguments))}var r,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&&tn(t,e)}(n,e),r=n,(o=[{key:"init",value:function(){this.showCustomView=this.options.showCustomView,nn(Ze(n.prototype),"init",this).call(this)}},{key:"initToolbar",value:function(){for(var e,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if((e=nn(Ze(n.prototype),"initToolbar",this)).call.apply(e,[this].concat(o)),this.options.customView&&this.options.showCustomViewButton){var u=this.$toolbar.find(">."+this.constants.classes.buttonsGroup.split(" ").join(".")).first(),c=u.find(".toggle-custom-view");c.length||(c=t('\n <button class="toggle-custom-view '.concat(this.constants.buttonsClass,'"\n type="button" title="').concat(this.options.formatToggleCustomView(),'">\n ').concat(this.options.showButtonIcons?rn.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.customView):"","\n ").concat(this.options.showButtonText?this.options.formatToggleCustomView():"","\n </button>\n ")).appendTo(u)).on("click",t.proxy(this.toggleCustomView,this))}}},{key:"initBody",value:function(){if(nn(Ze(n.prototype),"initBody",this).call(this),this.options.customView){var t=this.$el,e=this.$container.find(".fixed-table-custom-view");if(t.hide(),e.hide(),this.options.customView&&this.showCustomView){var r=this.getData().slice(this.pageFrom-1,this.pageTo),o=rn.calculateObjectValue(this,this.options.customView,[r],"");this.trigger("custom-view-pre-body",r,o),1===e.length?e.show().html(o):this.$tableBody.after('<div class="fixed-table-custom-view">'.concat(o,"</div>")),this.trigger("custom-view-post-body",r,o)}else t.show()}}},{key:"toggleCustomView",value:function(){this.showCustomView=!this.showCustomView,this.initBody()}}])&&Je(r.prototype,o),i&&Je(r,i),n}(t.BootstrapTable)}));