var vcGridStyleAll;(function($){vcGridStyleAll=function(grid){this.grid=grid;this.settings=grid.settings;this.filterValue=null;this.$el=false;this.$content=false;this.isLoading=false;this.$loader=$('
');this.init();};vcGridStyleAll.prototype.init=function(){_.bindAll(this,'addItems','showItems');};vcGridStyleAll.prototype.render=function(){this.$el=this.grid.$el;this.$content=this.$el;this.setIsLoading();this.grid.ajax({},this.addItems);};vcGridStyleAll.prototype.setIsLoading=function(){this.$content.append(this.$loader);this.isLoading=true;};vcGridStyleAll.prototype.unsetIsLoading=function(){this.isLoading=false;this.$loader&&this.$loader.remove();};vcGridStyleAll.prototype.filter=function(filter){filter=_.isUndefined(filter)||'*'===filter?'':filter;if(this.filterValue==filter){return false;} this.$content.find('.vc_visible-item').removeClass('vc_visible-item '+ vcGridSettings.addItemsAnimation+' animated');this.filterValue=filter;_.defer(this.showItems);};vcGridStyleAll.prototype.showItems=function(){var $els=this.$content.find('.vc_grid-item'+ this.filterValue);this.setIsLoading();$els.addClass('vc_visible-item '+('none'!==vcGridSettings.addItemsAnimation?vcGridSettings.addItemsAnimation+' animated':''));this.unsetIsLoading();jQuery(window).trigger('grid:items:added',this.$el);};vcGridStyleAll.prototype.addItems=function(html){this.unsetIsLoading();$(html).appendTo(this.$el);this.$content=this.$el.find('[data-vc-grid-content="true"]');this.grid.initFilter();this.filter();window.vc_prettyPhoto();return false;};})(window.jQuery);