%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tradesc/www/relax/wp-content/uploads/elementor/js/min/
Upload File :
Create Path :
Current File : /home/tradesc/www/relax/wp-content/uploads/elementor/js/min/elements-acfposts.min.js

var isAdminBar=!1,isEditMode=!1;(function($){var WidgetElementsPostsDCEHandler=function($scope,$){var infScroll=null;var elementSettings=get_Dyncontel_ElementSettings($scope),id_scope=$scope.attr('data-id'),elementorElement='.elementor-element-'+id_scope,is_history=Boolean(elementSettings.infiniteScroll_enable_history)?'replace':!1
$block_acfposts='.acfposts-grid',$objBlock_acfposts=$scope.find($block_acfposts);var id_post=$scope.closest('.elementor').attr('data-post-id');if($objBlock_acfposts.data('style')=='swiper'||$objBlock_acfposts.data('style')=='carousel'){if(elementSettings.masking_enable){$objBlock_acfposts.closest('.elementor-section').css('overflow','hidden')}}
if($objBlock_acfposts.data('style')=='grid'){$layoutMode='masonry';if($objBlock_acfposts.data('fitrow'))
$layoutMode='fitRows';var $grid_dce_posts=$objBlock_acfposts.isotope({itemSelector:'.dce-post-item',layoutMode:$layoutMode,sortBy:'original-order',percentPosition:!0,masonry:{columnWidth:'.dce-post-item'}});$grid_dce_posts.imagesLoaded().progress(function(){$grid_dce_posts.isotope('layout')});$grid_dce_posts.imagesLoaded().always(function(){$grid_dce_posts.isotope('layout')});var iso=$grid_dce_posts.data('isotope');$scope.find('.dce-filters .filters-item').on('click','a',function(e){var filterValue=$(this).attr('data-filter');$(this).parent().siblings().removeClass('filter-active');$(this).parent().addClass('filter-active');$grid_dce_posts.isotope({filter:filterValue});if(elementSettings.infiniteScroll_enable){if($objBlock_acfposts.length){$objBlock_acfposts.infiniteScroll('loadNextPage')}}
return!1})}else if($($scope).find($block_acfposts).data('style')=='carousel'){var slidesToShow=elementSettings.slides_to_show||3,isSingleSlide=1===slidesToShow,centro=!0,cicloInfinito=!1;var slideNum=$scope.find('.dce-post-item').length;if(slideNum<Number(elementSettings.slides_to_show)){centroDiapo=!0;cicloInfinito=!1;slideInitNum=Math.ceil(slideNum/2)}else{centro=Boolean(elementSettings.carousel_center_enable);cicloInfinito=Boolean(elementSettings.carousel_infinite_enable)}
var slickOptions={dots:Boolean(elementSettings.carousel_dots_enable),arrows:Boolean(elementSettings.carousel_arrow_enable),prevArrow:'<button type="button" class="slick-prev"><i class="fa fa-angle-left" aria-hidden="true"></i></button>',nextArrow:'<button type="button" class="slick-next"><i class="fa fa-angle-right" aria-hidden="true"></i></button>',infinite:cicloInfinito,autoplay:Boolean(elementSettings.carousel_autoplay_enable),centerPadding:!1,centerMode:Boolean(centro),speed:elementSettings.carousel_speed||500,autoplaySpeed:elementSettings.carousel_autoplayspeed||3000,slidesToShow:Number(elementSettings.slides_to_show)||4,slidesToScroll:Number(elementSettings.slides_to_scroll)||4,responsive:[{breakpoint:992,settings:{slidesToShow:Number(elementSettings.slides_to_show_tablet)||2,slidesToScroll:Number(elementSettings.slides_to_scroll_tablet)||2,dots:Boolean(elementSettings.carousel_dots_enable_tablet),arrows:Boolean(elementSettings.carousel_arrow_enable_tablet),}},{breakpoint:480,settings:{slidesToShow:Number(elementSettings.slides_to_show_mobile)||1,slidesToScroll:Number(elementSettings.slides_to_scroll_mobile)||1,dots:Boolean(elementSettings.carousel_dots_enable_mobile),arrows:Boolean(elementSettings.carousel_arrow_enable_mobile),}}]};if(isSingleSlide){slickOptions.fade='fade'===elementSettings.carousel_effect}else{slickOptions.slidesToScroll=+elementSettings.slides_to_scroll}
$objBlock_acfposts.slick(slickOptions)}else if($($scope).find($block_acfposts).data('style')=='swiper'){var elementSettings=get_Dyncontel_ElementSettings($scope);var elementSwiper=$scope.find('.swiper-container')[0];var id_scope=$scope.attr('data-id');var centroDiapo=!1;var cicloInfinito=!1;var slideInitNum=0;var slidesPerView=Number(elementSettings.slidesPerView);var slideNum=$scope.find('.dce-post-item').length;centerDiapo=Boolean(elementSettings.centeredSlides);cicloInfinito=Boolean(elementSettings.loop);var elementorBreakpoints=elementorFrontend.config.breakpoints;var spaceBetween=0;if(elementSettings.spaceBetween){spaceBetween=elementSettings.spaceBetween}
var swiperOptions={direction:'horizontal',initialSlide:slideInitNum,speed:Number(elementSettings.speed_slider)||300,autoHeight:Boolean(elementSettings.autoHeight),roundLengths:Boolean(elementSettings.roundLengths),effect:elementSettings.effects||'slide',slidesPerView:slidesPerView||'auto',slidesPerGroup:Number(elementSettings.slidesPerGroup)||1,spaceBetween:spaceBetween,slidesOffsetBefore:0,slidesOffsetAfter:0,slidesPerColumn:Number(elementSettings.slidesColumn)||1,slidesPerColumnFill:'row',centerInsufficientSlides:!0,watchOverflow:!0,centeredSlides:centroDiapo,grabCursor:Boolean(elementSettings.grabCursor),freeMode:Boolean(elementSettings.freeMode),freeModeMomentum:Boolean(elementSettings.freeModeMomentum),freeModeMomentumRatio:Number(elementSettings.freeModeMomentumRatio)||1,freeModeMomentumVelocityRatio:Number(elementSettings.freeModeMomentumVelocityRatio)||1,freeModeMomentumBounce:Boolean(elementSettings.freeModeMomentumBounce),freeModeMomentumBounceRatio:Number(elementSettings.speed)||1,freeModeMinimumVelocity:Number(elementSettings.speed)||0.02,freeModeSticky:Boolean(elementSettings.freeModeSticky),loop:cicloInfinito,navigation:{nextEl:id_post?'.dce-elementor-post-'+id_post+' .elementor-element-'+id_scope+' .next-'+id_scope:'.next-'+id_scope,prevEl:id_post?'.dce-elementor-post-'+id_post+' .elementor-element-'+id_scope+' .prev-'+id_scope:'.prev-'+id_scope,},pagination:{el:id_post?'.dce-elementor-post-'+id_post+' .elementor-element-'+id_scope+' .pagination-'+id_scope:'.pagination-'+id_scope,clickable:!0,type:String(elementSettings.pagination_type)||'bullets',dynamicBullets:!0,renderFraction:function(currentClass,totalClass){return'<span class="'+currentClass+'"></span>'+'<span class="separator">'+String(elementSettings.fraction_separator)+'</span>'+'<span class="'+totalClass+'"></span>'},},mousewheel:Boolean(elementSettings.mousewheelControl),keyboard:{enabled:Boolean(elementSettings.keyboardControl),},on:{init:function(){$('body').attr('data-carousel-'+id_scope,this.realIndex)},slideChange:function(e){$('body').attr('data-carousel-'+id_scope,this.realIndex)},}};if(elementSettings.useAutoplay){swiperOptions=$.extend(swiperOptions,{autoplay:!0});var autoplayDelay=Number(elementSettings.autoplay);if(!autoplayDelay){autoplayDelay=3000}else{autoplayDelay=Number(elementSettings.autoplay)}
swiperOptions=$.extend(swiperOptions,{autoplay:{delay:autoplayDelay,disableOnInteraction:Boolean(elementSettings.autoplayDisableOnInteraction),stopOnLastSlide:Boolean(elementSettings.autoplayStopOnLast)}})}
var responsivePoints=swiperOptions.breakpoints={};responsivePoints[elementorBreakpoints.lg]={slidesPerView:Number(elementSettings.slidesPerView)||'auto',slidesPerGroup:Number(elementSettings.slidesPerGroup)||1,spaceBetween:Number(elementSettings.spaceBetween)||0,slidesPerColumn:Number(elementSettings.slidesColumn)||1,};responsivePoints[elementorBreakpoints.md]={slidesPerView:Number(elementSettings.slidesPerView_tablet)||Number(elementSettings.slidesPerView)||'auto',slidesPerGroup:Number(elementSettings.slidesPerGroup_tablet)||Number(elementSettings.slidesPerGroup)||1,spaceBetween:Number(elementSettings.spaceBetween_tablet)||0,slidesPerColumn:Number(elementSettings.slidesColumn_tablet)||Number(elementSettings.slidesColumn)||1,};responsivePoints[elementorBreakpoints.xs]={slidesPerView:Number(elementSettings.slidesPerView_mobile)||Number(elementSettings.slidesPerView_tablet)||Number(elementSettings.slidesPerView)||'auto',slidesPerGroup:Number(elementSettings.slidesPerGroup_mobile)||Number(elementSettings.slidesPerGroup_tablet)||Number(elementSettings.slidesPerGroup)||1,spaceBetween:Number(elementSettings.spaceBetween_mobile)||0,slidesPerColumn:Number(elementSettings.slidesColumn_mobile)||Number(elementSettings.slidesColumn_tablet)||Number(elementSettings.slidesColumn)||1,};swiperOptions=$.extend(swiperOptions,responsivePoints);var mySwiper=new Swiper(elementSwiper,swiperOptions);if(elementSettings.useAutoplay&&elementSettings.autoplayStopOnHover){$(elementSwiper).on({mouseenter:function(){mySwiper.autoplay.stop()},mouseleave:function(){mySwiper.autoplay.start()}})}}
if($objBlock_acfposts.data('style')=='grid'||$objBlock_acfposts.data('style')=='flexgrid'||$objBlock_acfposts.data('style')=='simple'){if(elementSettings.infiniteScroll_enable){if(jQuery(elementorElement+' .pagination__next').length){var infiniteScroll_options={path:elementorElement+' .pagination__next',history:is_history,append:elementorElement+' .dce-post-item',outlayer:iso,status:elementorElement+' .page-load-status',hideNav:elementorElement+'.pagination',scrollThreshold:'scroll'===elementSettings.infiniteScroll_trigger?!0:!1,loadOnScroll:'scroll'===elementSettings.infiniteScroll_trigger?!0:!1,onInit:function(){this.on('load',function(){})}}
if(elementSettings.infiniteScroll_trigger=='button'){infiniteScroll_options.button=elementorElement+' .view-more-button'}
infScroll=$objBlock_acfposts.infiniteScroll(infiniteScroll_options);var nElements=jQuery(elementorElement+' .dce-post-item:visible').length;$objBlock_acfposts.on('append.infiniteScroll',function(event,response,path,items){setTimeout(function(){var nElementsVisible=jQuery(elementorElement+' .dce-post-item:visible').length;if(nElementsVisible<=nElements){$objBlock_acfposts.infiniteScroll('loadNextPage')}},1000)})}}}
function VerticalTimeline(element){this.element=element;this.blocks=this.element.getElementsByClassName("js-cd-block");this.images=this.element.getElementsByClassName("js-cd-img");this.contents=this.element.getElementsByClassName("js-cd-content");this.offset=0.8;this.hideBlocks()};VerticalTimeline.prototype.hideBlocks=function(){if(!"classList" in document.documentElement){return}
var self=this;for(var i=0;i<this.blocks.length;i++){(function(i){if(self.blocks[i].getBoundingClientRect().top>window.innerHeight*self.offset){if(self.images[i]){self.images[i].classList.add("cd-is-hidden")}
if(self.contents[i]){self.contents[i].classList.add("cd-is-hidden")}}})(i)}};VerticalTimeline.prototype.showBlocks=function(){if(!"classList" in document.documentElement){return}
var self=this;if(self.contents.length){for(var i=0;i<this.blocks.length;i++){(function(i){if(self.contents[i].classList.contains("cd-is-hidden")&&self.blocks[i].getBoundingClientRect().top<=window.innerHeight*self.offset){self.images[i].classList.add("cd-timeline__img--bounce-in");self.contents[i].classList.add("cd-timeline__content--bounce-in");self.images[i].classList.remove("cd-is-hidden");self.contents[i].classList.remove("cd-is-hidden")}})(i)}}};var verticalTimelines=document.getElementsByClassName("js-cd-timeline"),verticalTimelinesArray=[],scrolling=!1;if(verticalTimelines.length>0){for(var i=0;i<verticalTimelines.length;i++){(function(i){verticalTimelinesArray.push(new VerticalTimeline(verticalTimelines[i]))})(i)}
jQuery('.wrap-p .modal-p').on("scroll",function(event){if(!scrolling){scrolling=!0;(!window.requestAnimationFrame)?setTimeout(checkTimelineScroll,250):window.requestAnimationFrame(checkTimelineScroll)}});window.addEventListener("scroll",function(event){if(!scrolling){scrolling=!0;(!window.requestAnimationFrame)?setTimeout(checkTimelineScroll,250):window.requestAnimationFrame(checkTimelineScroll)}})}
function checkTimelineScroll(){verticalTimelinesArray.forEach(function(timeline){timeline.showBlocks()});scrolling=!1}
if($scope.find('.dce-hover-effect').length){$scope.find('.dce-post-item').each(function(i,el){$(el).on("mouseenter touchstart",function(){$(this).find('.dce-hover-effect-content').removeClass('dce-close').addClass('dce-open')});$(el).on("mouseleave touchend",function(){$(this).find('.dce-hover-effect-content').removeClass('dce-open').addClass('dce-close')})})}};$(window).on('elementor/frontend/init',function(){if(elementorFrontend.isEditMode()){isEditMode=!0}
if($('body').is('.admin-bar')){isAdminBar=!0}
elementorFrontend.hooks.addAction('frontend/element_ready/dyncontel-acfposts.default',WidgetElementsPostsDCEHandler)});if($('.wow').length){var wow=new WOW({boxClass:'wow',animateClass:'animated',offset:0,mobile:!0,live:!0,callback:function(box){},scrollContainer:null});wow.init()}})(jQuery)

Zerion Mini Shell 1.0