/** * jPList - jQuery Data Grid Controls 5.2.0.11 - http://jplist.com * Copyright 2016 Miriam Zusin */ (function(){var b=function(d,f){d&&d.panel&&d.controller&&(d.panel.addControl(f.$control),d.controller.addPaths(d.panel.paths))},c=function(d){d.observer.on(d.observer.events.knownStatusesChanged,function(f,e){var a;if(e&&(a=d.panel.mergeStatuses(e))&&0this.options.historyLength&&this.statusesQueue.shift()};jQuery.fn.jplist.History.prototype.getLastStatus=function(){var b=null;0this.options.historyLength&&this.listStatusesQueue.shift()};jQuery.fn.jplist.History.prototype.popList=function(){var b=null;0c-1&&(b=0);this.currentPage=b;this.start=this.currentPage*this.itemsOnPage;b=this.itemsNumber;c=this.start+this.itemsOnPage;c>b&&(c=b);this.end=c;b=this.currentPage;this.prevPage=0>=b?0:b-1;b=this.currentPage;c= this.pagesNumber;this.nextPage=0===c?0:b>=c-1?c-1:b+1}})();(function(){jQuery.fn.jplist.DomainDataItemServerModel=function(b,c,a){this.content="";this.dataType=c;this.count=0;this.responseText=a;this.dataType||(this.dataType="html");switch(this.dataType){case "html":c=jQuery(b);0c?a.addClass("jplist-sticky"):a.removeClass("jplist-sticky"))},c=function(a,d){d.each(function(){var a=jQuery(this),d=a.offset().top;a.data("top",d);b(a)});jQuery(window).scroll(function(){d.each(function(){b(jQuery(this))})})},a=function(a){var e=[];if("cookies"===a.options.storage||"localstorage"===a.options.storage&&jQuery.fn.jplist.LocalStorageService.supported())if("cookies"===a.options.storage&& (e=jQuery.fn.jplist.CookiesService.restoreCookies(a.options.storageName)),"localstorage"===a.options.storage&&jQuery.fn.jplist.LocalStorageService.supported()&&(e=jQuery.fn.jplist.LocalStorageService.restore(a.options.storageName)),0=d.length?a(this):this.controls.setDeepLinks(d,this.observer)};jQuery.fn.jplist.PanelController.prototype.setStatusesFromStorage=function(){a(this)};jQuery.fn.jplist.PanelController.prototype.setStatuses=function(a){this.history.addStatuses(a); this.controls.setStatuses(a,!1);this.history.addList(a)};jQuery.fn.jplist.PanelController.prototype.getStatuses=function(a){return this.controls.getStatuses(a)};jQuery.fn.jplist.PanelController.prototype.mergeStatuses=function(a){return this.controls.merge(!1,a)};jQuery.fn.jplist.PanelController.prototype.statusesChangedByDeepLinks=function(a,d){this.controls&&this.controls.statusesChangedByDeepLinks(d)};jQuery.fn.jplist.PanelController.prototype.getDeepLinksURLPerControls=function(){return this.controls.getDeepLinksUrl(this.options.delimiter1)}})();(function(){jQuery.fn.jplist.ControlFactory=function(b,c,a,d){this.options=b;this.observer=c;this.history=a;this.$root=d};jQuery.fn.jplist.ControlFactory.prototype.create=function(b,c){var a=null,d,f,e,h,g,k,l,m;d=b.attr("data-control-type");g=h=e=!0;k=!1;m=l=null;(f=b.attr("data-control-deep-link"))&&"false"===f.toString()&&(e=!1);(f=b.attr("data-control-storage"))&&"false"===f.toString()&&(h=!1);(f=b.attr("data-control-animation"))&&"false"===f.toString()&&(g=!1);(f=b.attr("data-control-animate-to-top"))&& "true"===f.toString()&&(k=!0);f={};jQuery.fn.jplist.controlTypes[d]&&(f=jQuery.extend(!0,{},f,jQuery.fn.jplist.controlTypes[d]));this.options.controlTypes&&this.options.controlTypes[d]&&(f=jQuery.extend(!0,{},f,this.options.controlTypes[d]));f&&(f.className&&(l=jQuery.fn.jplist.controls[f.className]),f.options&&(m=f.options));d={type:d,action:b.attr("data-control-action"),name:b.attr("data-control-name"),inDeepLinking:e,inStorage:h,inAnimation:g,isAnimateToTop:k,controlType:f,controlTypeClass:l,controlOptions:m, paths:[]};d=jQuery.extend(!0,d,{$control:b,history:this.history,observer:this.observer,options:this.options,$root:this.$root,controlsCollection:c});d.controlTypeClass&&jQuery.isFunction(d.controlTypeClass)&&(a=new d.controlTypeClass(d));return a};jQuery.fn.jplist.ControlFactory.prototype.getStatus=function(b){return null};jQuery.fn.jplist.ControlFactory.prototype.setStatus=function(b,c){};jQuery.fn.jplist.ControlFactory.prototype.getDeepLink=function(){return""};jQuery.fn.jplist.ControlFactory.prototype.getStatusByDeepLink= function(b,c){return null};jQuery.fn.jplist.ControlFactory.prototype.getPaths=function(b){return[]};jQuery.fn.jplist.ControlFactory.prototype.setByDeepLink=function(b){};jQuery.fn.jplist.ControlFactory.getProp=function(b,c){var a=[],d=new RegExp("^"+c+"[0-9]*$");jQuery.each(b.data(),function(c,e){d.test(c)&&a.push(e)});return 0==a.length?"":1==a.length?a[0]:a};jQuery.fn.jplist.ControlFactory.getPropPath=function(b,c){var a="";if(jQuery.isArray(b))for(var d=0;d=a.$control.find(".jplist-dd-panel").length&&a.$control.prepend('
'+ b.text()+"
");c(a);return jQuery.extend(this,a)};jQuery.fn.jplist.DropdownControl=function(b,c,e,h){return new a(b,c,e,h)}})();(function(){jQuery.fn.jplist.Storage=function(b,c,a){this.storageType=b;this.storageName=c;this.cookiesExpiration=a;this.isStorageEnabled="cookies"===b||"localstorage"===b&&jQuery.fn.jplist.LocalStorageService.supported()};jQuery.fn.jplist.Storage.prototype.save=function(b){var c=[],a;if(b&&this.isStorageEnabled){for(var d=0;d