/*! * WPBakery Page Builder v6.0.0 (https://wpbakery.com) * Copyright 2011-2021 Michael M, WPBakery * License: Commercial. More details: http://go.wpbakery.com/licensing */ // jscs:disable // jshint ignore: start !function($){"use strict";var vcGridStyleAll=function(grid){this.grid=grid,this.settings=grid.settings,this.filterValue=null,this.$el=!1,this.$content=!1,this.isLoading=!1,this.$loader=$('
'),this.init()};vcGridStyleAll.prototype.init=function(){_.bindAll(this,"addItems","showItems","setIsLoading")},vcGridStyleAll.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.$content.find(".vc_grid-item").length?(this.grid.initFilter(),this.filter(),this.showItems(),this.filterValue=-1,window.vc_prettyPhoto()):(_.defer(this.setIsLoading),this.grid.ajax({},this.addItems))},vcGridStyleAll.prototype.setIsLoading=function(){this.$content.append(this.$loader),this.isLoading=!0},vcGridStyleAll.prototype.unsetIsLoading=function(){this.isLoading=!1,this.$loader&&this.$loader.remove()},vcGridStyleAll.prototype.filter=function(filter){if(filter=_.isUndefined(filter)||"*"===filter?"":filter,this.filterValue==filter)return!1;var animation=this.$content.closest(".vc_grid-container").data("initial-loading-animation");window.vcGridSettings.addItemsAnimation=animation,this.$content.find(".vc_visible-item").removeClass("vc_visible-item "+window.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();var animation=this.$content.closest(".vc_grid-container").data("initial-loading-animation");window.vcGridSettings.addItemsAnimation=animation,$els.addClass("vc_visible-item "+("none"!==window.vcGridSettings.addItemsAnimation?window.vcGridSettings.addItemsAnimation+" animated":"")),this.unsetIsLoading(),$(window).trigger("grid:items:added",this.$el)},vcGridStyleAll.prototype.addItems=function($els){$els&&$els.length&&($els=$($els),this.$el.html($els),this.unsetIsLoading(),this.$content=$els.find('[data-vc-grid-content="true"]'),this.grid.initFilter(),this.filter(),window.vc_prettyPhoto())},window.vcGridStyleAll=vcGridStyleAll}(window.jQuery),function($){"use strict";var vcGridStyleLoadMore=function(grid){this.grid=grid,this.settings=grid.settings,this.$loadMoreBtn=!1,this.$el=!1,this.filterValue=null,this.$content=!1,this.isLoading=!1,this.$loader=$('
'),this.init()};vcGridStyleLoadMore.prototype.setIsLoading=function(){this.$loadMoreBtn&&this.$loadMoreBtn.hide(),this.isLoading=!0},vcGridStyleLoadMore.prototype.unsetIsLoading=function(){this.isLoading=!1,this.setLoadMoreBtn()},vcGridStyleLoadMore.prototype.init=function(){_.bindAll(this,"addItems")},vcGridStyleLoadMore.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.grid.initFilter(),this.filter(void 0,!0),this.showItems(!0),this.filterValue=-1,window.vc_prettyPhoto(),this.$content.append(this.$loader),this.grid.ajax({},this.addItems)},vcGridStyleLoadMore.prototype.showItems=function(animate){var $els=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")");this.setIsLoading();var animation=this.$content.closest(".vc_grid-container").data("initial-loading-animation");window.vcGridSettings.addItemsAnimation=animation,$els.addClass("vc_visible-item"),animate&&$els.addClass(window.vcGridSettings.addItemsAnimation+" animated"),this.unsetIsLoading(),$(window).trigger("grid:items:added",this.$el)},vcGridStyleLoadMore.prototype.filter=function(filter,animate){if(filter=_.isUndefined(filter)||"*"===filter?"":filter,this.filterValue==filter)return!1;this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item "),this.filterValue=filter,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),this.showItems(animate)},vcGridStyleLoadMore.prototype.addItems=function($els){var self;$els&&$els.length&&($els=$($els),this.$el.html($els),this.unsetIsLoading(),this.$content=$els.find('[data-vc-grid-content="true"]'),this.$loadMoreBtn=$els.find('[data-vc-grid-load-more-btn="true"] .vc_btn3'),this.$loadMoreBtn.length||(this.$loadMoreBtn=$els.find('[data-vc-grid-load-more-btn="true"] .vc_btn')),(self=this).$loadMoreBtn.on("click",function(e){e.preventDefault(),self.showItems(!0)}),this.$loadMoreBtn.hide(),this.grid.initFilter(),this.filter(),this.$loader.remove(),window.vc_prettyPhoto())},vcGridStyleLoadMore.prototype.setLoadMoreBtn=function(){$('.vc_grid_filter-item:not(".vc_visible-item")',this.$content).length&&$(".vc_grid_filter-item",this.$content).length?this.$loadMoreBtn&&this.$loadMoreBtn.show():this.$loadMoreBtn&&this.$loadMoreBtn.hide()},window.vcGridStyleLoadMore=vcGridStyleLoadMore}(window.jQuery),function($){"use strict";var vcGridStyleLazy;!function($){var VcWaypoint=window.VcWaypoint;window.VcGridInfinite=function($el,options){var opts=$.extend({},window.VcWaypoint.defaults,{container:"auto",items:".infinite-item",offset:"bottom-in-view"},options);opts.element=$el,opts.handler=function(direction){"down"!==direction&&"right"!==direction||($el.data("vcWaypoint")&&$el.data("vcWaypoint").destroy(),opts.handle.load.call(this,opts))},$el.data("vcWaypoint",new VcWaypoint(opts))}}(window.jQuery),(vcGridStyleLazy=function(grid){this.grid=grid,this.settings=grid.settings,this.$el=!1,this.filterValue=null,this.$content=!1,this.isLoading=!1,this.$loader=$('
'),this.init()}).prototype.setIsLoading=function(){this.$content.append(this.$loader),this.isLoading=!0},vcGridStyleLazy.prototype.unsetIsLoading=function(){this.isLoading=!1,this.$loader&&this.$loader.remove()},vcGridStyleLazy.prototype.init=function(){_.bindAll(this,"addItems","showItems","setIsLoading")},vcGridStyleLazy.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.grid.initFilter(),this.filter(),this.showItems(),this.filterValue=-1,window.vc_prettyPhoto(),_.defer(this.setIsLoading),this.grid.ajax({},this.addItems)},vcGridStyleLazy.prototype.showItems=function(){var $els=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")");this.setIsLoading();var animation=this.$content.closest(".vc_grid-container").data("initial-loading-animation");vcGridSettings.addItemsAnimation=animation,$els.addClass("vc_visible-item "+vcGridSettings.addItemsAnimation+" animated"),this.unsetIsLoading(),$(window).trigger("grid:items:added",this.$el)},vcGridStyleLazy.prototype.filter=function(filter){if(filter=_.isUndefined(filter)||"*"===filter?"":filter,this.filterValue==filter)return!1;var animation=this.$content.closest(".vc_grid-container").data("initial-loading-animation");vcGridSettings.addItemsAnimation=animation,this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item "+("none"!==vcGridSettings.addItemsAnimation?vcGridSettings.addItemsAnimation+" animated":"")),this.filterValue=filter,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),_.defer(this.showItems),this.initScroll()},vcGridStyleLazy.prototype.addItems=function($els){$els&&$els.length&&($els=$($els),this.$el.html($els),this.unsetIsLoading(),this.$content=$els.find('[data-vc-grid-content="true"]'),this.grid.initFilter(),this.filter(),window.vc_prettyPhoto())},vcGridStyleLazy.prototype.initScroll=function(){var self=this;this.$content.unbind(".vcwaypoint"),new window.VcGridInfinite(this.$content,{container:"auto",items:".vc_grid-item",handle:{load:function(opts){self.showItems(),self.checkNext(opts)}}})},vcGridStyleLazy.prototype.checkNext=function(opts){var self;this.$content.find('.vc_grid_filter-item:not(".vc_visible-item")').length&&(self=this,_.defer(function(){return self.$content.vcwaypoint(opts)}))},window.vcGridStyleLazy=vcGridStyleLazy}(window.jQuery),function($){"use strict";var vcGridStylePagination=function(grid){this.grid=grid,this.settings=grid.settings,this.$el=!1,this.$content=!1,this.filterValue=null,this.isLoading=!1,this.htmlCache=!1,this.$loader=$('
'),this.init()};vcGridStylePagination.prototype.init=function(){_.bindAll(this,"addItems","initCarousel")},vcGridStylePagination.prototype.setIsLoading=function(){this.$loader.show(),this.isLoading=!0},vcGridStylePagination.prototype.unsetIsLoading=function(){this.isLoading=!1,this.$loader.hide()},vcGridStylePagination.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.$content.append(this.$loader),this.setIsLoading(),this.grid.ajax({},this.addItems)},vcGridStylePagination.prototype.filter=function(filter){return filter=_.isUndefined(filter)||"*"===filter?"":filter,this.filterValue!=filter&&(!(!this.htmlCache||!this.htmlCache.length)&&(this.$content.data("owl.vccarousel")&&(this.$content.off("initialized.owl.vccarousel"),this.$content.off("changed.owl.vccarousel"),this.$content.data("vcPagination")&&this.$content.data("vcPagination").twbsPagination("destroy"),this.$content.data("owl.vccarousel").destroy()),this.$content.empty(),$html=$(".vc_grid-item",this.htmlCache),""!==filter&&($html=$html.filter(filter)),this.filterValue=filter,void this.buildSlides($html.addClass("vc_visible-item"))));var $html},vcGridStylePagination.prototype.buildSlides=function($html){for(var tempArray,chunk=parseInt(this.settings.items_per_page,10),i=0,j=$html.length;i').append($(tempArray)).appendTo(this.$content);this.$content.find(".vc_pageable-slide-wrapper:first").imagesLoaded(this.initCarousel)},vcGridStylePagination.prototype.addItems=function(html){this.$el.append(html),!1===this.htmlCache&&(this.htmlCache=html),this.unsetIsLoading(),this.$content=this.$el.find('[data-vc-pageable-content="true"]'),this.$content.addClass("owl-carousel vc_grid-owl-theme"),this.grid.initFilter(),this.filter(),window.vc_prettyPhoto()},vcGridStylePagination.prototype.initCarousel=function(){var that,$vcCarousel;$.fn.vcOwlCarousel&&(($vcCarousel=(that=this).$content.data("owl.vccarousel"))&&$vcCarousel.destroy(),this.$content.on("initialized.owl.vccarousel",function(itemsCount){var $carousel=itemsCount.relatedTarget,$pagination=$carousel.items(),animation=that.$content.closest(".vc_grid-container").data("initial-loading-animation");$pagination.forEach(function(i){jQuery(i).find(".vc_grid-item").addClass(animation+" animated")}),-1").addClass("vc_grid-pagination").appendTo(that.$el)).twbsPagination({totalPages:itemsCount,visiblePages:that.settings.visible_pages,onPageClick:function(event,page){$carousel.to(page-1)},paginationClass:"vc_grid-pagination-list vc_grid-"+that.settings.paging_design+" vc_grid-pagination-color-"+that.settings.paging_color,nextClass:"vc_grid-next",first:20'),this.masonryEnabled=!1,_.bindAll(this,"setMasonry"),this.init()};vcGridStyleAllMasonry.prototype=_.extend({},window.vcGridStyleAll.prototype,{render:function(){this.$el=this.grid.$el,this.$content=this.$el,_.defer(this.setIsLoading),this.grid.ajax({},this.addItems)},showItems:function(){var $els=this.$content.find(".vc_grid-item"+this.filterValue),self=this;this.setIsLoading(),$els.imagesLoaded(function(){$els.addClass("vc_visible-item"),self.setItems($els),self.filtered&&(self.filtered=!1,self.setMasonry()),self.unsetIsLoading(),window.vc_prettyPhoto(),$(window).trigger("grid:items:added",self.$el)})},filter:function(filter){if(filter=_.isUndefined(filter)||"*"===filter?"":filter,this.filterValue==filter)return!1;this.filterValue=filter,this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1,this.$content.find(".vc_visible-item").removeClass("vc_visible-item"),this.$content.find(".vc_grid-item"+this.filterValue),this.filtered=!0,$(window).on("resize",this.setMasonry),this.setMasonry(),this.showItems()},setIsLoading:function(){this.$el.append(this.$loader),this.isLoading=!0},unsetIsLoading:function(){this.isLoading=!1,this.$loader&&this.$loader.remove()},setItems:function(els){this.masonryEnabled?this.$content.masonry("appended",els):this.setMasonry()},setMasonry:function(){var animation,settings;window.innerWidth'),this.masonryEnabled=!1,_.bindAll(this,"setMasonry"),this.init()};vcGridStyleLazyMasonry.prototype=_.extend({},window.vcGridStyleLazy.prototype,{render:function(){this.$el=this.grid.$el,this.$content=this.$el,this.setIsLoading(),this.grid.ajax({},this.addItems)},showItems:function(){if(!0===this.isLoading)return!1;this.setIsLoading();var $els=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")"),self=this;$els.imagesLoaded(function(){$els.addClass("vc_visible-item"),self.setItems($els),self.filtered&&(self.filtered=!1,self.setMasonry(),self.initScroll(),window.vc_prettyPhoto()),self.unsetIsLoading(),$(window).trigger("grid:items:added",self.$el)})},setIsLoading:function(){this.$el.append(this.$loader),this.isLoading=!0},filter:function(filter){if(filter=_.isUndefined(filter)||"*"===filter?"":filter,this.filterValue==filter)return!1;this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1,this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item"),this.filterValue=filter,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),this.filtered=!0,$(window).on("resize",this.setMasonry),this.setMasonry(),_.defer(this.showItems)},setItems:function(els){this.masonryEnabled?this.$content.masonry("appended",els):this.setMasonry()},setMasonry:function(){var animation,settings;window.innerWidth'),this.masonryEnabled=!1,_.bindAll(this,"setMasonry"),this.init()};vcGridStyleLoadMoreMasonry.prototype=_.extend({},window.vcGridStyleLoadMore.prototype,{render:function(){this.$el=this.grid.$el,this.$content=this.$el,this.setIsLoading(),this.grid.ajax({},this.addItems)},showItems:function(){if(!0===this.isLoading)return!1;this.setIsLoading();var $els=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")"),self=this;$els.imagesLoaded(function(){$els.addClass("vc_visible-item"),self.setItems($els),self.filtered&&(self.filtered=!1,self.setMasonry(),window.vc_prettyPhoto()),self.unsetIsLoading(),$(window).trigger("grid:items:added",self.$el)})},filter:function(filter){if(filter=_.isUndefined(filter)||"*"===filter?"":filter,this.filterValue==filter)return!1;this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1,this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item"),this.filterValue=filter,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),this.filtered=!0,$(window).on("resize",this.setMasonry),this.setMasonry(),this.showItems()},setIsLoading:function(){this.$el.append(this.$loader),this.$loadMoreBtn&&this.$loadMoreBtn.hide(),this.isLoading=!0},unsetIsLoading:function(){this.isLoading=!1,this.$loader&&this.$loader.remove(),this.setLoadMoreBtn()},setItems:function(els){this.masonryEnabled?this.$content.masonry("appended",els):this.setMasonry()},setMasonry:function(){var animation,settings;window.innerWidth