// create a test node off the browser screen to calculate high contrast mode var testNode = document.createElement("div"); testNode.className = "highContrastTestNode"; document.body.appendChild(testNode); // look at the computed style for the test node var styles = null; try { styles = document.defaultView.getComputedStyle(testNode, ""); } catch(e) { styles = testNode.currentStyle; } var testImg = styles.backgroundImage; if ((styles.borderTopColor == styles.borderRightColor) || (testImg != null && (testImg == "none" || testImg == "url(invalid-url:)" ))) { document.getElementsByTagName("body")[0].className+=" lotusImagesOff"; } document.body.removeChild(testNode);(function(){ var _1=ibmCfg.portalConfig.contentHandlerURI+((ibmCfg.portalConfig.contentHandlerURI.indexOf("?")<0)?"?":"&")+"uri=menu:${id}"; var _2=false; var _3=function(){ return i$.hasClass(document.getElementsByTagName("body")[0],"edit-mode"); }; if(typeof wptheme==="undefined"||!wptheme){ wptheme={}; } i$.mash(wptheme,{getWindowIDFromSkin:function(_4){ while((_4=_4.parentNode)!=null){ if(i$.hasClass(_4,"component-control")){ var m=_4&&(_4.className||"").match(/id-([\S]+)/); return m&&m[1]; } } return null; },getPortletState:function(_5){ var _6=i$.byId("portletState"); if(_6){ if(!_6._cache){ _6._cache=i$.fromJson(_6.innerHTML); _6._cache._defaults={"windowState":"normal","portletMode":"view"}; } if(_6._cache[_5]){ return _6._cache[_5]; }else{ return _6._cache._defaults; } } return {}; },isValidOp:function(_7){ if(_7.visibility===false){ return false; } var _8=_7.metadata||{}; switch(_7.id){ case "ibm.portal.operations.changePortletMode": return wptheme.getPortletState(_8.wid).portletMode!=_8.portletMode; case "ibm.portal.operations.changeWindowState": return wptheme.getPortletState(_8.wid).windowState!=_8.windowState; default: } return true; },operation:{changeToHelpMode:function(_9){ var _a=window.location.href; if(_9.actionUrl){ if(_9.actionUrl.indexOf("?")==0){ var _b=_a.indexOf("#"); if(_b!=-1){ var _c=_a.substring(0,_b); var _d=_a.substring(_b); _a=_c+(_c.indexOf("?")==-1?"?":"&")+_9.actionUrl.substring(1); _a+=_d; }else{ _a+=(_a.indexOf("?")==-1?"?":"&")+_9.actionUrl.substring(1); } }else{ _a=_9.actionUrl; } } window.open(_a,"","resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,width=800,height=600,screenX=10,screenY=10,top=10,left=10"); }},canImpersonate:function(){ return ibmCfg.portalConfig.canImpersonate; },contextMenu:{cache:{},css:{focus:"wpthemeMenuFocus",disabled:"wpthemeMenuDisabled",show:"wpthemeMenuShow",error:"wpthemeMenuError",menuTemplate:"wpthemeTemplateMenu",submenuTemplate:"wpthemeTemplateSubmenu",loadingTemplate:"wpthemeTemplateLoading"},init:function(_e,_f,_10){ _e._contextMenu=_e._contextMenu||{}; _e._contextMenu.id=_e._contextMenu.id||Math.round(Math.random()*1000000000); _e.setAttribute("id",_e._contextMenu.id); _e._contextMenu.menuId=_f; _e._contextMenu.jsonQuery=_10; var _11=_e._contextMenu; var _12=function(_13){ if(_13.displayMenu){ i$.fireEvent("wptheme/contextMenu/close/all"); if(!_11._submenu){ i$.fireEvent("wptheme/contextMenu/close/all"); wptheme.contextMenu._updateAbsolutePosition(i$.byId(_11.id)); } var _14=wptheme.contextMenu._adjustScreenPositionStart(); i$.addClass((_11.shadowNode)?_11.shadowNode:i$.byId(_11.id),wptheme.contextMenu.css.show); wptheme.contextMenu._adjustScreenPositionEnd(_14); var _15=i$.byId(_11.id)._firstSelectable; if(_15){ _15.focus(); i$.byId(_11.id)._currentSelected=_15; } i$.addListener("wptheme/contextMenu/close/all",function(){ var _16=i$.byId(_11.id); }); } }; wptheme.contextMenu._initialize(_e).then(_12,_12); _e=null; },initSubmenu:function(_17,_18,_19){ _17._contextMenu=_17._contextMenu||{}; _17._contextMenu._submenu=true; _17._contextMenu._menuitemTemplate=_19._menuitemTemplate; _17._contextMenu._subMenuTemplate=_19._subMenuTemplate; _17._contextMenu._loadingTemplate=_19._loadingTemplate; wptheme.contextMenu.init(_17,_18,_19.jsonQuery); },_findFocusNode:function(_1a){ var _1b,i,_1c; var _1d=function(_1e,_1f){ var l=_1e.childNodes.length; for(i=0;i=0;i--){ _24=_26.childNodes[i]; if(i$.hasClass(_24,wptheme.contextMenu.css.menuTemplate)){ _21=_24; continue; } if(i$.hasClass(_24,wptheme.contextMenu.css.submenuTemplate)){ _22=_24; continue; } if(i$.hasClass(_24,wptheme.contextMenu.css.loadingTemplate)){ _23=_24; continue; } if(_24.childNodes){ i=_25(_24,i); } } return _27; }; _25(_20); return {"menu":_21,"submenu":_22,"loading":_23}; },_findNextNodeByKeyCode:function(_28,_29){ var _2a=_28.parentNode; var _2b,_2c,_2d,i,j; var l=_2a.childNodes.length; for(i=0;i=0;i--){ _49=_47[i]; if(!_49._visible){ continue; } if(_49.type=="Separator"){ if(_4a.type=="Separator"){ continue; } }else{ if(_49.type=="Header"){ if((_4a.type=="Separator")||(_4a.type=="Header")){ continue; } } } _4a=_49; _48.unshift(_49); } while(_48.length>0&&_48[0].type=="Separator"){ _48=_48.slice(1); } return _48; },_buildMenu:function(_4b,_4c,_4d){ var _4e=document.createDocumentFragment(),tmp=i$.createDom("div"),_4f,_50,_51,_52,_53,_54; for(var i=0,l=_4d.length;i=me.elementosTabla){ nuevaPosicionActiva = (me.elementosTabla - me.elementos)+1; posicionBullet = 1; }else{ nuevaPosicionActiva = posicionActiva+1; posicionBullet++; } /*se agrega la clase activa a la columna con nueva posicion*/ __jquery('thead tr:nth-child('+cantHeader+') th:nth-child('+(nuevaPosicionActiva)+')').addClass('activa'); if (!isResultBusqueda) { __jquery('table.table-results tr td:nth-child('+(nuevaPosicionActiva)+')').addClass('activa'); } else { __jquery('table.table-results tbody tr').each(function(i, e) { if(!__jquery(e).hasClass('trInter')){ __jquery(e).children('td:nth-child('+(nuevaPosicionActiva)+')').addClass('activa'); } }); } me.agregarActiveBullet(posicionBullet); }); }; RotadorTabla.prototype.rotarIzquierda = function(isResultBusqueda) { var posicionActiva, me = this, cantHeader = __jquery('thead tr').length; __jquery('.rotator-link.previous.previous').unbind('click').bind('click', function(){ /*se obtiene la pociciĆ³n de la columna activa*/ posicionActiva = __jquery('thead tr:nth-child('+cantHeader+') th.activa').index(); posicionActiva++; var posicionBullet = __jquery('.rotator-bullets .element-bullet.active').index() + 1; /*se remueve la clase activa del elemento actual y se oculta*/ __jquery('thead tr:nth-child('+cantHeader+') th:nth-child('+posicionActiva+')').removeClass('activa'); __jquery('table.table-results tr td:nth-child('+posicionActiva+')').removeClass('activa'); __jquery('thead tr:nth-child('+cantHeader+') th:nth-child('+posicionActiva+')').css('display' , 'none'); if (!isResultBusqueda) { __jquery('table.table-results tr td:nth-child('+posicionActiva+')').css('display' , 'none'); } else { __jquery('table.table-results tbody tr').each(function(i, e) { if(!__jquery(e).hasClass('trInter')){ __jquery(e).children('td:nth-child('+posicionActiva+')').css('display' , 'none'); } }); } /*se valida que la posicion actual es mayor al numero de elentos que no rotan*/ if(posicionActiva <= (me.noRota+1)){ nuevaPosicionActiva = me.elementosTabla; posicionBullet = me.elementos; }else{ nuevaPosicionActiva = posicionActiva - 1; posicionBullet--; } /*se agrega la clase activa a la columna con nueva posicion*/ __jquery('thead tr:nth-child('+cantHeader+') th:nth-child('+(nuevaPosicionActiva)+')').addClass('activa'); if (!isResultBusqueda) { __jquery('table.table-results tr td:nth-child('+(nuevaPosicionActiva)+')').addClass('activa'); } else { __jquery('table.table-results tbody tr').each(function(i, e) { if(!__jquery(e).hasClass('trInter')){ __jquery(e).children('td:nth-child('+(nuevaPosicionActiva)+')').addClass('activa'); } }); } me.agregarActiveBullet(posicionBullet); }); }; RotadorTabla.prototype.agregarActiveBullet = function(posicion) { __jquery('.rotator-bullets .element-bullet').removeClass('active'); __jquery('.rotator-bullets .element-bullet:nth-child('+posicion+')').addClass('active'); }; RotadorTabla.prototype.ajusteInicialDefault = function() { var me = this, cantHeader = __jquery('thead tr').length; me.asignaActiva(me.activo); me.agregarActiveBullet(1); __jquery('thead tr:nth-child('+cantHeader+') th').css('display', "table-cell"); __jquery('table.table-results tr td').css('display', "table-cell"); if(__jquery('.tableMid table.table-results tbody tr').hasClass('contInter')) { __jquery('table.table-results tr.trInter td').attr('colspan', '3'); } }; RotadorTabla.prototype.resizeAjustarElementos = function(tamanoAjustarResize) { var me = this, column = me.elementosTabla - me.noRota, elementosAnalizar = me.elementosTabla; window.addEventListener("orientationchange", function () { setTimeout(function () { if(__jquery(window).width()>tamanoAjustarResize){ me.isAjusteInicial = true; me.ajusteInicialDefault(); }else { if(me.isAjusteInicial == true) { me.escoderColumnas(column, elementosAnalizar, false); if(__jquery('.tableMid table.table-results tbody tr').hasClass('contInter')) { __jquery('table.table-results tr.trInter td').attr('colspan', '1'); } me.isAjusteInicial = false; } } }, 1000); }, false); }; RotadorTabla.prototype.escoderColumnas = function(column, elementosAnalizar, isResultBusqueda) { var cantHeader = __jquery('thead tr').length; for(var i=0; i 0 ){ posicionColActiva = __jquery('table.table-results tr td.activa').index() + 1; __jquery('table.table-results tr td:nth-child('+posicionColActiva+')').removeClass('activa'); __jquery('table.table-results tr td:nth-child('+posicionActiva+')').addClass('activa'); } else { __jquery('table.table-results tr td:nth-child('+posicionActiva+')').addClass('activa'); } me.escoderColumnas(column, elementosAnalizar, false); };/*! tema_pagos_aval */ !function(a,b){window.console=window.console||{log:function(){},error:function(){}},a.fn.footable=function(a,c){return a=a||{},this.filter("table").each(function(d,e){b.init(e,a,c)})};var c={events:[]};b.__debug__=JSON.parse(localStorage.getItem("footable_debug"))||!1,b.__debug_options__=JSON.parse(localStorage.getItem("footable_debug_options"))||c,b.debug=function(d,e){if(!b.is.boolean(d))return b.__debug__;b.__debug__=d,b.__debug__?(localStorage.setItem("footable_debug",JSON.stringify(b.__debug__)),b.__debug_options__=a.extend(!0,{},c,e||{}),b.is.hash(e)&&localStorage.setItem("footable_debug_options",JSON.stringify(b.__debug_options__))):(localStorage.removeItem("footable_debug"),localStorage.removeItem("footable_debug_options"))},b.get=function(b){return a(b).first().data("__FooTable__")},b.init=function(a,c,d){var e=b.get(a);return e instanceof b.Table&&e.destroy(),new b.Table(a,c,d)},b.getRow=function(b){var c=a(b).closest("tr");return c.hasClass("footable-detail-row")&&(c=c.prev()),c.data("__FooTableRow__")}}(jQuery,FooTable=window.FooTable||{}),function(a){var b=function(){return!0};a.arr={},a.arr.each=function(b,c){if(a.is.array(b)&&a.is.fn(c))for(var d=0,e=b.length;d0},a.is.moment=function(b){return a.is.defined(window.moment)&&a.is.object(b)&&a.is.boolean(b._isAMomentObject)},a.is.emptyObject=function(b){if(!a.is.hash(b))return!1;for(var c in b)if(b.hasOwnProperty(c))return!1;return!0},a.is.emptyArray=function(b){return!a.is.array(b)||0===b.length},a.is.emptyString=function(b){return!a.is.string(b)||0===b.length}}(FooTable),function(a){a.str={},a.str.contains=function(b,c,d){return!a.is.emptyString(b)&&!a.is.emptyString(c)&&(c.length<=b.length&&-1!==(d?b.toUpperCase().indexOf(c.toUpperCase()):b.indexOf(c)))},a.str.containsExact=function(b,c,d){return!(a.is.emptyString(b)||a.is.emptyString(c)||c.length>b.length)&&new RegExp("\\b"+a.str.escapeRegExp(c)+"\\b",d?"i":"").test(b)},a.str.containsWord=function(b,c,d){if(a.is.emptyString(b)||a.is.emptyString(c)||b.length1)throw Error("Second argument not supported");if(!a.is.object(c))throw TypeError("Argument must be an object");b.prototype=c;var d=new b;return b.prototype=null,d}}());var c=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;b.__extend__=function(b,d,e,f){b[d]=a.is.fn(f)&&c.test(e)?function(a,b){return function(){var a,c;return a=this._super,this._super=f,c=b.apply(this,arguments),this._super=a,c}}(0,e):e},b.extend=function(d,e){function f(b,d,e,f){b[d]=a.is.fn(f)&&c.test(e)?function(a,b,c){return function(){var a,d;return a=this._super,this._super=c,d=b.apply(this,arguments),this._super=a,d}}(0,e,f):e}var g=Array.prototype.slice.call(arguments);if(d=g.shift(),e=g.shift(),a.is.hash(d)){var h=Object.create(this.prototype),i=this.prototype;for(var j in d)"__ctor__"!==j&&f(h,j,d[j],i[j]);var k=a.is.fn(h.__ctor__)?h.__ctor__:function(){if(!a.is.fn(this.construct))throw new SyntaxError('FooTable class objects must be constructed with the "new" keyword.');this.construct.apply(this,arguments)};return h.construct=a.is.fn(h.construct)?h.construct:function(){},k.prototype=h,h.constructor=k,k.extend=b.extend,k}a.is.string(d)&&a.is.fn(e)&&f(this.prototype,d,e,this.prototype[d])},a.Class=b,a.ClassFactory=a.Class.extend({construct:function(){this.registered={}},contains:function(b){return a.is.defined(this.registered[b])},names:function(){var a,b=[];for(a in this.registered)this.registered.hasOwnProperty(a)&&b.push(a);return b},register:function(b,c,d){if(a.is.string(b)&&a.is.fn(c)){var e=this.registered[b];this.registered[b]={name:b,klass:c,priority:a.is.number(d)?d:a.is.defined(e)?e.priority:0}}},load:function(b,c,d){var e,f,g=this,h=Array.prototype.slice.call(arguments),i=[],j=[];b=h.shift()||{};for(e in g.registered)if(g.registered.hasOwnProperty(e)){var k=g.registered[e];b.hasOwnProperty(e)&&(f=b[e],a.is.string(f)&&(f=a.getFnPointer(b[e])),a.is.fn(f)&&(k={name:e,klass:f,priority:g.registered[e].priority})),i.push(k)}for(e in b)b.hasOwnProperty(e)&&!g.registered.hasOwnProperty(e)&&(f=b[e],a.is.string(f)&&(f=a.getFnPointer(b[e])),a.is.fn(f)&&i.push({name:e,klass:f,priority:0}));return i.sort(function(a,b){return b.priority-a.priority}),a.arr.each(i,function(b){a.is.fn(b.klass)&&j.push(g._make(b.klass,h))}),j},make:function(b,c,d){var e,f=this,g=Array.prototype.slice.call(arguments);return b=g.shift(),e=f.registered[b],a.is.fn(e.klass)?f._make(e.klass,g):null},_make:function(a,b){function c(){return a.apply(this,b)}return c.prototype=a.prototype,new c}})}(FooTable),function(a,b){b.css2json=function(c){if(b.is.emptyString(c))return{};for(var d,e,f,g={},h=c.split(";"),i=0,j=h.length;i")).data("value",this.value).contents().detach().end().append(this.format(this.value)),this._setClasses(this.$el),this._setStyle(this.$el),this.$detail=a("").addClass(this.row.classes.join(" ")).data("__FooTableCell__",this).append(a("")).append(a("")),this.created=!0)},collapse:function(){this.created&&(this.$detail.children("th").html(this.column.title),this.$detail.children("td").first().attr("class",this.$el.attr("class")).attr("style",this.$el.attr("style")).css("display","table-cell").append(this.$el.contents().detach()),b.is.jq(this.$detail.parent())||this.$detail.appendTo(this.row.$details.find(".footable-details > tbody")))},restore:function(){if(this.created){if(b.is.jq(this.$detail.parent())){var a=this.$detail.children("td").first();this.$el.attr("class",a.attr("class")).attr("style",a.attr("style")).css("display",this.column.hidden||!this.column.visible?"none":"table-cell").append(a.contents().detach())}this.$detail.detach()}},parse:function(){return this.column.parser.call(this.column,this.$el,this.ft.o)},format:function(a){return this.column.formatter.call(this.column,a,this.ft.o)},val:function(c,d){if(b.is.undef(c))return this.value;var e=this,f=b.is.hash(c)&&b.is.hash(c.options)&&b.is.defined(c.value);if(this.o=a.extend(!0,{classes:e.classes,style:e.style},f?c.options:{}),this.value=f?c.value:c,this.classes=b.is.array(this.o.classes)?this.o.classes:b.is.string(this.o.classes)?this.o.classes.match(/\S+/g):[],this.style=b.is.hash(this.o.style)?this.o.style:b.is.string(this.o.style)?b.css2json(this.o.style):{},this.created){this.$el.data("value",this.value).empty();var g=this.$detail.children("td").first().empty(),h=b.is.jq(this.$detail.parent())?g:this.$el;h.append(this.format(this.value)),this._setClasses(h),this._setStyle(h),b.is.boolean(d)&&!d||this.row.draw()}},_setClasses:function(a){var c=!b.is.emptyArray(this.column.classes),d=!b.is.emptyArray(this.classes),e=null;a.removeAttr("class"),(c||d)&&(c&&d?e=this.classes.concat(this.column.classes).join(" "):c?e=this.column.classes.join(" "):d&&(e=this.classes.join(" ")),b.is.emptyString(e)||a.addClass(e))},_setStyle:function(c){var d=!b.is.emptyObject(this.column.style),e=!b.is.emptyObject(this.style),f=null;c.removeAttr("style"),(d||e)&&(d&&e?f=a.extend({},this.column.style,this.style):d?f=this.column.style:e&&(f=this.style),b.is.hash(f)&&c.css(f))}})}(jQuery,FooTable),function(a,b){b.Column=b.Class.extend({construct:function(a,c,d){this.ft=a,this.type=b.is.emptyString(d)?"text":d,this.virtual=!!b.is.boolean(c.virtual)&&c.virtual,this.$el=b.is.jq(c.$el)?c.$el:null,this.index=b.is.number(c.index)?c.index:-1,this.define(c),this.$create()},define:function(a){this.hidden=!!b.is.boolean(a.hidden)&&a.hidden,this.visible=!b.is.boolean(a.visible)||a.visible,this.name=b.is.string(a.name)?a.name:null,null==this.name&&(this.name="col"+(a.index+1)),this.title=b.is.string(a.title)?a.title:null,!this.virtual&&null==this.title&&b.is.jq(this.$el)&&(this.title=this.$el.html()),null==this.title&&(this.title="Column "+(a.index+1)),this.style=b.is.hash(a.style)?a.style:b.is.string(a.style)?b.css2json(a.style):{},this.classes=b.is.array(a.classes)?a.classes:b.is.string(a.classes)?a.classes.match(/\S+/g):[],this.parser=b.checkFnValue(this,a.parser,this.parser),this.formatter=b.checkFnValue(this,a.formatter,this.formatter)},$create:function(){(this.$el=!this.virtual&&b.is.jq(this.$el)?this.$el:a("")).html(this.title)},parser:function(c){if(b.is.element(c)||b.is.jq(c)){var d=a(c).data("value");return b.is.defined(d)?d:a(c).text()}return b.is.defined(c)&&null!=c?c+"":null},formatter:function(a){return null==a?"":a},createCell:function(a){var c=b.is.jq(a.$el)?a.$el.children("td,th").get(this.index):null,d=b.is.hash(a.value)?a.value[this.name]:null;return new b.Cell(this.ft,a,this,c||d)}}),b.columns=new b.ClassFactory,b.columns.register("text",b.Column)}(jQuery,FooTable),function(a,b){b.Component=b.Class.extend({construct:function(a,c){if(!(a instanceof b.Table))throw new TypeError("The instance parameter must be an instance of FooTable.Table.");this.ft=a,this.enabled=!!b.is.boolean(c)&&c},preinit:function(a){},init:function(){},destroy:function(){},predraw:function(){},draw:function(){},postdraw:function(){}}),b.components=new b.ClassFactory}(jQuery,FooTable),function(a,b){b.Defaults=function(){this.stopPropagation=!1,this.on=null},b.defaults=new b.Defaults}(jQuery,FooTable),function(a,b){b.Row=b.Class.extend({construct:function(a,b,c){this.ft=a,this.columns=b,this.created=!1,this.define(c)},define:function(c){this.$el=b.is.element(c)||b.is.jq(c)?a(c):null,this.$toggle=a("",{class:"footable-toggle fooicon fooicon-plus"});var d=b.is.hash(c),e=d&&b.is.hash(c.options)&&b.is.hash(c.value);this.value=d?e?c.value:c:null,this.o=a.extend(!0,{expanded:!1,classes:null,style:null},e?c.options:{}),this.expanded=b.is.jq(this.$el)?this.$el.data("expanded")||this.o.expanded:this.o.expanded,this.classes=b.is.jq(this.$el)&&this.$el.attr("class")?this.$el.attr("class").match(/\S+/g):b.is.array(this.o.classes)?this.o.classes:b.is.string(this.o.classes)?this.o.classes.match(/\S+/g):[],this.style=b.is.jq(this.$el)&&this.$el.attr("style")?b.css2json(this.$el.attr("style")):b.is.hash(this.o.style)?this.o.style:b.is.string(this.o.style)?b.css2json(this.o.style):{},this.cells=this.createCells();var f=this;f.value={},b.arr.each(f.cells,function(a){f.value[a.column.name]=a.val()})},$create:function(){if(!this.created){(this.$el=b.is.jq(this.$el)?this.$el:a("")).data("__FooTableRow__",this),this._setClasses(this.$el),this._setStyle(this.$el),"last"==this.ft.rows.toggleColumn&&this.$toggle.addClass("last-column"),this.$details=a("",{class:"footable-detail-row"}).append(a("",{colspan:this.ft.columns.visibleColspan}).append(a("",{class:"footable-details "+this.ft.classes.join(" ")}).append("")));var c=this;b.arr.each(c.cells,function(a){a.created||a.$create(),c.$el.append(a.$el)}),c.$el.off("click.ft.row").on("click.ft.row",{self:c},c._onToggle),this.created=!0}},createCells:function(){var a=this;return b.arr.map(a.columns,function(b){return b.createCell(a)})},val:function(c,d){var e=this;if(!b.is.hash(c))return b.is.hash(this.value)&&!b.is.emptyObject(this.value)||(this.value={},b.arr.each(this.cells,function(a){e.value[a.column.name]=a.val()})),this.value;this.collapse(!1);var f=b.is.hash(c),g=f&&b.is.hash(c.options)&&b.is.hash(c.value);if(this.o=a.extend(!0,{expanded:e.expanded,classes:e.classes,style:e.style},g?c.options:{}),this.expanded=this.o.expanded,this.classes=b.is.array(this.o.classes)?this.o.classes:b.is.string(this.o.classes)?this.o.classes.match(/\S+/g):[],this.style=b.is.hash(this.o.style)?this.o.style:b.is.string(this.o.style)?b.css2json(this.o.style):{},f)if(g&&(c=c.value),b.is.hash(this.value))for(var h in c)c.hasOwnProperty(h)&&(this.value[h]=c[h]);else this.value=c;else this.value=null;b.arr.each(this.cells,function(a){b.is.defined(e.value[a.column.name])&&a.val(e.value[a.column.name],!1)}),this.created&&(this._setClasses(this.$el),this._setStyle(this.$el),b.is.boolean(d)&&!d||this.draw())},_setClasses:function(a){var c=!b.is.emptyArray(this.classes),d=null;a.removeAttr("class"),c&&(d=this.classes.join(" "),b.is.emptyString(d)||a.addClass(d))},_setStyle:function(a){var c=!b.is.emptyObject(this.style),d=null;a.removeAttr("style"),c&&(d=this.style,b.is.hash(d)&&a.css(d))},expand:function(){if(this.created){var a=this;a.ft.raise("expand.ft.row",[a]).then(function(){a.__hidden__=b.arr.map(a.cells,function(a){return a.column.hidden&&a.column.visible?a:null}),a.__hidden__.length>0&&(a.$details.insertAfter(a.$el).children("td").first().attr("colspan",a.ft.columns.visibleColspan),b.arr.each(a.__hidden__,function(a){a.collapse()})),a.$el.attr("data-expanded",!0),a.$toggle.removeClass("fooicon-plus").addClass("fooicon-minus"),a.expanded=!0})}},collapse:function(a){if(this.created){var c=this;c.ft.raise("collapse.ft.row",[c]).then(function(){b.arr.each(c.__hidden__,function(a){a.restore()}),c.$details.detach(),c.$el.removeAttr("data-expanded"),c.$toggle.removeClass("fooicon-minus").addClass("fooicon-plus"),b.is.boolean(a)&&!a||(c.expanded=!1)})}},predraw:function(a){this.created&&(this.expanded&&this.collapse(!1),this.$toggle.detach(),(a=!b.is.boolean(a)||a)&&this.$el.detach())},draw:function(a){this.created||this.$create(),b.is.jq(a)&&a.append(this.$el);var c=this;b.arr.each(c.cells,function(a){a.$el.css("display",a.column.hidden||!a.column.visible?"none":"table-cell"),c.ft.rows.showToggle&&c.ft.columns.hasHidden&&("first"==c.ft.rows.toggleColumn&&a.column.index==c.ft.columns.firstVisibleIndex||"last"==c.ft.rows.toggleColumn&&a.column.index==c.ft.columns.lastVisibleIndex)&&a.$el.prepend(c.$toggle),a.$el.add(a.column.$el).removeClass("footable-first-visible footable-last-visible"),a.column.index==c.ft.columns.firstVisibleIndex&&a.$el.add(a.column.$el).addClass("footable-first-visible"),a.column.index==c.ft.columns.lastVisibleIndex&&a.$el.add(a.column.$el).addClass("footable-last-visible")}),this.expanded&&this.expand()},toggle:function(){this.created&&this.ft.columns.hasHidden&&(this.expanded?this.collapse():this.expand())},_onToggle:function(b){var c=b.data.self;a(b.target).is(c.ft.rows.toggleSelector)&&c.toggle()}})}(jQuery,FooTable),function(a,b){b.instances=[],b.Table=b.Class.extend({construct:function(c,d,e){this._resizeTimeout=null,this.id=b.instances.push(this),this.initialized=!1,this.$el=(b.is.jq(c)?c:a(c)).first(),this.o=a.extend(!0,{},b.defaults,d),this.data=this.$el.data()||{},this.classes=[],this.components=b.components.load(b.is.hash(this.data.components)?this.data.components:this.o.components,this),this.breakpoints=this.use(FooTable.Breakpoints),this.columns=this.use(FooTable.Columns),this.rows=this.use(FooTable.Rows),this._construct(e)},_construct:function(a){var c=this;this._preinit().then(function(){return c._init()}).always(function(d){if(!b.is.error(d))return c.raise("ready.ft.table").then(function(){b.is.fn(a)&&a.call(c,c)});console.error("FooTable: unhandled error thrown during initialization.",d)})},_preinit:function(){var c=this;return this.raise("preinit.ft.table",[c.data]).then(function(){var d=(c.$el.attr("class")||"").match(/\S+/g)||[];c.o.ajax=b.checkFnValue(c,c.data.ajax,c.o.ajax),c.o.stopPropagation=b.is.boolean(c.data.stopPropagation)?c.data.stopPropagation:c.o.stopPropagation;for(var e=0,f=d.length;e",{class:"footable-loader"}).append(a("",{class:"fooicon fooicon-loader"}));return c.$el.hide().after(g),c.execute(!1,!1,"preinit",c.data).always(function(){c.$el.show(),g.remove()})})},_init:function(){var c=this;return c.raise("init.ft.table").then(function(){var d=c.$el.children("thead"),e=c.$el.children("tbody"),f=c.$el.children("tfoot");return c.$el.addClass("footable footable-"+c.id),b.is.hash(c.o.on)&&c.$el.on(c.o.on),0==f.length&&c.$el.append(f=a("")),0==e.length&&c.$el.append(""),0==d.length&&c.$el.prepend(d=a("")),c.execute(!1,!0,"init").then(function(){return c.$el.data("__FooTable__",c),0==f.children("tr").length&&f.remove(),0==d.children("tr").length&&d.remove(),c.raise("postinit.ft.table").then(function(){return c.draw()}).always(function(){a(window).off("resize.ft"+c.id,c._onWindowResize).on("resize.ft"+c.id,{self:c},c._onWindowResize),c.initialized=!0})})})},destroy:function(){var c=this;return c.raise("destroy.ft.table").then(function(){return c.execute(!0,!0,"destroy").then(function(){c.$el.removeData("__FooTable__").removeClass("footable-"+c.id),b.is.hash(c.o.on)&&c.$el.off(c.o.on),a(window).off("resize.ft"+c.id,c._onWindowResize),c.initialized=!1})}).fail(function(a){b.is.error(a)&&console.error("FooTable: unhandled error thrown while destroying the plugin.",a)})},raise:function(c,d){var e=this,f=b.__debug__&&(b.is.emptyArray(b.__debug_options__.events)||b.arr.any(b.__debug_options__.events,function(a){return b.str.contains(c,a)}));return d=d||[],d.unshift(this),a.Deferred(function(b){var g=a.Event(c);1==e.o.stopPropagation&&e.$el.one(c,function(a){a.stopPropagation()}),f&&console.log("FooTable:"+c+": ",d),e.$el.trigger(g,d),g.isDefaultPrevented()?(f&&console.log('FooTable: default prevented for the "'+c+'" event.'),b.reject(g)):b.resolve(g)})},use:function(a){for(var b=0,c=this.components.length;b3&&(b[0]=b[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,this.thousandSeparator)),b.join(this.decimalSeparator)}}),b.columns.register("number",b.NumberColumn)}(jQuery,FooTable),function(a,b){b.Breakpoint=b.Class.extend({construct:function(a,b){this.name=a,this.width=b}})}(jQuery,FooTable),function(a,b){b.Breakpoints=b.Component.extend({construct:function(a){this._super(a,!0),this.o=a.o,this.current=null,this.array=[],this.cascade=this.o.cascade,this.useParentWidth=this.o.useParentWidth,this.hidden=null,this._classNames="",this.getWidth=b.checkFnValue(this,this.o.getWidth,this.getWidth)},preinit:function(a){var c=this;return this.ft.raise("preinit.ft.breakpoints",[a]).then(function(){c.cascade=b.is.boolean(a.cascade)?a.cascade:c.cascade,c.o.breakpoints=b.is.hash(a.breakpoints)?a.breakpoints:c.o.breakpoints,c.getWidth=b.checkFnValue(c,a.getWidth,c.getWidth),null==c.o.breakpoints&&(c.o.breakpoints={xs:480,sm:768,md:992,lg:1200});for(var d in c.o.breakpoints)c.o.breakpoints.hasOwnProperty(d)&&(c.array.push(new b.Breakpoint(d,c.o.breakpoints[d])),c._classNames+="breakpoint-"+d+" ");c.array.sort(function(a,b){return b.width-a.width})})},init:function(){var a=this;return this.ft.raise("init.ft.breakpoints").then(function(){a.current=a.get()})},draw:function(){this.ft.$el.removeClass(this._classNames).addClass("breakpoint-"+this.current.name)},calculate:function(){for(var a,c=this,d=null,e=[],f=null,g=c.getWidth(),h=0,i=c.array.length;h=a.width&&(!(f instanceof b.Breakpoint)||g=0&&af&&(f=a.index)}),f++;for(var g,h,i=0;i tr:last:has([data-breakpoints]), tbody > tr:first:has([data-breakpoints]), thead > tr:last, tbody > tr:first").first();if(j.length>0){var k=j.parent().is("tbody")&&j.children().length==j.children("td").length;k||(d.$header=j.addClass("footable-header")),j.children("td,th").each(function(b,c){f=a(c),g=f.data(),g.index=b,g.$el=f,g.virtual=k,i.push(g)}),k&&(d.showHeader=!1)}b.is.array(d.o.columns)&&!b.is.emptyArray(d.o.columns)?(b.arr.each(d.o.columns,function(a,b){a.index=b,h.push(a)}),d.parseFinalize(c,e(h,i))):b.is.promise(d.o.columns)?d.o.columns.then(function(a){b.arr.each(a,function(a,b){a.index=b,h.push(a)}),d.parseFinalize(c,e(h,i))},function(a){c.reject(Error("Columns ajax request error: "+a.status+" ("+a.statusText+")"))}):d.parseFinalize(c,e(h,i))})},parseFinalize:function(a,c){var d,e=this,f=[];b.arr.each(c,function(a){(d=b.columns.contains(a.type)?b.columns.make(a.type,e.ft,a):new b.Column(e.ft,a))&&f.push(d)}),b.is.emptyArray(f)?a.reject(Error("No columns supplied.")):(f.sort(function(a,b){return a.index-b.index}),a.resolve(f))},preinit:function(a){var c=this;return c.ft.raise("preinit.ft.columns",[a]).then(function(){return c.parse(a).then(function(d){c.array=d,c.showHeader=b.is.boolean(a.showHeader)?a.showHeader:c.showHeader})})},init:function(){var a=this;return this.ft.raise("init.ft.columns",[a.array]).then(function(){a.$create()})},destroy:function(){var a=this;this.ft.raise("destroy.ft.columns").then(function(){a._fromHTML||a.$header.remove()})},predraw:function(){var a=this,c=!0;a.visibleColspan=0,a.firstVisibleIndex=0,a.lastVisibleIndex=0,a.hasHidden=!1,b.arr.each(a.array,function(b){b.hidden=!a.ft.breakpoints.visible(b.breakpoints),!b.hidden&&b.visible&&(c&&(a.firstVisibleIndex=b.index,c=!1),a.lastVisibleIndex=b.index,a.visibleColspan++),b.hidden&&(a.hasHidden=!0)}),a.ft.$el.toggleClass("breakpoint",a.hasHidden)},draw:function(){b.arr.each(this.array,function(a){a.$el.css("display",a.hidden||!a.visible?"none":"table-cell")}),!this.showHeader&&b.is.jq(this.$header.parent())&&this.$header.detach()},$create:function(){var c=this;c.$header=b.is.jq(c.$header)?c.$header:a("",{class:"footable-header"}),c.$header.children("th,td").detach(),b.arr.each(c.array,function(a){c.$header.append(a.$el)}),c.showHeader&&!b.is.jq(c.$header.parent())&&c.ft.$el.children("thead").append(c.$header)},get:function(a){return a instanceof b.Column?a:b.is.string(a)?b.arr.first(this.array,function(b){return b.name==a }):b.is.number(a)?b.arr.first(this.array,function(b){return b.index==a}):b.is.fn(a)?b.arr.get(this.array,a):null},ensure:function(a){var c=this,d=[];return b.is.array(a)?(b.arr.each(a,function(a){d.push(c.get(a))}),d):d}}),b.components.register("columns",b.Columns,900)}(jQuery,FooTable),function(a){a.Defaults.prototype.columns=[],a.Defaults.prototype.showHeader=!0}(FooTable),function(a,b){b.Rows=b.Component.extend({construct:function(a){this._super(a,!0),this.o=a.o,this.array=[],this.all=[],this.showToggle=a.o.showToggle,this.toggleSelector=a.o.toggleSelector,this.toggleColumn=a.o.toggleColumn,this.emptyString=a.o.empty,this.expandFirst=a.o.expandFirst,this.expandAll=a.o.expandAll,this.$empty=null,this._fromHTML=b.is.emptyArray(a.o.rows)&&!b.is.promise(a.o.rows)},parse:function(){var c=this;return a.Deferred(function(a){var d=c.ft.$el.children("tbody").children("tr");b.is.array(c.o.rows)&&c.o.rows.length>0?c.parseFinalize(a,c.o.rows):b.is.promise(c.o.rows)?c.o.rows.then(function(b){c.parseFinalize(a,b)},function(b){a.reject(Error("Rows ajax request error: "+b.status+" ("+b.statusText+")"))}):b.is.jq(d)?(c.parseFinalize(a,d),d.detach()):c.parseFinalize(a,[])})},parseFinalize:function(c,d){var e=this,f=a.map(d,function(a){return new b.Row(e.ft,e.ft.columns.array,a)});c.resolve(f)},preinit:function(a){var c=this;return c.ft.raise("preinit.ft.rows",[a]).then(function(){return c.parse().then(function(d){c.all=d,c.array=c.all.slice(0),c.showToggle=b.is.boolean(a.showToggle)?a.showToggle:c.showToggle,c.toggleSelector=b.is.string(a.toggleSelector)?a.toggleSelector:c.toggleSelector,c.toggleColumn=b.is.string(a.toggleColumn)?a.toggleColumn:c.toggleColumn,"first"!=c.toggleColumn&&"last"!=c.toggleColumn&&(c.toggleColumn="first"),c.emptyString=b.is.string(a.empty)?a.empty:c.emptyString,c.expandFirst=b.is.boolean(a.expandFirst)?a.expandFirst:c.expandFirst,c.expandAll=b.is.boolean(a.expandAll)?a.expandAll:c.expandAll})})},init:function(){var a=this;return a.ft.raise("init.ft.rows",[a.all]).then(function(){a.$create()})},destroy:function(){var a=this;this.ft.raise("destroy.ft.rows").then(function(){b.arr.each(a.array,function(b){b.predraw(!a._fromHTML)})})},predraw:function(){b.arr.each(this.array,function(a){a.predraw()}),this.array=this.all.slice(0)},$create:function(){this.$empty=a("",{class:"footable-empty"}).append(a("",{class:"footable-filtering"}).prependTo(d.ft.$el.children("thead")),d.$cell=a(""),this.ft.$el.append(b)),this.$row.appendTo(b),this.detached=!1}this.$cell.attr("colspan",this.ft.columns.visibleColspan),this._createLinks(),this._setVisible(this.current,this.current>this.previous),this._setNavigation(!0),this.$count.text(this.formattedCount)}},$create:function(){this._createdLinks=0;var b="footable-paging-center";switch(this.position){case"left":b="footable-paging-left";break;case"right":b="footable-paging-right"}this.ft.$el.addClass("footable-paging").addClass(b),this.$cell=a(""),this.ft.$el.append(c)),this.$row=a("",{class:"footable-paging"}).append(this.$cell).appendTo(c),this.$pagination=a(""),b.ft.$el.append(d)),b.$row=a("",{class:"footable-editing"}).append(b.$cell).appendTo(d)},$buttonShow:function(){return'"},$buttonHide:function(){return'"},$buttonAdd:function(){return' "},$buttonEdit:function(){return' "},$buttonDelete:function(){return'"},$buttonView:function(){return' "},$rowButtons:function(){return b.is.jq(this._$buttons)?this._$buttons.clone():(this._$buttons=a('
'),this.allowView&&this._$buttons.append(this.$buttonView()),this.allowEdit&&this._$buttons.append(this.$buttonEdit()),this.allowDelete&&this._$buttons.append(this.$buttonDelete()),this._$buttons)},draw:function(){this.$cell.attr("colspan",this.ft.columns.visibleColspan)},_onEditClick:function(c){c.preventDefault();var d=c.data.self,e=a(this).closest("tr").data("__FooTableRow__");e instanceof b.Row&&d.ft.raise("edit.ft.editing",[e]).then(function(){d.callbacks.editRow.call(d.ft,e)})},_onDeleteClick:function(c){c.preventDefault();var d=c.data.self,e=a(this).closest("tr").data("__FooTableRow__");e instanceof b.Row&&d.ft.raise("delete.ft.editing",[e]).then(function(){d.callbacks.deleteRow.call(d.ft,e)})},_onViewClick:function(c){c.preventDefault();var d=c.data.self,e=a(this).closest("tr").data("__FooTableRow__");e instanceof b.Row&&d.ft.raise("view.ft.editing",[e]).then(function(){d.callbacks.viewRow.call(d.ft,e)})},_onAddClick:function(a){a.preventDefault();var b=a.data.self;b.ft.raise("add.ft.editing").then(function(){b.callbacks.addRow.call(b.ft)})},_onShowClick:function(a){a.preventDefault();var b=a.data.self;b.ft.raise("show.ft.editing").then(function(){b.ft.$el.addClass("footable-editing-show"),b.column.visible=!0,b.ft.draw()})},_onHideClick:function(a){a.preventDefault();var b=a.data.self;b.ft.raise("hide.ft.editing").then(function(){b.ft.$el.removeClass("footable-editing-show"),b.column.visible=!1,b.ft.draw()})}}),b.components.register("editing",b.Editing,850)}(jQuery,FooTable),function(a,b){b.EditingColumn=b.Column.extend({construct:function(a,b,c){this._super(a,c,"editing"),this.editing=b},$create:function(){(this.$el=!this.virtual&&b.is.jq(this.$el)?this.$el:a("
").text(this.emptyString))},draw:function(){var a=this,c=a.ft.$el.children("tbody"),d=!0;a.array.length>0?(a.$empty.detach(),b.arr.each(a.array,function(b){(a.expandFirst&&d||a.expandAll)&&(b.expanded=!0,d=!1),b.draw(c)})):(a.$empty.children("td").attr("colspan",a.ft.columns.visibleColspan),c.append(a.$empty))},load:function(c,d){var e=this,f=a.map(c,function(a){return new b.Row(e.ft,e.ft.columns.array,a)});b.arr.each(this.array,function(a){a.predraw()}),this.all=b.is.boolean(d)&&d?this.all.concat(f):f,this.array=this.all.slice(0),this.ft.draw()},expand:function(){b.arr.each(this.array,function(a){a.expand()})},collapse:function(){b.arr.each(this.array,function(a){a.collapse()})}}),b.components.register("rows",b.Rows,800)}(jQuery,FooTable),function(a){a.Defaults.prototype.rows=[],a.Defaults.prototype.empty="No results",a.Defaults.prototype.showToggle=!0,a.Defaults.prototype.toggleSelector="tr,td,.footable-toggle",a.Defaults.prototype.toggleColumn="first",a.Defaults.prototype.expandFirst=!1,a.Defaults.prototype.expandAll=!1}(FooTable),function(a){a.Table.prototype.loadRows=function(a,b){this.rows.load(a,b)}}(FooTable),function(a){a.Filter=a.Class.extend({construct:function(b,c,d,e,f,g,h){this.name=b,this.space=!a.is.string(e)||"OR"!=e&&"AND"!=e?"AND":e,this.connectors=!a.is.boolean(f)||f,this.ignoreCase=!a.is.boolean(g)||g,this.hidden=!!a.is.boolean(h)&&h,this.query=c instanceof a.Query?c:new a.Query(c,this.space,this.connectors,this.ignoreCase),this.columns=d},match:function(b){return!!a.is.string(b)&&(a.is.string(this.query)&&(this.query=new a.Query(this.query,this.space,this.connectors,this.ignoreCase)),this.query instanceof a.Query&&this.query.match(b))},matchRow:function(b){var c=this,d=a.arr.map(b.cells,function(b){return a.arr.contains(c.columns,b.column)?b.filterValue:null}).join(" ");return c.match(d)}})}(FooTable),function(a,b){b.Filtering=b.Component.extend({construct:function(a){this._super(a,a.o.filtering.enabled),this.filters=a.o.filtering.filters,this.delay=a.o.filtering.delay,this.min=a.o.filtering.min,this.space=a.o.filtering.space,this.connectors=a.o.filtering.connectors,this.ignoreCase=a.o.filtering.ignoreCase,this.exactMatch=a.o.filtering.exactMatch,this.placeholder=a.o.filtering.placeholder,this.dropdownTitle=a.o.filtering.dropdownTitle,this.position=a.o.filtering.position,this.$row=null,this.$cell=null,this.$dropdown=null,this.$input=null,this.$button=null,this._filterTimeout=null,this._exactRegExp=/^"(.*?)"$/},preinit:function(a){var c=this;return c.ft.raise("preinit.ft.filtering").then(function(){c.ft.$el.hasClass("footable-filtering")&&(c.enabled=!0),c.enabled=b.is.boolean(a.filtering)?a.filtering:c.enabled,c.enabled&&(c.space=b.is.string(a.filterSpace)?a.filterSpace:c.space,c.min=b.is.number(a.filterMin)?a.filterMin:c.min,c.connectors=b.is.boolean(a.filterConnectors)?a.filterConnectors:c.connectors,c.ignoreCase=b.is.boolean(a.filterIgnoreCase)?a.filterIgnoreCase:c.ignoreCase,c.exactMatch=b.is.boolean(a.filterExactMatch)?a.filterExactMatch:c.exactMatch,c.delay=b.is.number(a.filterDelay)?a.filterDelay:c.delay,c.placeholder=b.is.string(a.filterPlaceholder)?a.filterPlaceholder:c.placeholder,c.dropdownTitle=b.is.string(a.filterDropdownTitle)?a.filterDropdownTitle:c.dropdownTitle,c.filters=b.is.array(a.filterFilters)?c.ensure(a.filterFilters):c.ensure(c.filters),c.ft.$el.hasClass("footable-filtering-left")&&(c.position="left"),c.ft.$el.hasClass("footable-filtering-center")&&(c.position="center"),c.ft.$el.hasClass("footable-filtering-right")&&(c.position="right"),c.position=b.is.string(a.filterPosition)?a.filterPosition:c.position)},function(){c.enabled=!1})},init:function(){var a=this;return a.ft.raise("init.ft.filtering").then(function(){a.$create()},function(){a.enabled=!1})},destroy:function(){var a=this;return a.ft.raise("destroy.ft.filtering").then(function(){a.ft.$el.removeClass("footable-filtering").find("thead > tr.footable-filtering").remove()})},$create:function(){var c,d=this,e=a("
",{class:"form-group footable-filtering-search"}).append(a("
").attr("colspan",d.ft.columns.visibleColspan).appendTo(d.$row),d.$form=a("
",{class:"form-inline"}).append(e).appendTo(d.$cell),d.$input=a("",{type:"text",class:"form-control",placeholder:d.placeholder}),d.$button=a("
").attr("colspan",this.ft.columns.visibleColspan);var c=this.ft.$el.children("tfoot");0==c.length&&(c=a("
").attr("colspan",b.ft.columns.visibleColspan).append(b.$buttonShow()),b.allowAdd&&b.$cell.append(b.$buttonAdd()),b.$cell.append(b.$buttonHide()),b.alwaysShow&&b.ft.$el.addClass("footable-editing-always-show"),b.allowAdd||b.ft.$el.addClass("footable-editing-no-add"),b.allowEdit||b.ft.$el.addClass("footable-editing-no-edit"),b.allowDelete||b.ft.$el.addClass("footable-editing-no-delete"),b.allowView||b.ft.$el.addClass("footable-editing-no-view");var d=b.ft.$el.children("tfoot");0==d.length&&(d=a("
",{class:"footable-editing"})).html(this.title)},parser:function(c){if(b.is.string(c)&&(c=a(a.trim(c))),b.is.element(c)&&(c=a(c)),b.is.jq(c)){var d=c.prop("tagName").toLowerCase();return"td"==d||"th"==d?c.data("value")||c.contents():c}return null},createCell:function(c){var d=this.editing.$rowButtons(),e=a("").append(d);return b.is.jq(c.$el)&&(0===this.index?e.prependTo(c.$el):e.insertAfter(c.$el.children().eq(this.index-1))),new b.Cell(this.ft,c,this,e||e.html())}}),b.columns.register("editing",b.EditingColumn)}(jQuery,FooTable),function(a,b){b.Defaults.prototype.editing={enabled:!1,pageToNew:!0,position:"right",alwaysShow:!1,addRow:function(){},editRow:function(a){},deleteRow:function(a){},viewRow:function(a){},showText:' Edit rows',hideText:"Cancel",addText:"New row",editText:'',deleteText:'',viewText:'',allowAdd:!0,allowEdit:!0,allowDelete:!0,allowView:!1,column:{classes:"footable-editing",name:"editing",title:"",filterable:!1,sortable:!1}}}(jQuery,FooTable),function(a,b){b.is.defined(b.Paging)&&(b.Paging.prototype.unpaged=[],b.Paging.extend("predraw",function(){this.unpaged=this.ft.rows.array.slice(0),this._super()}))}(jQuery,FooTable),function(a,b){b.Row.prototype.add=function(c){c=!b.is.boolean(c)||c;var d=this;return a.Deferred(function(a){var b=d.ft.rows.all.push(d)-1;if(c)return d.ft.draw().then(function(){a.resolve(b)});a.resolve(b)})},b.Row.prototype.delete=function(c){c=!b.is.boolean(c)||c;var d=this;return a.Deferred(function(a){var e=d.ft.rows.all.indexOf(d);if(b.is.number(e)&&e>=0&&e=0&&b=0&&b>>0}(location.origin+location.pathname);b.State=b.Component.extend({construct:function(a){this._super(a,a.o.state.enabled),this._key="1",this.key=this._key+(b.is.string(a.o.state.key)?a.o.state.key:this._uid()),this.filtering=!b.is.boolean(a.o.state.filtering)||a.o.state.filtering,this.paging=!b.is.boolean(a.o.state.paging)||a.o.state.paging,this.sorting=!b.is.boolean(a.o.state.sorting)||a.o.state.sorting},preinit:function(a){var c=this;this.ft.raise("preinit.ft.state",[a]).then(function(){c.enabled=b.is.boolean(a.state)?a.state:c.enabled,c.enabled&&(c.key=c._key+(b.is.string(a.stateKey)?a.stateKey:c.key),c.filtering=b.is.boolean(a.stateFiltering)?a.stateFiltering:c.filtering,c.paging=b.is.boolean(a.statePaging)?a.statePaging:c.paging,c.sorting=b.is.boolean(a.stateSorting)?a.stateSorting:c.sorting)},function(){c.enabled=!1})},get:function(a){return JSON.parse(localStorage.getItem(this.key+":"+a))},set:function(a,b){localStorage.setItem(this.key+":"+a,JSON.stringify(b))},remove:function(a){localStorage.removeItem(this.key+":"+a)},read:function(){this.ft.execute(!1,!0,"readState")},write:function(){this.ft.execute(!1,!0,"writeState")},clear:function(){this.ft.execute(!1,!0,"clearState")},_uid:function(){var a=this.ft.$el.attr("id");return d+"_"+(b.is.string(a)?a:++c)}}),b.components.register("state",b.State,700)}(jQuery,FooTable),function(a){a.Component.prototype.readState=function(){},a.Component.prototype.writeState=function(){},a.Component.prototype.clearState=function(){}}(FooTable),function(a){a.Defaults.prototype.state={enabled:!1,filtering:!0,paging:!0,sorting:!0,key:null}}(FooTable),function(a){a.Filtering&&(a.Filtering.prototype.readState=function(){if(this.ft.state.filtering){var b=this.ft.state.get("filtering");a.is.hash(b)&&!a.is.emptyArray(b.filters)&&(this.filters=this.ensure(b.filters))}},a.Filtering.prototype.writeState=function(){if(this.ft.state.filtering){var b=a.arr.map(this.filters,function(b){return{name:b.name,query:b.query instanceof a.Query?b.query.val():b.query,columns:a.arr.map(b.columns,function(a){return a.name}),hidden:b.hidden,space:b.space,connectors:b.connectors,ignoreCase:b.ignoreCase}});this.ft.state.set("filtering",{filters:b})}},a.Filtering.prototype.clearState=function(){this.ft.state.filtering&&this.ft.state.remove("filtering")})}(FooTable),function(a){a.Paging&&(a.Paging.prototype.readState=function(){if(this.ft.state.paging){var b=this.ft.state.get("paging");a.is.hash(b)&&(this.current=b.current,this.size=b.size)}},a.Paging.prototype.writeState=function(){this.ft.state.paging&&this.ft.state.set("paging",{current:this.current,size:this.size})},a.Paging.prototype.clearState=function(){this.ft.state.paging&&this.ft.state.remove("paging")})}(FooTable),function(a){a.Sorting&&(a.Sorting.prototype.readState=function(){if(this.ft.state.sorting){var b=this.ft.state.get("sorting");if(a.is.hash(b)){var c=this.ft.columns.get(b.column);c instanceof a.Column&&(this.column=c,this.column.direction=b.direction)}}},a.Sorting.prototype.writeState=function(){this.ft.state.sorting&&this.column instanceof a.Column&&this.ft.state.set("sorting",{column:this.column.name,direction:this.column.direction})},a.Sorting.prototype.clearState=function(){this.ft.state.sorting&&this.ft.state.remove("sorting")})}(FooTable),function(a){a.Table.extend("_construct",function(a){this.state=this.use(FooTable.State),this._super(a)}),a.Table.extend("_preinit",function(){var a=this;return a._super().then(function(){a.state.enabled&&a.state.read()})}),a.Table.extend("draw",function(){var a=this;return a._super().then(function(){a.state.enabled&&a.state.write()})})}(FooTable);/*! tema_pagos_aval */ function moverPaginador(a){var b=document.getElementsByClassName("contpaginator")[0],c=document.getElementsByClassName(a)[0],d=document.createElement("table");d.appendChild(c.lastChild),d.className=c.className,d.className="footable pragma_paginador",b.appendChild(d)}function actualizarPaginador(a){var b=document.getElementsByClassName("pragma_paginador")[0],c=document.getElementsByClassName(a)[0];b.innerHTML="",b.appendChild(c.lastElementChild)}function paginator(a){var b=!1,c=!1;switch(a){case"1":b=!0,c=!0;break;case"2":b=!0,c=!1;break;case"3":b=!1,c=!0;break;default:b=!1,c=!1}(__jquery(".tableVerificarPago").length||__jquery(".tableHistoricoPago").length||__jquery(".tableConsultarUsuarios").length)&&(__jquery(".table-paginator").footable({paging:{enabled:b,size:10,countFormat:"{CP} de {TP} p\xe1gina(s)."},sorting:{enabled:c},columns:[{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html",sortable:!1}]}),__jquery(".tableHistoricoPago").length&&(__jquery(".th-valor").removeClass("footable-sortable"),__jquery(".th-valor").find("span").remove(),__jquery(".th-valor").css("cursor","default"),__jquery(".th-refPago").removeClass("footable-sortable"),__jquery(".th-refPago").find("span").remove(),__jquery(".th-refPago").css("cursor","default"),__jquery(".th-estado").removeClass("footable-sortable"),__jquery(".th-estado").find("span").remove(),__jquery(".th-estado").css("cursor","default"),__jquery(".th-comprobante").removeClass("footable-sortable"),__jquery(".th-comprobante").find("span").remove(),__jquery(".th-comprobante").css("cursor","default")),__jquery(".tableVerificarPago").length&&(clase_actual_tabla="tableVerificarPago"),__jquery(".tableHistoricoPago").length&&(clase_actual_tabla="tableHistoricoPago"),__jquery(".tableConsultarUsuarios").length&&(clase_actual_tabla="tableConsultarUsuarios"),__jquery(".tableCTEnvio").length&&(clase_actual_tabla="tableResultadoConsultaCarga")),__jquery(".tableConsultarService").length&&(__jquery(".table-paginator").footable({paging:{enabled:b,size:10,countFormat:"{CP} de {TP} p\xe1gina(s)."},sorting:{enabled:c},columns:[{type:"html"}]}),__jquery(".tableConsultarService").length&&(clase_actual_tabla="tableConsultarService")),__jquery(".tableTopesRecaudo").length&&(__jquery(".table-paginator").footable({paging:{enabled:b,size:10,countFormat:"{CP} de {TP} p\xe1gina(s)."},sorting:{enabled:c},columns:[{type:"html",sorted:!0},{type:"html"},{type:"html"},{type:"html",sortable:!1},{type:"html",sortable:!1},{type:"html",sortable:!1}]}),__jquery(".tableTopesRecaudo").length&&(clase_actual_tabla="tableTopesRecaudo")),(__jquery(".tableAsociacionPagos").length||__jquery(".tableResultadoConsultaCarga").length)&&(__jquery(".table-paginator").footable({paging:{enabled:b,size:10,countFormat:"{CP} de {TP} p\xe1gina(s)."},sorting:{enabled:c},columns:[{type:"html",sortable:!1},{type:"html"},{type:"html"},{type:"html"},{type:"html"}]}),__jquery(".tableAsociacionPagos").length&&(clase_actual_tabla="tableAsociarPagos"),__jquery(".tableResultadoConsultaCarga").length&&(clase_actual_tabla="tableResultadoConsultaCarga")),__jquery(".tablePlantillaPersonalizada").length&&__jquery(".table-paginator").footable({paging:{enabled:b,size:10,countFormat:"{CP} de {TP} p\xe1gina(s)."},sorting:{enabled:c},columns:[{type:"html",sortable:!1},{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html"}]}),__jquery(".tableResultadoConsultaTransac").length&&(__jquery(".table-paginator").footable({paging:{enabled:b,size:10,countFormat:"{CP} de {TP} p\xe1gina(s)."},sorting:{enabled:c},columns:[{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html"},{type:"html"}]}),__jquery(".tableResultadoConsultaTransac").length&&(clase_actual_tabla="tableResultadoConsultaTransac")),b&&__jquery("[data-page-size]").parent().on("change",function(a){a.preventDefault();var b=__jquery(this).find("option:selected").data("pageSize");FooTable.get(".table-paginator").pageSize(b),clase_actual_tabla&&actualizarPaginador(clase_actual_tabla)}),__jquery(".table-paginator").length&&(__jquery(".table-paginator tfoot tr td ul").length?__jquery(".contpaginator").css("display","block"):__jquery(".contpaginator").css("display","none")),clase_actual_tabla&&moverPaginador(clase_actual_tabla)}function resizePageTabla(){window.addEventListener("orientationchange",function(){setTimeout(function(){if(__jquery(".tableAsociacionPagos .table-results").length){if(__jquery(window).width()<601){var a=new RotadorTabla(4,1,2,600);a.init(),posicionPaginador(),__jquery(document).delegate(".footable-page-link","click",function(){a.posicionRotador()}),__jquery(document).delegate(".cont-center-paginator select","change",function(){a.posicionRotador()})}__jquery(".txt-body-proteccion").addClass("head-asociacionPagos")}if(__jquery(".verifiPagos .table-results").length&&__jquery(window).width()<601){var a=new RotadorTabla(5,2,3,600);a.init(),posicionPaginador(),__jquery(document).delegate(".footable-page-link","click",function(){a.posicionRotador()}),__jquery(document).delegate(".cont-center-paginator select","change",function(){a.posicionRotador()})}if(__jquery(".table-results.tblHistorico").length&&__jquery(window).width()<700){var a=new RotadorTabla(5,2,3,700);a.init(),posicionPaginador(),__jquery(document).delegate(".footable-page-link","click",function(){a.posicionRotador()}),__jquery(document).delegate(".cont-center-paginator select","change",function(){a.posicionRotador()})}},1e3)},!1)}var clase_actual_tabla;__jquery(window).load(function(){if(resizePageTabla(),paginator(__jquery(".paginatorTableFull").length?"1":__jquery(".paginatorTable").length?"2":__jquery(".paginatorSortingTable").length?"3":"4"),__jquery(".tableAsociacionPagos .table-results").length){if(__jquery(window).width()<601){var a=new RotadorTabla(4,1,2,600);a.init(),posicionPaginador(),__jquery(document).delegate(".footable-page-link","click",function(){a.posicionRotador()}),__jquery(document).delegate(".cont-center-paginator select","change",function(){a.posicionRotador()})}__jquery(".txt-body-proteccion").addClass("head-asociacionPagos")}if(__jquery(".verifiPagos .table-results").length&&__jquery(window).width()<601){var a=new RotadorTabla(5,2,3,600);a.init(),posicionPaginador(),__jquery(document).delegate(".footable-page-link","click",function(){a.posicionRotador()}),__jquery(document).delegate(".cont-center-paginator select","change",function(){a.posicionRotador()})}if(__jquery(".table-results.tblHistorico").length&&__jquery(window).width()<700){var a=new RotadorTabla(5,2,3,700);a.init(),posicionPaginador(),__jquery(document).delegate(".footable-page-link","click",function(){a.posicionRotador()}),__jquery(document).delegate(".cont-center-paginator select","change",function(){a.posicionRotador()})}});(function(){ if(typeof ic4_wai_integration!="undefined"&&ic4_wai_integration===true){ if(typeof waiHideSecondaryNav!="undefined"&&waiHideSecondaryNav===true){ document.getElementById("wpthemeSecondaryBanner").style.display="none"; document.getElementById("wpthemeMainContent").style.display="none"; } document.getElementById("wptheme_banner").removeAttribute("role"); document.getElementById("wptheme_contentinfo").removeAttribute("role"); if(dojo!="undefined"){ djConfig.locale=dojo.locale; dojo.addOnLoad(function(){ document.getElementById("logoutlink").onclick=null; }); } if(typeof appName!="undefined"&&appName==="profile"){ ibmConfig.proxyURL=svcHrefProfiles+"/ajaxProxy/"; ibmConfig["com.ibm.mashups.proxy.url"]=svcHrefProfiles+"/ajaxProxy"; djConfig.baseUrl=(needProxy?(ibmConfig.proxyURL+encodeURIComponent(baseProtocol)+"/"+encodeURIComponent(baseHost)):(baseProtocol+"://"+baseHost))+basePath+"/web/dojo/"; djConfig.proxy=applicationContext+"/ajaxProxy"; } if(typeof i$!="undefined"&&i$.isRTL){ document.body.className=document.body.className.replace("lotusImagesOff",""); document.body.className+=" wptheme_ic4_wai_rtl"; } } })(); (function(){ if(!i$.isIE){ i$.addOnLoad(function(){ var _1=document.createElement("div"); var _2=ibmCfg.themeConfig.themeWebAppBaseURI; _1.style.cssText="border:1px solid;border-color:red green;position:absolute;height:5px;top:-999px;background-image:url(\""+_2+"/icons/blank.gif\");"; document.body.appendChild(_1); var _3=null; try{ _3=document.defaultView.getComputedStyle(_1,""); } catch(e){ _3=_1.currentStyle; } var _4=_3.backgroundImage; if((_3.borderTopColor==_3.borderRightColor)||(_4!=null&&(_4=="none"||_4=="url(invalid-url:)"))){ document.getElementsByTagName("body")[0].className+=" wpthemeImagesOff"; } document.body.removeChild(_1); }); } })(); (function(){ var _1=false; if(typeof wptheme==="undefined"||!wptheme){ wptheme={}; } i$.mash(wptheme,{togglePageMode:function(){ return i$.modules.loadDeferred().then(function(){ var _2=i$.fromPath("com.ibm.mashups"),_3=_2?com.ibm.mashups.builder.model.Factory.getRuntimeModel():null,_4=_2?com.ibm.mashups.enabler.user.Factory.getUserModel():null,_5=document.getElementsByTagName("body")[0],_6=function(_7){ if(_2){ com.ibm.mashups.services.ServiceManager.getService("eventService").broadcastEvent("com.ibm.mashups.builder.changePageMode",_7); _3.getCurrentPage().setPageMode(_7); } i$.fireEvent("wptheme/contextMenu/invalidate/all"); }; if((!_2&&!i$.hasClass(_5,"edit-mode"))||(_2&&_4.getAnonymousMode()!=com.ibm.mashups.enabler.user.AnonymousMode.ANONYMOUS&&_3.getCurrentPage().getPageMode()!="edit")){ _6("edit"); i$.addClass(_5,"edit-mode"); if(!_1){ if(!i$.isIE&&!i$.isOpera&&_2){ window.onbeforeunload=function(){ if(com.ibm.mashups.builder.model.Factory.getRuntimeModel().getCurrentPage().isDirty()){ return com.ibm.mm.builder.coreWidgetsStrings.I_PAGE_SAVE_WARNING; } }; } _1=true; } }else{ _6("view"); i$.removeClass(_5,"edit-mode"); } },function(_8){ console.log("Error going into edit mode. Most likely a session timeout. Refreshing. "+_8); window.location.reload(); }); },mobileGoToSearch:function(id,_9,_a,_b,_c,_d,_e){ var _f=document.getElementById(_c); var _10=document.getElementById("wpthemeSearchBoxInput"); if(i$.hasClass(_f,_9)){ wptheme.toggleMobileNav(id,_9,_a,_b,_c,_d,_e); if(_10){ setTimeout(function(){ _10.focus(); },550); } }else{ if(_10){ _10.focus(); } } },mobileNavResizeBinding:null,mobileNavSideLastExpanded:[],mobileNavSideExpanded:[],mobileNavSideTogglingRoot:false,resizeMobileNavSide:function(e){ var _11=document.getElementsByTagName("header")[0]; var _12,id; _12=document.getElementById("wpthemeNavRoot"); if(_12){ _12.style.top=_11.offsetHeight+"px"; _12.style.height=(window.innerHeight-_11.offsetHeight)+"px"; } for(var i=0;i_14){ _18=-_18; } } if(_18>0&&!this.mobileNavSideTogglingRoot){ if(ibmCfg.themeConfig.isRTL){ _13.style.clip="rect(0px,0px,"+_13.offsetHeight+"px,0px)"; }else{ _13.style.clip="rect(0px,"+_13.offsetWidth+"px,"+_13.offsetHeight+"px,"+_13.offsetWidth+"px)"; } } var _19=setInterval(function(){ if(_18>0&&_16+_18>_14){ _18=_14-_16; } if(_18<0&&_16+_18<_14){ _18=-(_16-_14); } if(_18<0&&!wptheme.mobileNavSideTogglingRoot){ if(ibmCfg.themeConfig.isRTL){ _13.style.clip="rect(0px,"+(_13.offsetWidth-(_17-=_18))+"px,"+_13.offsetHeight+"px,0px)"; }else{ _13.style.clip="rect(0px,"+_13.offsetWidth+"px,"+_13.offsetHeight+"px,"+(_17-=_18)+"px)"; } } if(_18>0&&!wptheme.mobileNavSideTogglingRoot){ if(ibmCfg.themeConfig.isRTL){ _13.style.clip="rect(0px,"+(_17+=_18)+"px,"+_13.offsetHeight+"px,0px)"; }else{ _13.style.clip="rect(0px,"+_13.offsetWidth+"px,"+_13.offsetHeight+"px,"+(_13.offsetWidth-(_17+=_18))+"px)"; } } if(ibmCfg.themeConfig.isRTL){ _13.style.right=(_16+=_18)+"px"; }else{ _13.style.left=(_16+=_18)+"px"; } if(_18>0&&_16>=_14||_18<0&&_16<=_14||_18==0){ clearInterval(_19); _13.style.clip=""; if(_15){ _15.call(); } } },1); },toggleMobileNav:function(id,_1a,_1b,_1c,_1d,_1e,_1f){ var _20=document.getElementById(id); var _21=document.getElementById("wpthemeNavRootLink"); var _22=document.getElementById(id+"Link"); var _23=document.getElementById(id+"Access"); var _24=document.getElementById(id+"Subnav"); var _25=document.getElementsByTagName("header")[0]; var _26=document.getElementById("layoutContainers"); if(_20){ if(_1f==0){ if(i$.hasClass(_21,"wpthemeNavOpened")){ i$.removeClass(_21,"wpthemeNavOpened"); }else{ i$.addClass(_21,"wpthemeNavOpened"); } } if(i$.hasClass(_20,_1a)){ if(id==_1d&&_1e){ this.mobileNavSideTogglingRoot=true; _20.style.top=_25.offsetHeight+"px"; _20.style.height=(window.innerHeight-_20.offsetTop)+"px"; if(ibmCfg.themeConfig.isRTL){ _20.style.right=(-_20.offsetWidth)+"px"; }else{ _20.style.left=(-_20.offsetWidth)+"px"; } this.mobileNavResizeBinding=i$.bindDomEvt(window,"resize",this.resizeMobileNavSide); } i$.removeClass(_20,_1a); _20.setAttribute("aria-expanded","true"); _22.setAttribute("aria-label",_1c); _22.title=_23.innerHTML=_1c; if(id==_1d&&_1e){ _25.style.position="fixed"; _25.style.width="100%"; _26.style.paddingTop=_25.offsetHeight+10+"px"; _25.style.zIndex="9998"; _25.style.top="0px"; this.animateMobileNavSidePanel(_20,0,function(){ if(wptheme.mobileNavSideLastExpanded.length==0){ wptheme.mobileNavSideTogglingRoot=false; } }); } if(_1e){ if(id==_1d){ for(var i=0;i=0;i--){ document.getElementById(this.mobileNavSideExpanded[i]).onclick.call(); } }else{ var _2a=id+"Link"; var i=-1; for(var j=this.mobileNavSideExpanded.length-1;j>=0;j--){ if(this.mobileNavSideExpanded[j]==_2a){ i=j; break; } } if(i!=-1){ var _2b; for(var j=this.mobileNavSideExpanded.length-1;j>=i;j--){ _2b=this.mobileNavSideExpanded.pop(); if(_2a!=_2b){ document.getElementById(_2b).onclick.call(); } } } _22.parentNode.parentNode.parentNode.onclick=null; } } if(_24&&_1e){ var _29=_24.offsetLeft; if(ibmCfg.themeConfig.isRTL){ _29=parseInt(_24.style.right); } this.animateMobileNavSidePanel(_24,_29-_24.offsetWidth,function(){ i$.addClass(_24,_1a); if(_24.parentNode!=_20){ _24=_24.parentNode.removeChild(_24); _20.appendChild(_24); } }); } if(id==_1d&&_1e){ _25.style.position="static"; _26.style.paddingTop=""; _25.style.width="auto"; _25.style.zIndex="auto"; this.animateMobileNavSidePanel(_20,-_20.offsetWidth,function(){ i$.addClass(_20,_1a); _20.setAttribute("aria-expanded","false"); _22.setAttribute("aria-label",_1b); _22.title=_23.innerHTML=_1b; wptheme.mobileNavSideTogglingRoot=false; }); i$.unbindDomEvt(this.mobileNavResizeBinding); this.mobileNavResizeBinding=null; }else{ i$.addClass(_20,_1a); _20.setAttribute("aria-expanded","false"); _22.setAttribute("aria-label",_1b); _22.title=_23.innerHTML=_1b; } } } },toggleMobileTopNav:function(_2c,_2d){ var _2e=document.getElementById("wpthemeTopNavToggleBtn"); var _2f=document.getElementById("wpthemeTopNavToggleBtnAccess"); var _30=document.getElementsByTagName("header")[0]; var _31=_30.children[0]; if(i$.hasClass(_2e,"wpthemeTopNavOpened")){ _31.style.display="none"; i$.removeClass(_2e,"wpthemeTopNavOpened"); _2e.setAttribute("aria-label",_2c); _2e.title=_2f.innerHTML=_2c; }else{ _31.style.display="block"; i$.addClass(_2e,"wpthemeTopNavOpened"); _2e.setAttribute("aria-label",_2d); _2e.title=_2f.innerHTML=_2d; } this.resizeMobileNavSide(); }}); var _32=document.getElementById("wpthemeHelpLink"); var _33=document.getElementById("wpthemeHelpOnClick"); var _34=document.getElementById("wpthemeHelpAnchor"); if(!(_32===null&&_33===null)&&_34!=null){ if(_32!=null){ var _35=_32.innerHTML; _34.onclick=function(){ window.open(_35,"wpthemeHelp","width=800,height=600"); }; }else{ if(_33!=null){ var _36=_33.innerHTML; _34.onclick=function(){ eval(_36); }; } } } })(); (function(){ i$.merge({ "WARNING_0":"Warning", "DELETE_0":"Delete", "INFO_0":"Information", "MESSAGES_AVAILABLE_1":"${0} messages are available for review", "SHOW_DETAILS_0":"Show Details", "ERROR_0":"Error", "HIDE_DETAILS_0":"Hide Details" },i$.fromPath("wptheme.statusBar.nls",true)); })(); (function(){ if(typeof com==="undefined"||!com){ com={}; } if(typeof com.ibm==="undefined"||!com.ibm){ com.ibm={}; } if(typeof com.ibm.widgets==="undefined"||!com.ibm.widgets){ com.ibm.widgets={}; } if(typeof com.ibm.widgets.StatusType==="undefined"||!com.ibm.widgets.StatusType){ com.ibm.widgets.StatusType=function(id,_1,_2,_3){ this._id=id; this._styleClass=_1; this._iconPath=_2; this._iconAlt=_3; }; } if(typeof com.ibm.widgets.StatusMessage==="undefined"||!com.ibm.widgets.StatusMessage){ com.ibm.widgets.StatusMessage=function(_4,_5,_6){ this._type=_4; this._message=_5; if(!i$.isString(_5)&&_5.message&&i$.isString(_5.message)){ this._message=_5.message; } this._details=_6; }; } if(typeof com.ibm.widgets.StatusBarV2==="undefined"||!com.ibm.widgets.StatusBarV2){ com.ibm.widgets.StatusBarV2=function(_7){ this.uid=_7; this.showDetails=false; this._messages=[]; this._connections=[]; this._numMessages=0; this._baseURL=window.location.protocol+"//"+window.location.host; this.errorGifPath=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; this.warningGifPath=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; this.infoGifPath=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; this._statusTypesMap={"error":new com.ibm.widgets.StatusType(0,"lotusError",this.errorGifPath,wptheme.statusBar.nls.ERROR_0),"warning":new com.ibm.widgets.StatusType(1,"lotusWarning",this.warningGifPath,wptheme.statusBar.nls.WARNING_0),"info":new com.ibm.widgets.StatusType(2,"lotusInfo",this.infoGifPath,wptheme.statusBar.nls.INFO_0)}; i$.addListener("/portal/status",i$.scope(this,this.addMessage)); i$.addListener("/message/status",i$.scope(this,this.addMessage)); i$.addListener("/portal/status/clear",i$.scope(this,this.clearMessage)); i$.addListener("/message/status/clear",i$.scope(this,this.clearMessage)); if(typeof (ibmCfg)!="undefined"&&ibmCfg.portalConfig){ this.isBidi=ibmCfg.portalConfig.isRTL; }else{ if(typeof (ibmPortalConfig)!="undefined"){ this.isBidi=ibmPortalConfig.isRTL; }else{ if(typeof (ibmConfig)!="undefined"){ this.isBidi=ibmConfig.isBidi; } } } i$.addOnUnload(i$.scope(this,this._onWindowUnload)); this.containerNode=i$.byId("wpthemeStatusBarContainer"); }; } i$.augment(com.ibm.widgets.StatusBarV2,{_onWindowUnload:function(){ i$.forEach(this._connections,function(_8){ i$.unbindDomEvt(_8); }); this._connections=null; this.clear(); this._messages=null; },_getStatusContainer:function(){ return this.containerNode; },_escapeHTML:function(_9){ if(_9.replace){ return _9.replace(/&/g,"&").replace(/>/g,">").replace(/=0;i--){ if(this._messages[i]._type==_d._type&&this._messages[i]._message==_d._message&&this._messages[i]._details==_d._details){ this._messages.splice(i,1); } } if(this._messages.length==0){ this.clear(); }else{ if(this._messages.length<100){ this.render(this._getStatusContainer()); } } } },addMessage:function(_e){ if(_e.uid&&_e.uid!=this.uid){ return; } var _f=_e.message; this._messages.push(_f); if(this._messages.length<100){ this.render(this._getStatusContainer()); } },render:function(_10){ if(_10==null){ _10=this._getStatusContainer(); } _10.innerHTML=""; if(this._messages.length>1){ this.renderHeader(_10); }else{ if(this._messages.length==1){ this.renderMessage(_10,this._messages[0],this.showDetails,0); } } if(this.showDetails&&this._messages.length>1){ for(x in this._messages){ this.renderMessage(_10,this._messages[x],this.showDetails,x); } } },renderHeader:function(_11){ if(this._messages.length>1){ var _12=2; for(var i=0;i1&&_18>=0){ _1a.style.marginLeft="10px"; } var _1b=document.createElement("img"); _1b.className="lotusIcon "+(_19._styleClass=="lotusError"?"lotusIconMsgError":_19._styleClass=="lotusWarning"?"lotusIconMsgWarning":"lotusIconMsgInfo"); _1b.src=_19._iconPath; _1b.alt=_1b.title=_19._iconAlt; _1a.appendChild(_1b); var _1c=document.createElement("span"); _1c.className="lotusAltText"; _1c.innerHTML=this._escapeHTML(_19._iconAlt+":"); _1a.appendChild(_1c); var _1d=document.createElement("div"); _1d.className="lotusMessageBody"; _1d.innerHTML=this._escapeHTML(_16._message); _1a.appendChild(_1d); if((this._messages.length>1&&_18<0)||(this._messages.length==1)){ if(_16._details&&_16._details.length>0||_18<0){ var _1e=document.createElement("a"); _1e.href="javascript:void(0)"; _1e.className="wpthemeHideShow"; _1e.role="button"; this._connections.push(i$.bindDomEvt(_1e,"onclick",i$.scope(this,this.toggleShowDetails))); var _1f=document.createElement("img"); _1f.className="lotusIcon16"; _1f.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; _1e.appendChild(_1f); var _20=document.createElement("span"); _20.className="lotusAltText"; _1e.appendChild(_20); }else{ _17=false; } var _21=document.createElement("a"); _21.href="javascript:void(0);"; _21.className="lotusDelete"; _21.role="button"; _21.title=wptheme.statusBar.nls.DELETE_0; this._connections.push(i$.bindDomEvt(_21,"onclick",i$.scope(this,this.clear))); var _22=document.createElement("img"); _22.alt=wptheme.statusBar.nls.DELETE_0; _22.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; _21.appendChild(_22); var _23=document.createElement("span"); _23.className="lotusAltText"; _23.innerHTML=this._escapeHTML(wptheme.statusBar.nls.DELETE_0); _21.appendChild(_23); if(_16._details&&_16._details.length>0||_18<0){ if(_17){ _1e.title=wptheme.statusBar.nls.HIDE_DETAILS_0; _1f.className+=" lotusIconHide"; _1f.alt=wptheme.statusBar.nls.HIDE_DETAILS_0; _20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.HIDE_DETAILS_0); }else{ _1e.title=wptheme.statusBar.nls.SHOW_DETAILS_0; _1f.className+=" lotusIconShow"; _1f.alt=wptheme.statusBar.nls.SHOW_DETAILS_0; _20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.SHOW_DETAILS_0); } _1a.appendChild(_1e); if(!this.isBidi){ _1d.style.marginRight="32px"; }else{ _1d.style.marginLeft="32px"; } } _1a.appendChild(_21); } var _24=document.createElement("div"); _24.className="wpthemeClear"; _1a.appendChild(_24); if(_16._details&&_16._details.length>0&&_17&&_18>=0){ var _25=document.createElement("div"); _25.className="wpthemeDetails"; _25.appendChild(document.createTextNode(_16._details)); _1a.appendChild(_25); } _15.appendChild(_1a); _15.setAttribute("role","alert"); _15.setAttribute("wairole","alert"); }}); if(typeof wpstatusbar==="undefined"||!wpstatusbar){ wpstatusbar=new com.ibm.widgets.StatusBarV2("ibmStatusBox"); } var _26=i$.getCookie("ibm.portal.operations.error"); if(_26){ var _27=i$.fromJson(_26); var _28="error"; if(_27.errorType){ _28=_27.errorType; }else{ if(_27.errorCode){ if(_27.errorCode=="400"){ _28="error"; } } } i$.fireEvent("/portal/status",[{message:new com.ibm.widgets.StatusMessage(_28,_27.errorMessage?_27.errorMessage:"",_27.errorDetails?_27.errorDetails:""),uid:"ibmStatusBox"}]); i$.deleteCookie("ibm.portal.operations.error"); } i$.addOnLoad(function(){ if("localStorage" in window&&window["localStorage"]!==null){ if(localStorage["com.ibm.wp.toolbar.msg.msg"]!=null){ i$.fireEvent("/message/status",[{message:new com.ibm.widgets.StatusMessage(localStorage["com.ibm.wp.toolbar.msg.type"],localStorage["com.ibm.wp.toolbar.msg.msg"],""),uid:"ibmStatusBox"}]); localStorage.removeItem("com.ibm.wp.toolbar.msg.type"); localStorage.removeItem("com.ibm.wp.toolbar.msg.msg"); } } }); })();