"))})).fail((function(t){$("#loading").modal("hide"),$("#formModal").modal("hide")}))}));var e=function(){$("#adminEditButton").prop("disabled",!0),$("#adminDeleteButton").prop("disabled",!0)};$("#bsTable").on("load-success.bs.table",(function(){e()})),$("#bsTable").on("load-error.bs.table",(function(t,i,n){var s;0==(s=n).status&&"abort"==s.statusText||(401==s.status?($("#modalCloseButton").click((function(){window.location.reload()})),showAlertDialog("Authorization error","You session has expired. The page will be reloaded in order to re-authenticate","error")):403==s.status?showAlertDialog("Authorization error","You are not authorized to run this operation","error"):showAlertDialog("Unexpected server error","Could not load form due to a server error. Please try again","error")),e()})),$("#bsTable").on("check.bs.table",(function(){var e=$("#bsTable").bootstrapTable("getSelections");t(e)})),$("#bsTable").on("uncheck.bs.table",(function(){var e=$("#bsTable").bootstrapTable("getSelections");t(e)})),$("#bsTable").on("check-all.bs.table",(function(){var e=$("#bsTable").bootstrapTable("getSelections");t(e)})),$("#bsTable").on("uncheck-all.bs.table",(function(){var e=$("#bsTable").bootstrapTable("getSelections");t(e)}))}))},565:(t,e,i)=>{"use strict";
+(()=>{var t={663:()=>{$(document).ready((function(){$("#adminEditButton").prop("disabled",!0),$("#adminDeleteButton").prop("disabled",!0),$("#adminAddButton").click((function(){$.get("/admin/add").done((function(t){$("#formModalTitle").html("Add Admin"),$("#formPlaceholder").html(t),$("#formMessages").empty(),$("#formModal").modal("show")})).fail((function(t){showFailDialog(t)}))})),$("#adminEditButton").click((function(){var t=$("#bsTable").bootstrapTable("getSelections");1!=t.length?showAlertDialog("Selection error","Multiple or no Admin selected. Only one Admin can be edited a time","error"):$.get("/admin/edit/"+t[0].uuid).done((function(t){$("#formModalTitle").html("Edit Admin"),$("#formPlaceholder").html(t),$("#formMessages").empty(),$("#formModal").modal("show")})).fail((function(t){showFailDialog(t)}))})),$("#adminDeleteButton").click((function(){var t=$("#bsTable").bootstrapTable("getSelections");0!==t.length&&($("#deleteFormPlaceholder").text("Are you sure you want to delete "+t[0].identity+"?"),$("#deleteFormMessages").empty(),$("#deleteFormModal").modal("show"))})),$("#deleteAdminFormModalSubmit").click((function(){var t=$("#bsTable").bootstrapTable("getSelections");$("#deleteFormModal").modal("handleUpdate"),$.post("/admin/delete",t[0]).done((function(t){"success"==t.success?($("#deleteFormMessages").html('
"),$("#bsTable").bootstrapTable("refresh"),setTimeout((function(){$("#deleteFormModal").modal("hide")}),1500)):($("#deleteFormMessages").html('
× '+t.message+"
"),setTimeout((function(){$("#deleteFormModal").modal("hide")}),2e3))})).fail((function(t){$("#formModal").modal("hide")}))}))}))},287:function(t,e,i){t.exports=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var s=function(t){return t&&t.Math==Math&&t},o=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof e&&e)||Function("return this")(),r=function(t){try{return!!t()}catch(t){return!0}},a=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,c={f:h&&!l.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:l},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},u={}.toString,f=function(t){return u.call(t).slice(8,-1)},p="".split,g=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==f(t)?p.call(t,""):Object(t)}:Object,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return g(m(t))},v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=function(t,e){if(!v(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!v(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!v(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!v(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},x={}.hasOwnProperty,_=function(t,e){return x.call(t,e)},w=o.document,k=v(w)&&v(w.createElement),S=function(t){return k?w.createElement(t):{}},C=!a&&!r((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),M=Object.getOwnPropertyDescriptor,T={f:a?M:function(t,e){if(t=b(t),e=y(e,!0),C)try{return M(t,e)}catch(t){}if(_(t,e))return d(!c.f.call(t,e),t[e])}},A=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},O=Object.defineProperty,P={f:a?O:function(t,e,i){if(A(t),e=y(e,!0),A(i),C)try{return O(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},E=a?function(t,e,i){return P.f(t,e,d(1,i))}:function(t,e,i){return t[e]=i,t},D=function(t,e){try{E(o,t,e)}catch(i){o[t]=e}return e},L="__core-js_shared__",I=o[L]||D(L,{}),R=Function.toString;"function"!=typeof I.inspectSource&&(I.inspectSource=function(t){return R.call(t)});var F,N,$,j=I.inspectSource,H=o.WeakMap,z="function"==typeof H&&/native code/.test(j(H)),B=n((function(t){(t.exports=function(t,e){return I[t]||(I[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),V=0,W=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++V+W).toString(36)},q=B("keys"),Y=function(t){return q[t]||(q[t]=U(t))},X={},K=o.WeakMap,G=function(t){return $(t)?N(t):F(t,{})},Q=function(t){return function(e){var i;if(!v(e)||(i=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}};if(z){var J=new K,Z=J.get,tt=J.has,et=J.set;F=function(t,e){return et.call(J,t,e),e},N=function(t){return Z.call(J,t)||{}},$=function(t){return tt.call(J,t)}}else{var it=Y("state");X[it]=!0,F=function(t,e){return E(t,it,e),e},N=function(t){return _(t,it)?t[it]:{}},$=function(t){return _(t,it)}}var nt,st={set:F,get:N,has:$,enforce:G,getterFor:Q},ot=n((function(t){var e=st.get,i=st.enforce,n=String(String).split("String");(t.exports=function(t,e,s,r){var a=!!r&&!!r.unsafe,l=!!r&&!!r.enumerable,h=!!r&&!!r.noTargetGet;"function"==typeof s&&("string"!=typeof e||_(s,"name")||E(s,"name",e),i(s).source=n.join("string"==typeof e?e:"")),t!==o?(a?!h&&t[e]&&(l=!0):delete t[e],l?t[e]=s:E(t,e,s)):l?t[e]=s:D(e,s)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||j(this)}))})),rt=o,at=function(t){return"function"==typeof t?t:void 0},lt=function(t,e){return arguments.length<2?at(rt[t])||at(o[t]):rt[t]&&rt[t][e]||o[t]&&o[t][e]},ht=Math.ceil,ct=Math.floor,dt=function(t){return isNaN(t=+t)?0:(t>0?ct:ht)(t)},ut=Math.min,ft=function(t){return t>0?ut(dt(t),9007199254740991):0},pt=Math.max,gt=Math.min,mt=function(t,e){var i=dt(t);return i<0?pt(i+e,0):gt(i,e)},bt=function(t){return function(e,i,n){var s,o=b(e),r=ft(o.length),a=mt(n,r);if(t&&i!=i){for(;r>a;)if((s=o[a++])!=s)return!0}else for(;r>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},vt={includes:bt(!0),indexOf:bt(!1)},yt=vt.indexOf,xt=function(t,e){var i,n=b(t),s=0,o=[];for(i in n)!_(X,i)&&_(n,i)&&o.push(i);for(;e.length>s;)_(n,i=e[s++])&&(~yt(o,i)||o.push(i));return o},_t=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wt=_t.concat("length","prototype"),kt={f:Object.getOwnPropertyNames||function(t){return xt(t,wt)}},St={f:Object.getOwnPropertySymbols},Ct=lt("Reflect","ownKeys")||function(t){var e=kt.f(A(t)),i=St.f;return i?e.concat(i(t)):e},Mt=function(t,e){for(var i=Ct(e),n=P.f,s=T.f,o=0;o
o;)P.f(t,i=n[o++],e[i]);return t},Bt=lt("document","documentElement"),Vt=">",Wt="<",Ut="prototype",qt="script",Yt=Y("IE_PROTO"),Xt=function(){},Kt=function(t){return Wt+qt+Vt+t+Wt+"/"+qt+Vt},Gt=function(t){t.write(Kt("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qt=function(){var t,e=S("iframe"),i="java"+qt+":";return e.style.display="none",Bt.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(Kt("document.F=Object")),t.close(),t.F},Jt=function(){try{nt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}Jt=nt?Gt(nt):Qt();for(var t=_t.length;t--;)delete Jt[Ut][_t[t]];return Jt()};X[Yt]=!0;var Zt=Object.create||function(t,e){var i;return null!==t?(Xt[Ut]=A(t),i=new Xt,Xt[Ut]=null,i[Yt]=t):i=Jt(),void 0===e?i:zt(i,e)},te=kt.f,ee={}.toString,ie="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ne=function(t){try{return te(t)}catch(t){return ie.slice()}},se={f:function(t){return ie&&"[object Window]"==ee.call(t)?ne(t):te(b(t))}},oe=B("wks"),re=o.Symbol,ae=Nt?re:U,le=function(t){return _(oe,t)||(Ft&&_(re,t)?oe[t]=re[t]:oe[t]=ae("Symbol."+t)),oe[t]},he={f:le},ce=P.f,de=function(t){var e=rt.Symbol||(rt.Symbol={});_(e,t)||ce(e,t,{value:he.f(t)})},ue=P.f,fe=le("toStringTag"),pe=function(t,e,i){t&&!_(t=i?t:t.prototype,fe)&&ue(t,fe,{configurable:!0,value:e})},ge=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},me=function(t,e,i){if(ge(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,s){return t.call(e,i,n,s)}}return function(){return t.apply(e,arguments)}},be=le("species"),ve=function(t,e){var i;return $t(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!$t(i.prototype)?v(i)&&null===(i=i[be])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},ye=[].push,xe=function(t){var e=1==t,i=2==t,n=3==t,s=4==t,o=6==t,r=5==t||o;return function(a,l,h,c){for(var d,u,f=jt(a),p=g(f),m=me(l,h,3),b=ft(p.length),v=0,y=c||ve,x=e?y(a,b):i?y(a,0):void 0;b>v;v++)if((r||v in p)&&(u=m(d=p[v],v,f),t))if(e)x[v]=u;else if(u)switch(t){case 3:return!0;case 5:return d;case 6:return v;case 2:ye.call(x,d)}else if(s)return!1;return o?-1:n||s?s:x}},_e={forEach:xe(0),map:xe(1),filter:xe(2),some:xe(3),every:xe(4),find:xe(5),findIndex:xe(6)},we=_e.forEach,ke=Y("hidden"),Se="Symbol",Ce="prototype",Me=le("toPrimitive"),Te=st.set,Ae=st.getterFor(Se),Oe=Object[Ce],Pe=o.Symbol,Ee=lt("JSON","stringify"),De=T.f,Le=P.f,Ie=se.f,Re=c.f,Fe=B("symbols"),Ne=B("op-symbols"),$e=B("string-to-symbol-registry"),je=B("symbol-to-string-registry"),He=B("wks"),ze=o.QObject,Be=!ze||!ze[Ce]||!ze[Ce].findChild,Ve=a&&r((function(){return 7!=Zt(Le({},"a",{get:function(){return Le(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=De(Oe,e);n&&delete Oe[e],Le(t,e,i),n&&t!==Oe&&Le(Oe,e,n)}:Le,We=function(t,e){var i=Fe[t]=Zt(Pe[Ce]);return Te(i,{type:Se,tag:t,description:e}),a||(i.description=e),i},Ue=Ft&&"symbol"==typeof Pe.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Pe},qe=function(t,e,i){t===Oe&&qe(Ne,e,i),A(t);var n=y(e,!0);return A(i),_(Fe,n)?(i.enumerable?(_(t,ke)&&t[ke][n]&&(t[ke][n]=!1),i=Zt(i,{enumerable:d(0,!1)})):(_(t,ke)||Le(t,ke,d(1,{})),t[ke][n]=!0),Ve(t,n,i)):Le(t,n,i)},Ye=function(t,e){A(t);var i=b(e),n=Ht(i).concat(Je(i));return we(n,(function(e){a&&!Ke.call(i,e)||qe(t,e,i[e])})),t},Xe=function(t,e){return void 0===e?Zt(t):Ye(Zt(t),e)},Ke=function(t){var e=y(t,!0),i=Re.call(this,e);return!(this===Oe&&_(Fe,e)&&!_(Ne,e))&&(!(i||!_(this,e)||!_(Fe,e)||_(this,ke)&&this[ke][e])||i)},Ge=function(t,e){var i=b(t),n=y(e,!0);if(i!==Oe||!_(Fe,n)||_(Ne,n)){var s=De(i,n);return!s||!_(Fe,n)||_(i,ke)&&i[ke][n]||(s.enumerable=!0),s}},Qe=function(t){var e=Ie(b(t)),i=[];return we(e,(function(t){_(Fe,t)||_(X,t)||i.push(t)})),i},Je=function(t){var e=t===Oe,i=Ie(e?Ne:b(t)),n=[];return we(i,(function(t){!_(Fe,t)||e&&!_(Oe,t)||n.push(Fe[t])})),n};if(Ft||(Pe=function(){if(this instanceof Pe)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=U(t),i=function(t){this===Oe&&i.call(Ne,t),_(this,ke)&&_(this[ke],e)&&(this[ke][e]=!1),Ve(this,e,d(1,t))};return a&&Be&&Ve(Oe,e,{configurable:!0,set:i}),We(e,t)},ot(Pe[Ce],"toString",(function(){return Ae(this).tag})),c.f=Ke,P.f=qe,T.f=Ge,kt.f=se.f=Qe,St.f=Je,a&&(Le(Pe[Ce],"description",{configurable:!0,get:function(){return Ae(this).description}}),ot(Oe,"propertyIsEnumerable",Ke,{unsafe:!0}))),Nt||(he.f=function(t){return We(le(t),t)}),Rt({global:!0,wrap:!0,forced:!Ft,sham:!Ft},{Symbol:Pe}),we(Ht(He),(function(t){de(t)})),Rt({target:Se,stat:!0,forced:!Ft},{for:function(t){var e=String(t);if(_($e,e))return $e[e];var i=Pe(e);return $e[e]=i,je[i]=e,i},keyFor:function(t){if(!Ue(t))throw TypeError(t+" is not a symbol");if(_(je,t))return je[t]},useSetter:function(){Be=!0},useSimple:function(){Be=!1}}),Rt({target:"Object",stat:!0,forced:!Ft,sham:!a},{create:Xe,defineProperty:qe,defineProperties:Ye,getOwnPropertyDescriptor:Ge}),Rt({target:"Object",stat:!0,forced:!Ft},{getOwnPropertyNames:Qe,getOwnPropertySymbols:Je}),Rt({target:"Object",stat:!0,forced:r((function(){St.f(1)}))},{getOwnPropertySymbols:function(t){return St.f(jt(t))}}),Ee){var Ze=!Ft||r((function(){var t=Pe();return"[null]"!=Ee([t])||"{}"!=Ee({a:t})||"{}"!=Ee(Object(t))}));Rt({target:"JSON",stat:!0,forced:Ze},{stringify:function(t,e,i){for(var n,s=[t],o=1;arguments.length>o;)s.push(arguments[o++]);if(n=e,(v(e)||void 0!==t)&&!Ue(t))return $t(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Ue(e))return e}),s[1]=e,Ee.apply(null,s)}})}Pe[Ce][Me]||E(Pe[Ce],Me,Pe[Ce].valueOf),pe(Pe,Se),X[ke]=!0;var ti=P.f,ei=o.Symbol;if(a&&"function"==typeof ei&&(!("description"in ei.prototype)||void 0!==ei().description)){var ii={},ni=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof ni?new ei(t):void 0===t?ei():ei(t);return""===t&&(ii[e]=!0),e};Mt(ni,ei);var si=ni.prototype=ei.prototype;si.constructor=ni;var oi=si.toString,ri="Symbol(test)"==String(ei("test")),ai=/^Symbol\((.*)\)[^)]+$/;ti(si,"description",{configurable:!0,get:function(){var t=v(this)?this.valueOf():this,e=oi.call(t);if(_(ii,t))return"";var i=ri?e.slice(7,-1):e.replace(ai,"$1");return""===i?void 0:i}}),Rt({global:!0,forced:!0},{Symbol:ni})}de("iterator");var li,hi,ci=function(t,e,i){var n=y(e);n in t?P.f(t,n,d(0,i)):t[n]=i},di=lt("navigator","userAgent")||"",ui=o.process,fi=ui&&ui.versions,pi=fi&&fi.v8;pi?hi=(li=pi.split("."))[0]+li[1]:di&&(!(li=di.match(/Edge\/(\d+)/))||li[1]>=74)&&(li=di.match(/Chrome\/(\d+)/))&&(hi=li[1]);var gi=hi&&+hi,mi=le("species"),bi=function(t){return gi>=51||!r((function(){var e=[];return(e.constructor={})[mi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},vi=le("isConcatSpreadable"),yi=9007199254740991,xi="Maximum allowed index exceeded",_i=gi>=51||!r((function(){var t=[];return t[vi]=!1,t.concat()[0]!==t})),wi=bi("concat"),ki=function(t){if(!v(t))return!1;var e=t[vi];return void 0!==e?!!e:$t(t)};Rt({target:"Array",proto:!0,forced:!_i||!wi},{concat:function(t){var e,i,n,s,o,r=jt(this),a=ve(r,0),l=0;for(e=-1,n=arguments.length;eyi)throw TypeError(xi);for(i=0;i=yi)throw TypeError(xi);ci(a,l++,o)}return a.length=l,a}});var Si=_e.filter,Ci=bi("filter"),Mi=Ci&&!r((function(){[].filter.call({length:-1,0:1},(function(t){throw t}))}));Rt({target:"Array",proto:!0,forced:!Ci||!Mi},{filter:function(t){return Si(this,t,arguments.length>1?arguments[1]:void 0)}});var Ti=le("unscopables"),Ai=Array.prototype;null==Ai[Ti]&&P.f(Ai,Ti,{configurable:!0,value:Zt(null)});var Oi=function(t){Ai[Ti][t]=!0},Pi=_e.find,Ei="find",Di=!0;Ei in[]&&Array(1)[Ei]((function(){Di=!1})),Rt({target:"Array",proto:!0,forced:Di},{find:function(t){return Pi(this,t,arguments.length>1?arguments[1]:void 0)}}),Oi(Ei);var Li=_e.findIndex,Ii="findIndex",Ri=!0;Ii in[]&&Array(1)[Ii]((function(){Ri=!1})),Rt({target:"Array",proto:!0,forced:Ri},{findIndex:function(t){return Li(this,t,arguments.length>1?arguments[1]:void 0)}}),Oi(Ii);var Fi=vt.includes;Rt({target:"Array",proto:!0},{includes:function(t){return Fi(this,t,arguments.length>1?arguments[1]:void 0)}}),Oi("includes");var Ni=function(t,e){var i=[][t];return!i||!r((function(){i.call(null,e||function(){throw 1},1)}))},$i=vt.indexOf,ji=[].indexOf,Hi=!!ji&&1/[1].indexOf(1,-0)<0,zi=Ni("indexOf");Rt({target:"Array",proto:!0,forced:Hi||zi},{indexOf:function(t){return Hi?ji.apply(this,arguments)||0:$i(this,t,arguments.length>1?arguments[1]:void 0)}});var Bi,Vi,Wi,Ui=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),qi=Y("IE_PROTO"),Yi=Object.prototype,Xi=Ui?Object.getPrototypeOf:function(t){return t=jt(t),_(t,qi)?t[qi]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Yi:null},Ki=le("iterator"),Gi=!1,Qi=function(){return this};[].keys&&("next"in(Wi=[].keys())?(Vi=Xi(Xi(Wi)))!==Object.prototype&&(Bi=Vi):Gi=!0),null==Bi&&(Bi={}),_(Bi,Ki)||E(Bi,Ki,Qi);var Ji={IteratorPrototype:Bi,BUGGY_SAFARI_ITERATORS:Gi},Zi=Ji.IteratorPrototype,tn=function(t,e,i){var n=e+" Iterator";return t.prototype=Zt(Zi,{next:d(1,i)}),pe(t,n,!1),t},en=function(t){if(!v(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},nn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return A(i),en(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),sn=Ji.IteratorPrototype,on=Ji.BUGGY_SAFARI_ITERATORS,rn=le("iterator"),an="keys",ln="values",hn="entries",cn=function(){return this},dn=function(t,e,i,n,s,o,r){tn(i,e,n);var a,l,h,c=function(t){if(t===s&&g)return g;if(!on&&t in f)return f[t];switch(t){case an:case ln:case hn:return function(){return new i(this,t)}}return function(){return new i(this)}},d=e+" Iterator",u=!1,f=t.prototype,p=f[rn]||f["@@iterator"]||s&&f[s],g=!on&&p||c(s),m="Array"==e&&f.entries||p;if(m&&(a=Xi(m.call(new t)),sn!==Object.prototype&&a.next&&(Xi(a)!==sn&&(nn?nn(a,sn):"function"!=typeof a[rn]&&E(a,rn,cn)),pe(a,d,!0))),s==ln&&p&&p.name!==ln&&(u=!0,g=function(){return p.call(this)}),f[rn]!==g&&E(f,rn,g),s)if(l={values:c(ln),keys:o?g:c(an),entries:c(hn)},r)for(h in l)(on||u||!(h in f))&&ot(f,h,l[h]);else Rt({target:e,proto:!0,forced:on||u},l);return l},un="Array Iterator",fn=st.set,pn=st.getterFor(un),gn=dn(Array,"Array",(function(t,e){fn(this,{type:un,target:b(t),index:0,kind:e})}),(function(){var t=pn(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Oi("keys"),Oi("values"),Oi("entries");var mn=[].join,bn=g!=Object,vn=Ni("join",",");Rt({target:"Array",proto:!0,forced:bn||vn},{join:function(t){return mn.call(b(this),void 0===t?",":t)}});var yn=_e.map,xn=bi("map"),_n=xn&&!r((function(){[].map.call({length:-1,0:1},(function(t){throw t}))}));Rt({target:"Array",proto:!0,forced:!xn||!_n},{map:function(t){return yn(this,t,arguments.length>1?arguments[1]:void 0)}});var wn=[].reverse,kn=[1,2];Rt({target:"Array",proto:!0,forced:String(kn)===String(kn.reverse())},{reverse:function(){return $t(this)&&(this.length=this.length),wn.call(this)}});var Sn=le("species"),Cn=[].slice,Mn=Math.max;Rt({target:"Array",proto:!0,forced:!bi("slice")},{slice:function(t,e){var i,n,s,o=b(this),r=ft(o.length),a=mt(t,r),l=mt(void 0===e?r:e,r);if($t(o)&&("function"!=typeof(i=o.constructor)||i!==Array&&!$t(i.prototype)?v(i)&&null===(i=i[Sn])&&(i=void 0):i=void 0,i===Array||void 0===i))return Cn.call(o,a,l);for(n=new(void 0===i?Array:i)(Mn(l-a,0)),s=0;aIn)throw TypeError(Rn);for(s=ve(l,n),o=0;oh-n+i;o--)delete l[o-1]}else if(i>n)for(o=h-n;o>c;o--)a=o+i-1,(r=o+n-1)in l?l[a]=l[r]:delete l[a];for(o=0;o2)if(43===(e=(h=qn(h)).charCodeAt(0))||45===e){if(88===(i=h.charCodeAt(2))||120===i)return NaN}else if(48===e){switch(h.charCodeAt(1)){case 66:case 98:n=2,s=49;break;case 79:case 111:n=8,s=55;break;default:return+h}for(r=(o=h.slice(2)).length,a=0;as)return NaN;return parseInt(o,n)}return+h};if(Lt(Yn,!Xn(" 0o1")||!Xn("0b1")||Xn("+0x1"))){for(var Jn,Zn=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof Zn&&(Gn?r((function(){Kn.valueOf.call(i)})):f(i)!=Yn)?Fn(new Xn(Qn(e)),i,Zn):Qn(e)},ts=a?Vn(Xn):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),es=0;ts.length>es;es++)_(Xn,Jn=ts[es])&&!_(Zn,Jn)&&Un(Zn,Jn,Wn(Xn,Jn));Zn.prototype=Kn,Kn.constructor=Zn,ot(o,Yn,Zn)}var is=Object.assign,ns=Object.defineProperty,ss=!is||r((function(){if(a&&1!==is({b:1},is(ns({},"a",{enumerable:!0,get:function(){ns(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=is({},t)[i]||Ht(is({},e)).join("")!=n}))?function(t,e){for(var i=jt(t),n=arguments.length,s=1,o=St.f,r=c.f;n>s;)for(var l,h=g(arguments[s++]),d=o?Ht(h).concat(o(h)):Ht(h),u=d.length,f=0;u>f;)l=d[f++],a&&!r.call(h,l)||(i[l]=h[l]);return i}:is;Rt({target:"Object",stat:!0,forced:Object.assign!==ss},{assign:ss});var os=c.f,rs=function(t){return function(e){for(var i,n=b(e),s=Ht(n),o=s.length,r=0,l=[];o>r;)i=s[r++],a&&!os.call(n,i)||l.push(t?[i,n[i]]:n[i]);return l}},as=[rs(!0),rs(!1)][0];Rt({target:"Object",stat:!0},{entries:function(t){return as(t)}});var ls=le("toStringTag"),hs={};hs[ls]="z";var cs="[object z]"===String(hs),ds=le("toStringTag"),us="Arguments"==f(function(){return arguments}()),fs=function(t,e){try{return t[e]}catch(t){}},ps=cs?f:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=fs(e=Object(t),ds))?i:us?f(e):"Object"==(n=f(e))&&"function"==typeof e.callee?"Arguments":n},gs=cs?{}.toString:function(){return"[object "+ps(this)+"]"};cs||ot(Object.prototype,"toString",gs,{unsafe:!0});var ms=Bn.trim,bs=o.parseFloat,vs=1/bs(Nn+"-0")!=-1/0?function(t){var e=ms(String(t)),i=bs(e);return 0===i&&"-"==e.charAt(0)?-0:i}:bs;Rt({global:!0,forced:parseFloat!=vs},{parseFloat:vs});var ys=Bn.trim,xs=o.parseInt,_s=/^[+-]?0[Xx]/,ws=8!==xs(Nn+"08")||22!==xs(Nn+"0x16")?function(t,e){var i=ys(String(t));return xs(i,e>>>0||(_s.test(i)?16:10))}:xs;Rt({global:!0,forced:parseInt!=ws},{parseInt:ws});var ks=function(){var t=A(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 Ss(t,e){return RegExp(t,e)}var Cs,Ms,Ts=r((function(){var t=Ss("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),As=r((function(){var t=Ss("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),Os={UNSUPPORTED_Y:Ts,BROKEN_CARET:As},Ps=RegExp.prototype.exec,Es=String.prototype.replace,Ds=Ps,Ls=(Cs=/a/,Ms=/b*/g,Ps.call(Cs,"a"),Ps.call(Ms,"a"),0!==Cs.lastIndex||0!==Ms.lastIndex),Is=Os.UNSUPPORTED_Y||Os.BROKEN_CARET,Rs=void 0!==/()??/.exec("")[1];(Ls||Rs||Is)&&(Ds=function(t){var e,i,n,s,o=this,r=Is&&o.sticky,a=ks.call(o),l=o.source,h=0,c=t;return r&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),c=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(l="(?: "+l+")",c=" "+c,h++),i=new RegExp("^(?:"+l+")",a)),Rs&&(i=new RegExp("^"+l+"$(?!\\s)",a)),Ls&&(e=o.lastIndex),n=Ps.call(r?i:o,c),r?n?(n.input=n.input.slice(h),n[0]=n[0].slice(h),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:Ls&&n&&(o.lastIndex=o.global?n.index+n[0].length:e),Rs&&n&&n.length>1&&Es.call(n[0],i,(function(){for(s=1;s1?arguments[1]:void 0)}});var qs=function(t){return function(e,i){var n,s,o=String(m(e)),r=dt(i),a=o.length;return r<0||r>=a?t?"":void 0:(n=o.charCodeAt(r))<55296||n>56319||r+1===a||(s=o.charCodeAt(r+1))<56320||s>57343?t?o.charAt(r):n:t?o.slice(r,r+2):s-56320+(n-55296<<10)+65536}},Ys={codeAt:qs(!1),charAt:qs(!0)},Xs=Ys.charAt,Ks="String Iterator",Gs=st.set,Qs=st.getterFor(Ks);dn(String,"String",(function(t){Gs(this,{type:Ks,string:String(t),index:0})}),(function(){var t,e=Qs(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=Xs(i,n),e.index+=t.length,{value:t,done:!1})}));var Js=le("species"),Zs=!r((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),to="$0"==="a".replace(/./,"$0"),eo=!r((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),io=function(t,e,i,n){var s=le(t),o=!r((function(){var e={};return e[s]=function(){return 7},7!=""[t](e)})),a=o&&!r((function(){var e=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[Js]=function(){return i},i.flags="",i[s]=/./[s]),i.exec=function(){return e=!0,null},i[s](""),!e}));if(!o||!a||"replace"===t&&(!Zs||!to)||"split"===t&&!eo){var l=/./[s],h=i(s,""[t],(function(t,e,i,n,s){return e.exec===Fs?o&&!s?{done:!0,value:l.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:to}),c=h[0],d=h[1];ot(String.prototype,t,c),ot(RegExp.prototype,s,2==e?function(t,e){return d.call(t,this,e)}:function(t){return d.call(t,this)})}n&&E(RegExp.prototype[s],"sham",!0)},no=Ys.charAt,so=function(t,e,i){return e+(i?no(t,e).length:1)},oo=function(t,e){var i=t.exec;if("function"==typeof i){var n=i.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==f(t))throw TypeError("RegExp#exec called on incompatible receiver");return Fs.call(t,e)},ro=Math.max,ao=Math.min,lo=Math.floor,ho=/\$([$&'`]|\d\d?|<[^>]*>)/g,co=/\$([$&'`]|\d\d?)/g,uo=function(t){return void 0===t?t:String(t)};io("replace",2,(function(t,e,i,n){return[function(i,n){var s=m(this),o=null==i?void 0:i[t];return void 0!==o?o.call(i,s,n):e.call(String(s),i,n)},function(t,o){if(n.REPLACE_KEEPS_$0||"string"==typeof o&&-1===o.indexOf("$0")){var r=i(e,t,this,o);if(r.done)return r.value}var a=A(t),l=String(this),h="function"==typeof o;h||(o=String(o));var c=a.global;if(c){var d=a.unicode;a.lastIndex=0}for(var u=[];;){var f=oo(a,l);if(null===f)break;if(u.push(f),!c)break;""===String(f[0])&&(a.lastIndex=so(l,ft(a.lastIndex),d))}for(var p="",g=0,m=0;m=g&&(p+=l.slice(g,v)+k,g=v+b.length)}return p+l.slice(g)}];function s(t,i,n,s,o,r){var a=n+t.length,l=s.length,h=co;return void 0!==o&&(o=jt(o),h=ho),e.call(r,h,(function(e,r){var h;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return i.slice(0,n);case"'":return i.slice(a);case"<":h=o[r.slice(1,-1)];break;default:var c=+r;if(0===c)return e;if(c>l){var d=lo(c/10);return 0===d?e:d<=l?void 0===s[d-1]?r.charAt(1):s[d-1]+r.charAt(1):e}h=s[c-1]}return void 0===h?"":h}))}}));var fo=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};io("search",1,(function(t,e,i){return[function(e){var i=m(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,i):new RegExp(e)[t](String(i))},function(t){var n=i(e,t,this);if(n.done)return n.value;var s=A(t),o=String(this),r=s.lastIndex;fo(r,0)||(s.lastIndex=0);var a=oo(s,o);return fo(s.lastIndex,r)||(s.lastIndex=r),null===a?-1:a.index}]}));var po=le("species"),go=function(t,e){var i,n=A(t).constructor;return void 0===n||null==(i=A(n)[po])?e:ge(i)},mo=[].push,bo=Math.min,vo=4294967295,yo=!r((function(){return!RegExp(vo,"y")}));io("split",2,(function(t,e,i){var n;return n="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,i){var n=String(m(this)),s=void 0===i?vo:i>>>0;if(0===s)return[];if(void 0===t)return[n];if(!Vs(t))return e.call(n,t,s);for(var o,r,a,l=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,d=new RegExp(t.source,h+"g");(o=Fs.call(d,n))&&!((r=d.lastIndex)>c&&(l.push(n.slice(c,o.index)),o.length>1&&o.index=s));)d.lastIndex===o.index&&d.lastIndex++;return c===n.length?!a&&d.test("")||l.push(""):l.push(n.slice(c)),l.length>s?l.slice(0,s):l}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,i){var s=m(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,s,i):n.call(String(s),e,i)},function(t,s){var o=i(n,t,this,s,n!==e);if(o.done)return o.value;var r=A(t),a=String(this),l=go(r,RegExp),h=r.unicode,c=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(yo?"y":"g"),d=new l(yo?r:"^(?:"+r.source+")",c),u=void 0===s?vo:s>>>0;if(0===u)return[];if(0===a.length)return null===oo(d,a)?[a]:[];for(var f=0,p=0,g=[];p1?arguments[1]:void 0)}:[].forEach;for(var Mo in ko){var To=o[Mo],Ao=To&&To.prototype;if(Ao&&Ao.forEach!==Co)try{E(Ao,"forEach",Co)}catch(t){Ao.forEach=Co}}var Oo=le("iterator"),Po=le("toStringTag"),Eo=gn.values;for(var Do in ko){var Lo=o[Do],Io=Lo&&Lo.prototype;if(Io){if(Io[Oo]!==Eo)try{E(Io,Oo,Eo)}catch(t){Io[Oo]=Eo}if(Io[Po]||E(Io,Po,Do),ko[Do])for(var Ro in gn)if(Io[Ro]!==gn[Ro])try{E(Io,Ro,gn[Ro])}catch(t){Io[Ro]=gn[Ro]}}}function Fo(t){return Fo="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},Fo(t)}function No(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $o(t,e){for(var i=0;i ':"",i=["bottom","both"].includes(this.options.paginationVAlign)?'':"";this.$container=t('\n
\n
\n ').concat(e,'\n
\n \n
\n
\n \n ').concat(this.options.formatLoadingMessage(),' \n \n \n
\n
\n \n
\n ').concat(i,"\n
\n ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.options.buttonsToolbar?this.$toolbar=t("body").find(this.options.buttonsToolbar):this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('
'),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append('
'),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var i=this,n=[];this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=t('
')).appendTo(this.$el),this.$header.find("tr").each((function(e,i){var s=[];t(i).find("th").each((function(e,i){void 0!==t(i).data("field")&&t(i).data("field","".concat(t(i).data("field"))),s.push(t.extend({},{title:t(i).html(),class:t(i).attr("class"),titleTooltip:t(i).attr("title"),rowspan:t(i).attr("rowspan")?+t(i).attr("rowspan"):void 0,colspan:t(i).attr("colspan")?+t(i).attr("colspan"):void 0},t(i).data()))})),n.push(s)})),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=t.extend(!0,[],n,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],or.setFieldIndex(this.options.columns),this.options.columns.forEach((function(n,s){n.forEach((function(n,o){var r=t.extend({},e.COLUMN_DEFAULTS,n);void 0!==r.fieldIndex&&(i.columns[r.fieldIndex]=r,i.fieldsColumnsIndex[r.field]=r.fieldIndex),i.options.columns[s][o]=r}))})),this.options.data.length||(this.options.data=or.trToData(this.columns,this.$el.find(">tbody>tr")),this.options.data.length&&(this.fromHtml=!0)),this.footerData=or.trToData(this.columns,this.$el.find(">tfoot>tr")),this.footerData&&this.$el.find("tfoot").html("
"),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var e=this,i={},n=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},or.updateFieldGroup(this.options.columns),this.options.columns.forEach((function(t,s){n.push("
"),0===s&&!e.options.cardView&&e.options.detailView&&e.options.detailViewIcon&&n.push('\n
\n \n ')),t.forEach((function(t,o){var r=or.sprintf(' class="%s"',t.class),a=t.widthUnit,l=parseFloat(t.width),h=or.sprintf("text-align: %s; ",t.halign?t.halign:t.align),c=or.sprintf("text-align: %s; ",t.align),d=or.sprintf("vertical-align: %s; ",t.valign);if(d+=or.sprintf("width: %s; ",!t.checkbox&&!t.radio||l?l?l+a:void 0:t.showSelectTitle?void 0:"36px"),void 0!==t.fieldIndex||t.visible){var u=or.calculateObjectValue(null,e.options.headerStyle,[t]),f=[],p="";if(u&&u.css)for(var g=0,m=Object.entries(u.css);g0?" data-not-first-th":"",">"),n.push(or.sprintf('',e.options.sortable&&t.sortable?"sortable both":""));var x=e.options.escape?or.escapeHTML(t.title):t.title,_=x;t.checkbox&&(x="",!e.options.singleSelect&&e.options.checkboxHeader&&(x=' '),e.header.stateField=t.field),t.radio&&(x="",e.header.stateField=t.field),!x&&t.showSelectTitle&&(x+=_),n.push(x),n.push("
"),n.push('
'),n.push(""),n.push("")}})),n.push(" ")})),this.$header.html(n.join("")),this.$header.find("th[data-field]").each((function(e,n){t(n).data(i[t(n).data("field")])})),this.$container.off("click",".th-inner").on("click",".th-inner",(function(i){var n=t(i.currentTarget);if(e.options.detailView&&!n.parent().hasClass("bs-checkbox")&&n.closest(".bootstrap-table")[0]!==e.$container[0])return!1;e.options.sortable&&n.parent().data().sortable&&e.onSort(i)})),this.$header.children().children().off("keypress").on("keypress",(function(i){e.options.sortable&&t(i.currentTarget).data().sortable&&13===(i.keyCode||i.which)&&e.onSort(i)}));var s=or.getResizeEventName(this.$el.attr("id"));t(window).off(s),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),t(window).on(s,(function(){return e.resetView()}))),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",(function(i){i.stopPropagation();var n=t(i.currentTarget).prop("checked");e[n?"checkAll":"uncheckAll"](),e.updateSelected()}))}},{key:"initData",value:function(t,e){this.options.data="append"===e?this.options.data.concat(t):"prepend"===e?[].concat(t).concat(this.options.data):t||this.options.data,this.data=this.options.data,"server"!==this.options.sidePagination&&this.initSort()}},{key:"initSort",value:function(){var t=this,e=this.options.sortName,i="desc"===this.options.sortOrder?-1:1,n=this.header.fields.indexOf(this.options.sortName),s=0;-1!==n&&(this.options.sortStable&&this.data.forEach((function(t,e){t.hasOwnProperty("_position")||(t._position=e)})),this.options.customSort?or.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort((function(s,o){t.header.sortNames[n]&&(e=t.header.sortNames[n]);var r=or.getItemField(s,e,t.options.escape),a=or.getItemField(o,e,t.options.escape),l=or.calculateObjectValue(t.header,t.header.sorters[n],[r,a,s,o]);return void 0!==l?t.options.sortStable&&0===l?i*(s._position-o._position):i*l:or.sort(r,a,i,t.options.sortStable,s._position,o._position)})),void 0!==this.options.sortClass&&(clearTimeout(s),s=setTimeout((function(){t.$el.removeClass(t.options.sortClass);var e=t.$header.find('[data-field="'.concat(t.options.sortName,'"]')).index();t.$el.find("tr td:nth-child(".concat(e+1,")")).addClass(t.options.sortClass)}),250)))}},{key:"onSort",value:function(e){var i=e.type,n=e.currentTarget,s="keypress"===i?t(n):t(n).parent(),o=this.$header.find("th").eq(s.index());if(this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===s.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=s.data("field"),this.options.rememberOrder?this.options.sortOrder="asc"===s.data("order")?"desc":"asc":this.options.sortOrder=this.columns[this.fieldsColumnsIndex[s.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[s.data("field")]].order),this.trigger("sort",this.options.sortName,this.options.sortOrder),s.add(o).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination&&this.options.serverSort)return this.options.pageNumber=1,void this.initServer(this.options.silentSort);this.initSort(),this.initBody()}},{key:"initToolbar",value:function(){var e,i=this,n=this.options,s=[],o=0,r=0;this.$toolbar.find(".bs-bars").children().length&&t("body").append(t(n.toolbar)),this.$toolbar.html(""),"string"!=typeof n.toolbar&&"object"!==Fo(n.toolbar)||t(or.sprintf('
',this.constants.classes.pull,n.toolbarAlign)).appendTo(this.$toolbar).append(t(n.toolbar)),s=['
')],"string"==typeof n.icons&&(n.icons=or.calculateObjectValue(null,n.icons));var a={paginationSwitch:'
\n ').concat(n.showButtonIcons?or.sprintf(this.constants.html.icon,n.iconsPrefix,n.icons.paginationSwitchDown):"","\n ").concat(n.showButtonText?n.formatPaginationSwitchUp():"","\n "),refresh:'
\n ').concat(n.showButtonIcons?or.sprintf(this.constants.html.icon,n.iconsPrefix,n.icons.refresh):"","\n ").concat(n.showButtonText?n.formatRefresh():"","\n "),toggle:'
\n ').concat(n.showButtonIcons?or.sprintf(this.constants.html.icon,n.iconsPrefix,n.icons.toggleOff):"","\n ").concat(n.showButtonText?n.formatToggleOn():"","\n "),fullscreen:'
\n ').concat(n.showButtonIcons?or.sprintf(this.constants.html.icon,n.iconsPrefix,n.icons.fullscreen):"","\n ").concat(n.showButtonText?n.formatFullscreen():"","\n "),columns:function(){var t=[];if(t.push('
\n \n ').concat(n.showButtonIcons?or.sprintf(i.constants.html.icon,n.iconsPrefix,n.icons.columns):"","\n ").concat(n.showButtonText?n.formatColumns():"","\n ").concat(i.constants.html.dropdownCaret,"\n \n ").concat(i.constants.html.toolbarDropdown[0])),n.showColumnsSearch&&(t.push(or.sprintf(i.constants.html.toolbarDropdownItem,or.sprintf(' ',i.constants.classes.input,n.formatSearch()))),t.push(i.constants.html.toolbarDropdownSeparator)),n.showColumnsToggleAll){var e=i.getVisibleColumns().length===i.columns.filter((function(t){return!i.isSelectionColumn(t)})).length;t.push(or.sprintf(i.constants.html.toolbarDropdownItem,or.sprintf(' %s ',e?'checked="checked"':"",n.formatColumnsToggleAll()))),t.push(i.constants.html.toolbarDropdownSeparator)}var s=0;return i.columns.forEach((function(t,e){t.visible&&s++})),i.columns.forEach((function(e,o){if(!i.isSelectionColumn(e)&&(!n.cardView||e.cardVisible)){var a=e.visible?' checked="checked"':"",l=s<=i.options.minimumCountColumns&&a?' disabled="disabled"':"";e.switchable&&(t.push(or.sprintf(i.constants.html.toolbarDropdownItem,or.sprintf(' %s ',e.field,o,a,l,e.title))),r++)}})),t.push(i.constants.html.toolbarDropdown[1],"
"),t.join("")}()};"string"==typeof n.buttonsOrder&&(n.buttonsOrder=n.buttonsOrder.replace(/\[|\]| |'/g,"").toLowerCase().split(","));var l=!0,h=!1,c=void 0;try{for(var d,u=n.buttonsOrder[Symbol.iterator]();!(l=(d=u.next()).done);l=!0){var f=d.value;n["show"+f.charAt(0).toUpperCase()+f.substring(1)]&&s.push(a[f])}}catch(t){h=!0,c=t}finally{try{l||null==u.return||u.return()}finally{if(h)throw c}}if(s.push("
"),(this.showToolbar||s.length>2)&&this.$toolbar.append(s.join("")),n.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",(function(){return i.togglePagination()})),n.showFullscreen&&this.$toolbar.find('button[name="fullscreen"]').off("click").on("click",(function(){return i.toggleFullscreen()})),n.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",(function(){return i.refresh()})),n.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",(function(){i.toggleView()})),n.showColumns){var p=(e=this.$toolbar.find(".keep-open")).find('input[type="checkbox"]:not(".toggle-all")'),g=e.find('input[type="checkbox"].toggle-all');if(r<=n.minimumCountColumns&&e.find("input").prop("disabled",!0),e.find("li, label").off("click").on("click",(function(t){t.stopImmediatePropagation()})),p.off("click").on("click",(function(e){var n=e.currentTarget,s=t(n);i._toggleColumn(s.val(),s.prop("checked"),!1),i.trigger("column-switch",s.data("field"),s.prop("checked")),g.prop("checked",p.filter(":checked").length===i.columns.filter((function(t){return!i.isSelectionColumn(t)})).length)})),g.off("click").on("click",(function(e){var n=e.currentTarget;i._toggleAllColumns(t(n).prop("checked"))})),n.showColumnsSearch){var m=e.find("#columnsSearch"),b=e.find(".dropdown-item-marker");m.on("keyup paste change",(function(e){var i=e.currentTarget,n=t(i).val().toLowerCase();b.show(),p.each((function(e,i){var s=t(i).parents(".dropdown-item-marker");s.text().toLowerCase().includes(n)||s.hide()}))}))}}if(n.search||this.showSearchClearButton){s=[];var v=or.sprintf(this.constants.html.searchButton,this.constants.buttonsClass,n.formatSearch(),n.showButtonIcons?or.sprintf(this.constants.html.icon,n.iconsPrefix,n.icons.search):"",n.showButtonText?n.formatSearch():""),y=or.sprintf(this.constants.html.searchClearButton,this.constants.buttonsClass,n.formatClearSearch(),n.showButtonIcons?or.sprintf(this.constants.html.icon,n.iconsPrefix,n.icons.clearSearch):"",n.showButtonText?n.formatClearSearch():""),x='
'),_=x;if(n.showSearchButton||n.showSearchClearButton){var w=(n.showSearchButton?v:"")+(n.showSearchClearButton?y:"");_=n.search?or.sprintf(this.constants.html.inputGroup,x,w):w}s.push(or.sprintf('\n
\n %s\n
\n '),_)),this.$toolbar.append(s.join(""));var k=this.$toolbar.find(".search input"),S=function(){var t="keyup drop blur ".concat(or.isIEBrowser()?"mouseup":"");k.off(t).on(t,(function(t){n.searchOnEnterKey&&13!==t.keyCode||[37,38,39,40].includes(t.keyCode)||(clearTimeout(o),o=setTimeout((function(){i.onSearch({currentTarget:t.currentTarget})}),n.searchTimeOut))}))};n.showSearchButton?(this.$toolbar.find(".search button[name=search]").off("click").on("click",(function(t){clearTimeout(o),o=setTimeout((function(){i.onSearch({currentTarget:k})}),n.searchTimeOut)})),n.searchOnEnterKey&&S()):S(),n.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click((function(){i.resetSearch()}))}}},{key:"onSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.currentTarget,n=e.firedByInitSearchText,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0!==i&&t(i).length&&s){var o=t(i).val().trim();if(this.options.trimOnSearch&&t(i).val()!==o&&t(i).val(o),this.searchText===o&&o.length>0)return;t(i).hasClass("search-input")&&(this.searchText=o,this.options.searchText=o)}n||(this.options.pageNumber=1),this.initSearch(),n?"client"===this.options.sidePagination&&this.updatePagination():this.updatePagination(),this.trigger("search",this.searchText)}},{key:"initSearch",value:function(){var t=this;if(this.filterOptions=this.filterOptions||this.options.filterOptions,"server"!==this.options.sidePagination){if(this.options.customSearch)return void(this.data=or.calculateObjectValue(this.options,this.options.customSearch,[this.options.data,this.searchText,this.filterColumns]));var e=this.searchText&&(this.fromHtml?or.escapeHTML(this.searchText):this.searchText).toLowerCase(),i=or.isEmptyObject(this.filterColumns)?null:this.filterColumns;"function"==typeof this.filterOptions.filterAlgorithm?this.data=this.options.data.filter((function(e,n){return t.filterOptions.filterAlgorithm.apply(null,[e,i])})):"string"==typeof this.filterOptions.filterAlgorithm&&(this.data=i?this.options.data.filter((function(e,n){var s=t.filterOptions.filterAlgorithm;if("and"===s){for(var o in i)if(Array.isArray(i[o])&&!i[o].includes(e[o])||!Array.isArray(i[o])&&e[o]!==i[o])return!1}else if("or"===s){var r=!1;for(var a in i)(Array.isArray(i[a])&&i[a].includes(e[a])||!Array.isArray(i[a])&&e[a]===i[a])&&(r=!0);return r}return!0})):this.options.data);var n=this.getVisibleFields();this.data=e?this.data.filter((function(i,s){for(var o=0;o
|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm.exec(e),u=!1;if(d){var f=d[1]||"".concat(d[5],"l"),p=d[2]||d[3],g=parseInt(l,10),m=parseInt(p,10);switch(f){case">":case"m;break;case"<":case">l":u=g=l":case"=>l":u=g<=m;break;case">=":case"=>":case"<=l":case"==m}}if(u||"".concat(l).toLowerCase().includes(e))return!0}}return!1})):this.data}this.initSort()}},{key:"initPagination",value:function(){var t=this,e=this.options;if(e.pagination){this.$pagination.show();var i,n,s,o,r,a,l,h=[],c=!1,d=this.getData({includeHiddenRows:!1}),u=e.pageList;"string"==typeof u&&(u=u.replace(/\[|\]| /g,"").toLowerCase().split(",")),u=u.map((function(t){return"string"==typeof t?t.toLowerCase()===e.formatAllRows().toLowerCase()||["all","unlimited"].includes(t.toLowerCase())?e.formatAllRows():+t:t})),"server"!==e.sidePagination&&(e.totalRows=d.length),this.totalPages=0,e.totalRows&&(e.pageSize===e.formatAllRows()&&(e.pageSize=e.totalRows,c=!0),this.totalPages=1+~~((e.totalRows-1)/e.pageSize),e.totalPages=this.totalPages),this.totalPages>0&&e.pageNumber>this.totalPages&&(e.pageNumber=this.totalPages),this.pageFrom=(e.pageNumber-1)*e.pageSize+1,this.pageTo=e.pageNumber*e.pageSize,this.pageTo>e.totalRows&&(this.pageTo=e.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0);var f=e.onlyInfoPagination?e.formatDetailPagination(e.totalRows):e.formatShowingRows(this.pageFrom,this.pageTo,e.totalRows,e.totalNotFiltered);if(h.push('\n ")),!e.onlyInfoPagination){h.push('');var p=['
"),h.push(''),or.sprintf(this.constants.html.pagination[0],or.sprintf(" pagination-%s",e.iconSize)),or.sprintf(this.constants.html.paginationItem," page-pre",e.formatSRPaginationPreText(),e.paginationPreText)),this.totalPagesthis.totalPages-n&&(n=n-(e.paginationSuccessivelySize-(this.totalPages-n))+1),n<1&&(n=1),s>this.totalPages&&(s=this.totalPages);var g=Math.round(e.paginationPagesBySide/2),m=function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return or.sprintf(t.constants.html.paginationItem,n+(i===e.pageNumber?" ".concat(t.constants.classes.paginationActive):""),e.formatSRPaginationPageText(i),i)};if(n>1){var b=e.paginationPagesBySide;for(b>=n&&(b=n-1),i=1;i<=b;i++)h.push(m(i));n-1===b+1?(i=n-1,h.push(m(i))):n-1>b&&(n-2*e.paginationPagesBySide>e.paginationPagesBySide&&e.paginationUseIntermediate?(i=Math.round((n-g)/2+g),h.push(m(i," page-intermediate"))):h.push(or.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(i=n;i<=s;i++)h.push(m(i));if(this.totalPages>s){var v=this.totalPages-(e.paginationPagesBySide-1);for(s>=v&&(v=s+1),s+1===v-1?(i=s+1,h.push(m(i))):v>s+1&&(this.totalPages-s>2*e.paginationPagesBySide&&e.paginationUseIntermediate?(i=Math.round((this.totalPages-g-s)/2+s),h.push(m(i," page-intermediate"))):h.push(or.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),i=v;i<=this.totalPages;i++)h.push(m(i))}h.push(or.sprintf(this.constants.html.paginationItem," page-next",e.formatSRPaginationNextText(),e.paginationNextText)),h.push(this.constants.html.pagination[1],"
")}this.$pagination.html(h.join(""));var y=["bottom","both"].includes(e.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";this.$pagination.last().find(".page-list > span").addClass(y),e.onlyInfoPagination||(o=this.$pagination.find(".page-list a"),r=this.$pagination.find(".page-pre"),a=this.$pagination.find(".page-next"),l=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),e.smartDisplay&&(u.length<2||e.totalRows<=u[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),e.paginationLoop||(1===e.pageNumber&&r.addClass("disabled"),e.pageNumber===this.totalPages&&a.addClass("disabled")),c&&(e.pageSize=e.formatAllRows()),o.off("click").on("click",(function(e){return t.onPageListChange(e)})),r.off("click").on("click",(function(e){return t.onPagePre(e)})),a.off("click").on("click",(function(e){return t.onPageNext(e)})),l.off("click").on("click",(function(e){return t.onPageNumber(e)})))}else this.$pagination.hide()}},{key:"updatePagination",value:function(e){e&&t(e.currentTarget).hasClass("disabled")||(this.options.maintainMetaData||this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))}},{key:"onPageListChange",value:function(e){e.preventDefault();var i=t(e.currentTarget);return i.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=i.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+i.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e),!1}},{key:"onPagePre",value:function(t){return t.preventDefault(),this.options.pageNumber-1==0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(t),!1}},{key:"onPageNext",value:function(t){return t.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(t),!1}},{key:"onPageNumber",value:function(e){if(e.preventDefault(),this.options.pageNumber!==+t(e.currentTarget).text())return this.options.pageNumber=+t(e.currentTarget).text(),this.updatePagination(e),!1}},{key:"initRow",value:function(t,e,i,n){var s=this,o=[],r={},a=[],l="",h={},c=[];if(!(or.findIndex(this.hiddenRows,t)>-1)){if((r=or.calculateObjectValue(this.options,this.options.rowStyle,[t,e],r))&&r.css)for(var d=0,u=Object.entries(r.css);d"),this.options.cardView&&o.push('')),!this.options.cardView&&this.options.detailView&&this.options.detailViewIcon&&(o.push("
"),or.calculateObjectValue(null,this.options.detailFilter,[e,t])&&o.push('\n \n '.concat(or.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n \n ")),o.push(" ")),this.header.fields.forEach((function(i,n){var r="",l=or.getItemField(t,i,s.options.escape),h="",c="",d={},u="",f=s.header.classes[n],p="",g="",m="",b="",v="",y=s.columns[n];if((!s.fromHtml||void 0!==l||y.checkbox||y.radio)&&y.visible&&(!s.options.cardView||y.cardVisible)){if(y.escape&&(l=or.escapeHTML(l)),a.concat([s.header.styles[n]]).length&&(p=' style="'.concat(a.concat([s.header.styles[n]]).join("; "),'"')),t["_".concat(i,"_id")]&&(u=or.sprintf(' id="%s"',t["_".concat(i,"_id")])),t["_".concat(i,"_class")]&&(f=or.sprintf(' class="%s"',t["_".concat(i,"_class")])),t["_".concat(i,"_rowspan")]&&(m=or.sprintf(' rowspan="%s"',t["_".concat(i,"_rowspan")])),t["_".concat(i,"_colspan")]&&(b=or.sprintf(' colspan="%s"',t["_".concat(i,"_colspan")])),t["_".concat(i,"_title")]&&(v=or.sprintf(' title="%s"',t["_".concat(i,"_title")])),(d=or.calculateObjectValue(s.header,s.header.cellStyles[n],[l,t,e,i],d)).classes&&(f=' class="'.concat(d.classes,'"')),d.css){for(var x=[],_=0,w=Object.entries(d.css);_
'):'"),'\n \n \n "),s.header.formatters[n]&&"string"==typeof h?h:"",s.options.cardView?"":" "].join(""),t[s.header.stateField]=!0===h||!!l||h&&h.checked}else if(h=null==h?s.options.undefinedText:h,s.options.cardView){var I=s.options.showHeader?'").concat(or.getFieldTitle(s.columns,i)," "):"";r=''.concat(I,'').concat(h,"
"),s.options.smartDisplay&&""===h&&(r='
')}else r="").concat(h," ");o.push(r)}})),this.options.cardView&&o.push(" "),o.push(""),o.join("")}}},{key:"initBody",value:function(e){var i=this,n=this.getData();this.trigger("pre-body",n),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=t(" ").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=n.length);for(var s=[],o=t(document.createDocumentFragment()),r=!1,a=this.pageFrom-1;a'.concat(or.sprintf('%s ',this.$header.find("th").length,this.options.formatNoMatches()),"")),e||this.scrollTo(0),this.initBodyEvent(),this.updateSelected(),this.initFooter(),this.resetView(),"server"!==this.options.sidePagination&&(this.options.totalRows=n.length),this.trigger("post-body",n)}},{key:"initBodyEvent",value:function(){var e=this;this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",(function(i){var n=t(i.currentTarget),s=n.parent(),o=t(i.target).parents(".card-views").children(),r=t(i.target).parents(".card-view"),a=s.data("index"),l=e.data[a],h=e.options.cardView?o.index(r):n[0].cellIndex,c=e.getVisibleFields()[e.options.detailView&&e.options.detailViewIcon&&!e.options.cardView?h-1:h],d=e.columns[e.fieldsColumnsIndex[c]],u=or.getItemField(l,c,e.options.escape);if(!n.find(".detail-icon").length){if(e.trigger("click"===i.type?"click-cell":"dbl-click-cell",c,u,l,n),e.trigger("click"===i.type?"click-row":"dbl-click-row",l,s,c),"click"===i.type&&e.options.clickToSelect&&d.clickToSelect&&!or.calculateObjectValue(e.options,e.options.ignoreClickToSelectOn,[i.target])){var f=s.find(or.sprintf('[name="%s"]',e.options.selectItemName));f.length&&f[0].click()}"click"===i.type&&e.options.detailViewByClick&&e.toggleDetailView(a,e.header.detailFormatters[e.fieldsColumnsIndex[c]])}})).off("mousedown").on("mousedown",(function(t){e.multipleSelectRowCtrlKey=t.ctrlKey||t.metaKey,e.multipleSelectRowShiftKey=t.shiftKey})),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",(function(i){return i.preventDefault(),e.toggleDetailView(t(i.currentTarget).parent().parent().data("index")),!1})),this.$selectItem=this.$body.find(or.sprintf('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",(function(i){i.stopImmediatePropagation();var n=t(i.currentTarget);e._toggleCheck(n.prop("checked"),n.data("index"))})),this.header.events.forEach((function(i,n){var s=i;if(s){"string"==typeof s&&(s=or.calculateObjectValue(null,s));var o=e.header.fields[n],r=e.getVisibleFields().indexOf(o);if(-1!==r){e.options.detailView&&!e.options.cardView&&(r+=1);var a=function(i){if(!s.hasOwnProperty(i))return"continue";var n=s[i];e.$body.find(">tr:not(.no-records-found)").each((function(s,a){var l=t(a),h=l.find(e.options.cardView?".card-views>.card-view":">td").eq(r),c=i.indexOf(" "),d=i.substring(0,c),u=i.substring(c+1);h.find(u).off(d).on(d,(function(t){var i=l.data("index"),s=e.data[i],r=s[o];n.apply(e,[t,r,s,i])}))}))};for(var l in s)a(l)}}}))}},{key:"initServer",value:function(e,i,n){var s=this,o={},r=this.header.fields.indexOf(this.options.sortName),a={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[r]&&(a.sortName=this.header.sortNames[r]),this.options.pagination&&"server"===this.options.sidePagination&&(a.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,a.pageNumber=this.options.pageNumber),(n||this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(a={search:a.searchText,sort:a.sortName,order:a.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(a.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),a.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,0===a.limit&&delete a.limit)),or.isEmptyObject(this.filterColumnsPartial)||(a.filter=JSON.stringify(this.filterColumnsPartial,null)),t.extend(a,i||{}),!1!==(o=or.calculateObjectValue(this.options,this.options.queryParams,[a],o)))){e||this.showLoading();var l=t.extend({},or.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:n||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(o):o,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t,i,n){var o=or.calculateObjectValue(s.options,s.options.responseHandler,[t,n],t);s.load(o),s.trigger("load-success",o,n&&n.status,n),e||s.hideLoading(),"server"===s.options.sidePagination&&o[s.options.totalField]>0&&!o[s.options.dataField].length&&s.updatePagination()},error:function(t){var i=[];"server"===s.options.sidePagination&&((i={})[s.options.totalField]=0,i[s.options.dataField]=[]),s.load(i),s.trigger("load-error",t&&t.status,t),e||s.$tableLoading.hide()}});return this.options.ajax?or.calculateObjectValue(this,this.options.ajax,[l],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=t.ajax(l)),o}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var t=this.$toolbar.find(".search input");t.val(this.options.searchText),this.onSearch({currentTarget:t,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var e=this;this.$header.find("th").each((function(i,n){t(n).find(".sortable").removeClass("desc asc").addClass(t(n).data("field")===e.options.sortName?e.options.sortOrder:"both")}))}},{key:"updateSelected",value:function(){var e=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each((function(e,i){t(i).closest("tr")[t(i).prop("checked")?"addClass":"removeClass"]("selected")}))}},{key:"updateRows",value:function(){var e=this;this.$selectItem.each((function(i,n){e.data[t(n).data("index")][e.header.stateField]=t(n).prop("checked")}))}},{key:"resetRows",value:function(){var t=!0,e=!1,i=void 0;try{for(var n,s=this.data[Symbol.iterator]();!(t=(n=s.next()).done);t=!0){var o=n.value;this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(o[this.header.stateField]=!1)}}catch(t){e=!0,i=t}finally{try{t||null==s.return||s.return()}finally{if(e)throw i}}this.initHiddenRows()}},{key:"trigger",value:function(i){for(var n,s="".concat(i,".bs.table"),o=arguments.length,r=new Array(o>1?o-1:0),a=1;ai.clientWidth&&i.scrollHeight>i.clientHeight+this.$header.outerHeight()?or.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var s=t(":focus");if(s.length>0){var o=s.parents("th");if(o.length>0){var r=o.attr("data-field");if(void 0!==r){var a=this.$header.find("[data-field='".concat(r,"']"));a.length>0&&a.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css("margin-right",n).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),this.$tableLoading.css("width",this.$el.outerWidth());var l=t(".focus-temp:visible:eq(0)");l.length>0&&(l.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each((function(i,n){e.$header_.find(or.sprintf('th[data-field="%s"]',t(n).data("field"))).data(t(n).data())}));for(var h=this.getVisibleFields(),c=this.$header_.find("th"),d=this.$body.find(">tr:not(.no-records-found,.virtual-scroll-top)").eq(0);d.length&&d.find('>td[colspan]:not([colspan="1"])').length;)d=d.next();d.find("> *").each((function(i,n){var s=t(n),o=i;if(e.options.detailView&&e.options.detailViewIcon&&!e.options.cardView){if(0===i){var r=c.filter(".detail"),a=r.innerWidth()-r.find(".fht-cell").width();r.find(".fht-cell").width(s.innerWidth()-a)}o=i-1}if(-1!==o){var l=e.$header_.find(or.sprintf('th[data-field="%s"]',h[o]));l.length>1&&(l=t(c[s[0].cellIndex]));var d=l.innerWidth()-l.find(".fht-cell").width();l.find(".fht-cell").width(s.innerWidth()-d)}})),this.horizontalScroll(),this.trigger("post-header")}}},{key:"initFooter",value:function(){if(this.options.showFooter&&!this.options.cardView){var t=this.getData(),e=[];!this.options.cardView&&this.options.detailView&&this.options.detailViewIcon&&e.push('
');var i=!0,n=!1,s=void 0;try{for(var o,r=this.columns[Symbol.iterator]();!(i=(o=r.next()).done);i=!0){var a=o.value,l="",h="",c=[],d={},u=or.sprintf(' class="%s"',a.class);if(a.visible){if(this.options.cardView&&!a.cardVisible)return;if(l=or.sprintf("text-align: %s; ",a.falign?a.falign:a.align),h=or.sprintf("vertical-align: %s; ",a.valign),(d=or.calculateObjectValue(null,this.options.footerStyle,[a]))&&d.css)for(var f=0,p=Object.entries(d.css);f"),e.push(''),e.push(or.calculateObjectValue(a,a.footerFormatter,[t],this.footerData[0]&&this.footerData[0][a.field]||"")),e.push("
"),e.push('
'),e.push(" "),e.push("")}}}catch(t){n=!0,s=t}finally{try{i||null==r.return||r.return()}finally{if(n)throw s}}this.options.height||this.$tableFooter.length||(this.$el.append("
"),this.$tableFooter=this.$el.find("tfoot")),this.$tableFooter.find("tr").html(e.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var e=this;if(this.$el.is(":hidden"))setTimeout((function(){return e.fitFooter()}),100);else{var i=this.$tableBody.get(0),n=i.scrollWidth>i.clientWidth&&i.scrollHeight>i.clientHeight+this.$header.outerHeight()?or.getScrollBarWidth():0;this.$tableFooter.css("margin-right",n).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class")),this.getVisibleFields();for(var s=this.$tableFooter.find("th"),o=this.$body.find(">tr:first-child:not(.no-records-found)");o.length&&o.find('>td[colspan]:not([colspan="1"])').length;)o=o.next();o.find("> *").each((function(i,n){var o=t(n),r=i;if(e.options.detailView&&!e.options.cardView){if(0===i){var a=s.filter(".detail"),l=a.innerWidth()-a.find(".fht-cell").width();a.find(".fht-cell").width(o.innerWidth()-l)}r=i-1}if(-1!==r){var h=s.eq(i),c=h.innerWidth()-h.find(".fht-cell").width();h.find(".fht-cell").width(o.innerWidth()-c)}})),this.horizontalScroll()}}},{key:"horizontalScroll",value:function(){var t=this;this.$tableBody.off("scroll").on("scroll",(function(){var e=t.$tableBody.scrollLeft();t.options.showHeader&&t.options.height&&t.$tableHeader.scrollLeft(e),t.options.showFooter&&!t.options.cardView&&t.$tableFooter.scrollLeft(e),t.trigger("scroll-body",t.$tableBody)}))}},{key:"getVisibleFields",value:function(){var t=[],e=!0,i=!1,n=void 0;try{for(var s,o=this.header.fields[Symbol.iterator]();!(e=(s=o.next()).done);e=!0){var r=s.value,a=this.columns[this.fieldsColumnsIndex[r]];a&&a.visible&&t.push(r)}}catch(t){i=!0,n=t}finally{try{e||null==o.return||o.return()}finally{if(i)throw n}}return t}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var e=t.extend({},this.options);return delete e.data,t.extend(!0,{},e)}},{key:"refreshOptions",value:function(e){or.compareObjects(this.options,e,!0)||(this.options=t.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(t){var e=this.options.data;if(!(this.searchText||this.options.customSearch||this.options.sortName)&&or.isEmptyObject(this.filterColumns)&&or.isEmptyObject(this.filterColumnsPartial)||t&&t.unfiltered||(e=this.data),t&&t.useCurrentPage&&(e=e.slice(this.pageFrom-1,this.pageTo)),t&&!t.includeHiddenRows){var i=this.getHiddenRows();e=e.filter((function(t){return-1===or.findIndex(i,t)}))}return e}},{key:"getSelections",value:function(){var t=this;return this.data.filter((function(e){return!0===e[t.header.stateField]}))}},{key:"getAllSelections",value:function(){var t=this;return this.options.data.filter((function(e){return!0===e[t.header.stateField]}))}},{key:"load",value:function(t){var e=!1,i=t;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=i[this.options.totalField]),this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalNotFiltered=i[this.options.totalNotFilteredField]),e=i.fixedScroll,i=Array.isArray(i)?i:i[this.options.dataField],this.initData(i),this.initSearch(),this.initPagination(),this.initBody(e)}},{key:"append",value:function(t){this.initData(t,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(t){this.initData(t,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(t){var e,i,n=this.options.data.length;if(t.hasOwnProperty("field")&&t.hasOwnProperty("values")){for(e=n-1;e>=0;e--)(i=this.options.data[e]).hasOwnProperty(t.field)&&t.values.includes(i[t.field])&&(this.options.data.splice(e,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1));n!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}}},{key:"removeAll",value:function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"insertRow",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(this.options.data.splice(t.index,0,t.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"updateRow",value:function(e){var i=Array.isArray(e)?e:[e],n=!0,s=!1,o=void 0;try{for(var r,a=i[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var l=r.value;l.hasOwnProperty("index")&&l.hasOwnProperty("row")&&(t.extend(this.options.data[l.index],l.row),l.hasOwnProperty("replace")&&l.replace?this.options.data[l.index]=l.row:t.extend(this.options.data[l.index],l.row))}}catch(t){s=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(s)throw o}}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"getRowByUniqueId",value:function(t){var e,i,n,s=this.options.uniqueId,o=t,r=null;for(e=this.options.data.length-1;e>=0;e--){if((i=this.options.data[e]).hasOwnProperty(s))n=i[s];else{if(!i._data||!i._data.hasOwnProperty(s))continue;n=i._data[s]}if("string"==typeof n?o=o.toString():"number"==typeof n&&(Number(n)===n&&n%1==0?o=parseInt(o):n===Number(n)&&0!==n&&(o=parseFloat(o))),n===o){r=i;break}}return r}},{key:"updateByUniqueId",value:function(e){var i=Array.isArray(e)?e:[e],n=!0,s=!1,o=void 0;try{for(var r,a=i[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var l=r.value;if(l.hasOwnProperty("id")&&l.hasOwnProperty("row")){var h=this.options.data.indexOf(this.getRowByUniqueId(l.id));-1!==h&&(l.hasOwnProperty("replace")&&l.replace?this.options.data[h]=l.row:t.extend(this.options.data[h],l.row))}}}catch(t){s=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(s)throw o}}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"removeByUniqueId",value:function(t){var e=this.options.data.length,i=this.getRowByUniqueId(t);i&&this.options.data.splice(this.options.data.indexOf(i),1),e!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"updateCell",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("field")&&t.hasOwnProperty("value")&&(this.data[t.index][t.field]=t.value,!1!==t.reinit&&(this.initSort(),this.initBody(!0)))}},{key:"updateCellByUniqueId",value:function(t){var e=this;t.hasOwnProperty("id")&&t.hasOwnProperty("field")&&t.hasOwnProperty("value")&&((Array.isArray(t)?t:[t]).forEach((function(t){var i=t.id,n=t.field,s=t.value,o=e.options.data.indexOf(e.getRowByUniqueId(i));-1!==o&&(e.options.data[o][n]=s)})),!1!==t.reinit&&(this.initSort(),this.initBody(!0)))}},{key:"showRow",value:function(t){this._toggleRow(t,!0)}},{key:"hideRow",value:function(t){this._toggleRow(t,!1)}},{key:"_toggleRow",value:function(t,e){var i;if(t.hasOwnProperty("index")?i=this.getData()[t.index]:t.hasOwnProperty("uniqueId")&&(i=this.getRowByUniqueId(t.uniqueId)),i){var n=or.findIndex(this.hiddenRows,i);e||-1!==n?e&&n>-1&&this.hiddenRows.splice(n,1):this.hiddenRows.push(i),e?this.updatePagination():(this.initBody(!0),this.initPagination())}}},{key:"getHiddenRows",value:function(t){if(t)return this.initHiddenRows(),void this.initBody(!0);var e=this.getData(),i=[],n=!0,s=!1,o=void 0;try{for(var r,a=e[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var l=r.value;this.hiddenRows.includes(l)&&i.push(l)}}catch(t){s=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(s)throw o}}return this.hiddenRows=i,i}},{key:"showColumn",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach((function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!0,!0)}))}},{key:"hideColumn",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach((function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!1,!0)}))}},{key:"_toggleColumn",value:function(t,e,i){if(-1!==t&&this.columns[t].visible!==e&&(this.columns[t].visible=e,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var n=this.$toolbar.find('.keep-open input:not(".toggle-all")').prop("disabled",!1);i&&n.filter(or.sprintf('[value="%s"]',t)).prop("checked",e),n.filter(":checked").length<=this.options.minimumCountColumns&&n.filter(":checked").prop("disabled",!0)}}},{key:"getVisibleColumns",value:function(){var t=this;return this.columns.filter((function(e){return e.visible&&!t.isSelectionColumn(e)}))}},{key:"getHiddenColumns",value:function(){return this.columns.filter((function(t){return!t.visible}))}},{key:"isSelectionColumn",value:function(t){return t.radio||t.checkbox}},{key:"showAllColumns",value:function(){this._toggleAllColumns(!0)}},{key:"hideAllColumns",value:function(){this._toggleAllColumns(!1)}},{key:"_toggleAllColumns",value:function(e){var i=this,n=!0,s=!1,o=void 0;try{for(var r,a=this.columns.slice().reverse()[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var l=r.value;if(l.switchable){if(!e&&this.options.showColumns&&this.getVisibleColumns().length===this.options.minimumCountColumns)continue;l.visible=e}}}catch(t){s=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(s)throw o}}if(this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var h=this.$toolbar.find('.keep-open input[type="checkbox"]:not(".toggle-all")').prop("disabled",!1);e?h.prop("checked",e):h.get().reverse().forEach((function(n){h.filter(":checked").length>i.options.minimumCountColumns&&t(n).prop("checked",e)})),h.filter(":checked").length<=this.options.minimumCountColumns&&h.filter(":checked").prop("disabled",!0)}}},{key:"mergeCells",value:function(t){var e,i,n=t.index,s=this.getVisibleFields().indexOf(t.field),o=t.rowspan||1,r=t.colspan||1,a=this.$body.find(">tr");this.options.detailView&&!this.options.cardView&&(s+=1);var l=a.eq(n).find(">td").eq(s);if(!(n<0||s<0||n>=this.data.length)){for(e=n;e
td").eq(i).hide();l.attr("rowspan",o).attr("colspan",r).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(t){var e=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.filter(":enabled").prop("checked",t),this.updateRows();var i=this.getSelections();t?this.trigger("check-all",i,e):this.trigger("uncheck-all",i,e)}},{key:"checkInvert",value:function(){var e=this.$selectItem.filter(":enabled"),i=e.filter(":checked");e.each((function(e,i){t(i).prop("checked",!t(i).prop("checked"))})),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",i),i=this.getSelections(),this.trigger("check-some",i)}},{key:"check",value:function(t){this._toggleCheck(!0,t)}},{key:"uncheck",value:function(t){this._toggleCheck(!1,t)}},{key:"_toggleCheck",value:function(t,e){var i=this.$selectItem.filter('[data-index="'.concat(e,'"]')),n=this.data[e];if(i.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var s=!0,o=!1,r=void 0;try{for(var a,l=this.options.data[Symbol.iterator]();!(s=(a=l.next()).done);s=!0)a.value[this.header.stateField]=!1}catch(t){o=!0,r=t}finally{try{s||null==l.return||l.return()}finally{if(o)throw r}}this.$selectItem.filter(":checked").not(i).prop("checked",!1)}if(n[this.header.stateField]=t,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&this.multipleSelectRowLastSelectedIndex>=0)for(var h=[this.multipleSelectRowLastSelectedIndex,e].sort(),c=h[0]+1;c0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.$tableContainer.toggleClass("has-card-view",this.options.cardView),!this.options.cardView&&this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),e+=this.$header.outerHeight(!0)+1):(this.$tableHeader.hide(),this.trigger("post-header")),!this.options.cardView&&this.options.showFooter&&(this.$tableFooter.show(),this.fitFooter(),this.options.height&&(e+=this.$tableFooter.outerHeight(!0))),this.$container.hasClass("fullscreen"))this.$tableContainer.css("height",""),this.$tableContainer.css("width","");else if(this.options.height){var i=this.$toolbar.outerHeight(!0),n=this.$pagination.outerHeight(!0),s=this.options.height-i-n,o=this.$tableBody.find(">table"),r=o.outerHeight();if(this.$tableContainer.css("height","".concat(s,"px")),this.$tableBorder){var a=s-r-2;this.$tableBody[0].scrollWidth-this.$tableBody.innerWidth()&&(a-=or.getScrollBarWidth()),this.$tableBorder.css("width","".concat(o.outerWidth(),"px")),this.$tableBorder.css("height","".concat(a,"px"))}}this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),this.$tableFooter.hide()):(this.getCaret(),this.$tableContainer.css("padding-bottom","".concat(e,"px"))),this.trigger("reset-view")}},{key:"showLoading",value:function(){this.$tableLoading.css("display","flex")}},{key:"hideLoading",value:function(){this.$tableLoading.css("display","none")}},{key:"togglePagination",value:function(){this.options.pagination=!this.options.pagination;var t=this.options.showButtonIcons?this.options.pagination?this.options.icons.paginationSwitchDown:this.options.icons.paginationSwitchUp:"",e=this.options.showButtonText?this.options.pagination?this.options.formatPaginationSwitchUp():this.options.formatPaginationSwitchDown():"";this.$toolbar.find('button[name="paginationSwitch"]').html(or.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)+" "+e),this.updatePagination()}},{key:"toggleFullscreen",value:function(){this.$el.closest(".bootstrap-table").toggleClass("fullscreen"),this.resetView()}},{key:"toggleView",value:function(){this.options.cardView=!this.options.cardView,this.initHeader();var t=this.options.showButtonIcons?this.options.cardView?this.options.icons.toggleOn:this.options.icons.toggleOff:"",e=this.options.showButtonText?this.options.cardView?this.options.formatToggleOff():this.options.formatToggleOn():"";this.$toolbar.find('button[name="toggle"]').html(or.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)+" "+e),this.initBody(),this.trigger("toggle",this.options.cardView)}},{key:"resetSearch",value:function(t){var e=this.$toolbar.find(".search input");e.val(t||""),this.onSearch({currentTarget:e})}},{key:"filterBy",value:function(e,i){this.filterOptions=or.isEmptyObject(i)?this.options.filterOptions:t.extend(this.options.filterOptions,i),this.filterColumns=or.isEmptyObject(e)?{}:e,this.options.pageNumber=1,this.initSearch(),this.updatePagination()}},{key:"scrollTo",value:function(e){if(void 0===e)return this.$tableBody.scrollTop();var i={unit:"px",value:0};"object"===Fo(e)?i=Object.assign(i,e):"string"==typeof e&&"bottom"===e?i.value=this.$tableBody[0].scrollHeight:"string"==typeof e&&(i.value=e);var n=i.value;"rows"===i.unit&&(n=0,this.$body.find("> tr:lt(".concat(i.value,")")).each((function(e,i){n+=t(i).outerHeight(!0)}))),this.$tableBody.scrollTop(n)}},{key:"getScrollPosition",value:function(){return this.scrollTo()}},{key:"selectPage",value:function(t){t>0&&t<=this.options.totalPages&&(this.options.pageNumber=t,this.updatePagination())}},{key:"prevPage",value:function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())}},{key:"nextPage",value:function(){this.options.pageNumber tr[data-index="%s"]',t)).next().is("tr.detail-view")?this.collapseRow(t):this.expandRow(t,e),this.resetView()}},{key:"expandRow",value:function(t,e){var i=this.data[t],n=this.$body.find(or.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));if(!n.next().is("tr.detail-view")){this.options.detailViewIcon&&n.find("a.detail-icon").html(or.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),n.after(or.sprintf(' ',n.children("td").length));var s=n.next().find("td"),o=e||this.options.detailFormatter,r=or.calculateObjectValue(this.options,o,[t,i,s],"");1===s.length&&s.append(r),this.trigger("expand-row",t,i,s)}}},{key:"collapseRow",value:function(t){var e=this.data[t],i=this.$body.find(or.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));i.next().is("tr.detail-view")&&(this.options.detailViewIcon&&i.find("a.detail-icon").html(or.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",t,e,i.next()),i.next().remove())}},{key:"expandAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),i=0;i tr[data-index][data-has-detail-view]"),i=0;i1?i-1:0),s=1;s{$(document).ready((function(){var t=function(t){var e=t.length;0==e?($("#adminEditButton").prop("disabled",!0),$("#adminDeleteButton").prop("disabled",!0)):1==e?($("#adminEditButton").prop("disabled",!1),$("#adminDeleteButton").prop("disabled",!1)):($("#adminEditButton").prop("disabled",!0),$("#adminDeleteButton").prop("disabled",!1))};$("#formModalSubmit").click((function(){$("#formModal").modal("handleUpdate"),$("#loading").modal({backdrop:!1,show:!0});let t=$("#ajaxForm"),e=new FormData(document.querySelector("#ajaxForm"));$.ajax({url:t.attr("action"),data:e,processData:!1,contentType:!1,type:t.attr("method")}).done((function(t){"success"===t.success?($("#loading").modal("hide"),$("#formMessages").html('"),$("#bsTable").bootstrapTable("refresh"),setTimeout((function(){$("#formModal").modal("hide")}),1500)):($("#loading").modal("hide"),$("#formMessages").html('× '+t.message+"
"))})).fail((function(t){$("#loading").modal("hide"),$("#formModal").modal("hide")}))}));var e=function(){$("#adminEditButton").prop("disabled",!0),$("#adminDeleteButton").prop("disabled",!0)};$("#bsTable").on("load-success.bs.table",(function(){e()})),$("#bsTable").on("load-error.bs.table",(function(t,i,n){var s;0==(s=n).status&&"abort"==s.statusText||(401==s.status?($("#modalCloseButton").click((function(){window.location.reload()})),showAlertDialog("Authorization error","You session has expired. The page will be reloaded in order to re-authenticate","error")):403==s.status?showAlertDialog("Authorization error","You are not authorized to run this operation","error"):showAlertDialog("Unexpected server error","Could not load form due to a server error. Please try again","error")),e()})),$("#bsTable").on("check.bs.table",(function(){var e=$("#bsTable").bootstrapTable("getSelections");t(e)})),$("#bsTable").on("uncheck.bs.table",(function(){var e=$("#bsTable").bootstrapTable("getSelections");t(e)})),$("#bsTable").on("check-all.bs.table",(function(){var e=$("#bsTable").bootstrapTable("getSelections");t(e)})),$("#bsTable").on("uncheck-all.bs.table",(function(){var e=$("#bsTable").bootstrapTable("getSelections");t(e)}))}))},565:(t,e,i)=>{"use strict";
/*!
* @kurkle/color v0.3.2
* https://github.com/kurkle/color#readme
diff --git a/src/App/assets/js/components/_bootstrap-table.js b/src/App/assets/js/components/_bootstrap-table.js
index 4817ec1..65ceab6 100644
--- a/src/App/assets/js/components/_bootstrap-table.js
+++ b/src/App/assets/js/components/_bootstrap-table.js
@@ -4950,7 +4950,7 @@
if (!opts.onlyInfoPagination) {
html.push('');
- var pageNumber = ["