-
Notifications
You must be signed in to change notification settings - Fork 0
/
premium-addons.min.js
1 lines (1 loc) · 36 KB
/
premium-addons.min.js
1
!function(m){m(window).on("elementor/frontend/init",function(){function n(e,t){var i=e.find(".premium-progressbar-container"),n=i.data("settings"),a=n.progress_length,s=n.speed,o=n.type;if("line"===o){var r=i.find(".premium-progressbar-bar");n.gradient&&r.css("background","linear-gradient(-45deg, "+n.gradient+")"),r.animate({width:a+"%"},s)}else if("circle"===o)100<a&&(a=100),i.prop({counter:0}).animate({counter:a},{duration:s,easing:"linear",step:function(e){var t=3.6*e;i.find(".premium-progressbar-right-label span").text(Math.ceil(e)+"%"),i.find(".premium-progressbar-circle-left").css("transform","rotate("+t+"deg)"),180<t&&(i.find(".premium-progressbar-circle").css({"-webkit-clip-path":"inset(0)","clip-path":"inset(0)"}),i.find(".premium-progressbar-circle-right").css("visibility","visible"))}});else{r=i.find(".premium-progressbar-bar-wrap");var l=i.outerWidth(),m=n.dot||25,d=n.spacing||10,u=Math.ceil(l/(m+d)),c=u*(a/100),p=Math.floor(c),f=100*(c-p);r.attr("data-circles",u),r.attr("data-total-fill",p),r.attr("data-partial-fill",f);for(var g="progress-segment",h=0;h<u;h++){g="progress-segment";var v="";h<p?v="<div class='segment-inner'></div>":h===p&&(v="<div class='segment-inner'></div>"),r.append("<div class='"+g+"'>"+v+"</div>")}"frontend"!==t&&y(e)}}function e(e,a){var s=e.find(".premium-button-style6-bg");0!==s.length&&e.hasClass("premium-mouse-detect-yes")&&e.on("mouseenter mouseleave",".premium-button-style6",function(e){var t=a(this).offset(),i=e.pageX-t.left,n=e.pageY-t.top;s.css({top:n,left:i})})}function t(e,n){if(e.hasClass("premium-mask-yes")){if("premium-addon-title.default"===e.data("widget_type")){var t=".premium-title-header";e.find(t).find(".premium-title-icon, .premium-title-img").addClass("premium-mask-span")}else t=".premium-dual-header-first-header";e.find(t).find("span:not(.premium-title-style7-stripe-wrap):not(.premium-title-img)").each(function(e,t){var i="";n(this).text().split(" ").forEach(function(e){""!==e&&(i+=' <span class="premium-mask-span">'+e+"</span>")}),n(this).text("").append(i)}),elementorFrontend.waypoint(e,function(){n(e).addClass("premium-mask-active")})}}var i=elementorModules.frontend.handlers.Base,y=function(e){var t=e.find(".premium-progressbar-container").data("settings"),a=e.find(".premium-progressbar-bar-wrap"),i=a.data(),s=t.speed,o=0,r=i.totalFill,l=i.circles,m=i.partialFill;!function e(t){var i=a.find(".progress-segment").eq(t),n=100;t===r&&(n=m);i.find(".segment-inner").animate({width:n+"%"},s/l,function(){++o<=r&&e(o)})}(o)},a=i.extend({settings:{},getDefaultSettings:function(){return{selectors:{galleryElement:".premium-gallery-container",filters:".premium-gallery-cats-container li",gradientLayer:".premium-gallery-gradient-layer",loadMore:".premium-gallery-load-more",loadMoreDiv:".premium-gallery-load-more div",vidWrap:".premium-gallery-video-wrap"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={$galleryElement:this.$element.find(e.galleryElement),$filters:this.$element.find(e.filters),$gradientLayer:this.$element.find(e.gradientLayer),$vidWrap:this.$element.find(e.vidWrap)};return t.$loadMore=t.$galleryElement.parent().find(e.loadMore),t.$loadMoreDiv=t.$galleryElement.parent().find(e.loadMoreDiv),t},bindEvents:function(){this.getGlobalSettings(),this.run()},getGlobalSettings:function(){var e=this.elements.$galleryElement.data("settings");this.settings={layout:e.img_size,loadMore:e.load_more,columnWidth:null,filter:null,isFilterClicked:!1,minimum:e.minimum,imageToShow:e.click_images,counter:e.minimum,ltrMode:e.ltr_mode,shuffle:e.shuffle,active_cat:e.active_cat,theme:e.theme,overlay:e.overlay,sort_by:e.sort_by,light_box:e.light_box,flag:e.flag,lightbox_type:e.lightbox_type}},updateCounter:function(){this.settings.isFilterClicked?(this.settings.counter=this.settings.minimum,this.settings.isFilterClicked=!1):this.settings.counter=this.settings.counter,this.settings.counter=this.settings.counter+this.settings.imageToShow},updateGrid:function(e,t,i){m.ajax({url:this.appendItems(this.settings.counter,e,t),beforeSend:function(){i.removeClass("premium-gallery-item-hidden")},success:function(){i.addClass("premium-gallery-item-hidden")}})},loadMore:function(e,t){var i=this.elements.$galleryElement,n=this.elements.$loadMoreDiv,a=this.elements.$loadMore,s=this;n.addClass("premium-gallery-item-hidden"),i.find(".premium-gallery-item").length>this.settings.minimum&&(a.removeClass("premium-gallery-item-hidden"),i.parent().on("click",".premium-gallery-load-less",function(){s.settings.counter=s.settings.counter-s.settings.imageToShow}),i.parent().on("click",".premium-gallery-load-more-btn:not(.premium-gallery-load-less)",function(){s.updateCounter(),s.updateGrid(e,t,n)}))},getItemsToHide:function(e,t){return e.filteredItems.slice(t,e.filteredItems.length).map(function(e){return e.element})},appendItems:function(e,t,i){var n=this.elements.$galleryElement,a=this.elements.$gradientLayer,s=n.data("isotope"),o=this.getItemsToHide(s,e);a.outerHeight(t),n.find(".premium-gallery-item-hidden").removeClass("premium-gallery-item-hidden"),n.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden"),m(o).addClass("premium-gallery-item-hidden"),i.isotope("layout"),0==o&&(a.addClass("premium-gallery-item-hidden"),n.parent().find(".premium-gallery-load-more").addClass("premium-gallery-item-hidden"))},triggerFilerTabs:function(e){var t=e.searchParams.get(this.settings.flag),i=this.elements.$filters;t&&i.eq(t).find("a").trigger("click")},onReady:function(e){e.isotope("layout"),e.isotope({filter:this.settings.active_cat});var t=new URL(window.location.href);t&&this.triggerFilerTabs(t)},onResize:function(e){this.setMetroLayout(),e.isotope({itemSelector:".premium-gallery-item",masonry:{columnWidth:this.settings.columnWidth}})},lightBoxDisabled:function(){var n=this;this.elements.$vidWrap.each(function(e,t){var i=m(t).data("type");m(t).closest(".premium-gallery-item").on("click",function(){var e=m(this);e.find(".pa-gallery-img-container").css("background","#000"),e.find("img, .pa-gallery-icons-caption-container, .pa-gallery-icons-wrapper").css("visibility","hidden"),"style3"!==n.settings.skin&&e.find(".premium-gallery-caption").css("visibility","hidden"),"hosted"!==i?n.playVid(e):n.playHostedVid(t)})})},playVid:function(e){var t=e.find(".premium-gallery-iframe-wrap"),i=t.data("src");i=i.replace("&mute","&autoplay=1&mute");var n=m("<iframe/>");n.attr({src:i,frameborder:"0",allowfullscreen:"1",allow:"autoplay;encrypted-media;"}),t.html(n),n.css("visibility","visible")},playHostedVid:function(e){var t=m(e).find("video");t.get(0).play(),t.css("visibility","visible")},run:function(){var e=this.elements.$galleryElement,t=(this.elements.$vidWrap,this.elements.$filters),i=this;"metro"===this.settings.layout&&(this.setMetroLayout(),this.settings.layout="masonry",m(window).resize(function(){i.onResize(n)}));var n=e.isotope(this.getIsoTopeSettings());if(n.imagesLoaded().progress(function(){n.isotope("layout")}),m(document).ready(function(){i.onReady(n)}),this.settings.loadMore){var a=this.elements.$gradientLayer,s=null;setTimeout(function(){s=a.outerHeight()},200),this.loadMore(s,n)}"yes"!==this.settings.light_box&&this.lightBoxDisabled(),t.find("a").click(function(e){return e.preventDefault(),i.isFilterClicked=!0,t.find(".active").removeClass("active"),m(this).addClass("active"),i.settings.filter=m(this).attr("data-filter"),n.isotope({filter:i.settings.filter}),i.settings.shuffle&&n.isotope("shuffle"),i.settings.loadMore&&i.appendItems(i.settings.minimum,s,n),!1}),"default"===this.settings.lightbox_type&&this.$element.find(".premium-img-gallery a[data-rel^='prettyPhoto']").prettyPhoto(this.getPrettyPhotoSettings())},getPrettyPhotoSettings:function(){return{theme:this.settings.theme,hook:"data-rel",opacity:.7,show_title:!1,deeplinking:!1,overlay_gallery:this.settings.overlay,custom_markup:"",default_width:900,default_height:506,social_tools:""}},getIsoTopeSettings:function(){return{itemSelector:".premium-gallery-item",percentPosition:!0,animationOptions:{duration:750,easing:"linear"},filter:this.settings.active_cat,layoutMode:this.settings.layout,originLeft:this.settings.ltrMode,masonry:{columnWidth:this.settings.columnWidth},sortBy:this.settings.sort_by}},getRepeaterSettings:function(){return this.getElementSettings("premium_gallery_img_content")},setMetroLayout:function(){var e=this.elements.$galleryElement,t=e.width(),a=Math.floor(t/12),i=elementorFrontend.getCurrentDeviceMode(),s="desktop"===i?"":"_"+i,o=this.getRepeaterSettings();e.find(".premium-gallery-item").each(function(e,t){var i=o[e]["premium_gallery_image_cell"+s].size,n=o[e]["premium_gallery_image_vcell"+s].size;""!==i&&null!=i||(i=o[e].premium_gallery_image_cell.size),""!==n&&null!=n||(n=o[e].premium_gallery_image_vcell.size),m(t).css({width:Math.ceil(i*a),height:Math.ceil(n*a)})}),this.settings.columnWidth=a}}),s=i.extend({getDefaultSettings:function(){return{selectors:{bannerElement:".premium-banner",bannerImgWrap:".premium-banner-ib",bannerImg:"img"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$bannerElement:this.$element.find(e.bannerElement),$bannerImgWrap:this.$element.find(e.bannerImgWrap),$bannerImg:this.$element.find(e.bannerImg)}},bindEvents:function(){var e=this;e.elements.$bannerImgWrap.hover(function(){e.elements.$bannerImg.addClass("active")},function(){e.elements.$bannerImg.removeClass("active")}),this.run()},run:function(){var e=this.elements.$bannerElement;if(e.data("box-tilt")){var t=e.data("box-tilt-reverse");UniversalTilt.init({elements:e,settings:{reverse:t},callbacks:{onMouseLeave:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0)"},onDeviceMove:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0.3)"}}})}}}),o=i.extend({settings:{},getDefaultSettings:function(){return{selectors:{user:".fa-user",activeCat:".category.active",loading:".premium-loading-feed",blogElement:".premium-blog-wrap",blogFilterTabs:".premium-blog-filter",contentWrapper:".premium-blog-content-wrapper",blogPost:".premium-blog-post-outer-container",metaSeparators:".premium-blog-meta-separator",filterLinks:".premium-blog-filters-container li a",currentPage:".premium-blog-pagination-container .page-numbers.current",activeElememnt:".premium-blog-filters-container li .active"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$blogElement:this.$element.find(e.blogElement),$blogFilterTabs:this.$element.find(e.blogFilterTabs),$activeCat:this.$element.find(e.activeCat),$filterLinks:this.$element.find(e.filterLinks),$blogPost:this.$element.find(e.blogPost),$contentWrapper:this.$element.find(e.contentWrapper)}},bindEvents:function(){this.setLayoutSettings(),this.removeMetaSeparators(),this.run()},setLayoutSettings:function(){var e=this.getElementSettings(),t=this.elements.$blogPost,i={pageNumber:1,isLoaded:!0,count:2,equalHeight:e.force_height,layout:e.premium_blog_layout,carousel:"yes"===e.premium_blog_carousel,infinite:"yes"===e.premium_blog_infinite_scroll,scrollAfter:"yes"===e.scroll_to_offset,grid:"yes"===e.premium_blog_grid,total:t.data("total")};i.carousel&&(i.slidesToScroll=e.slides_to_scroll,i.spacing=parseInt(e.premium_blog_carousel_spacing),i.autoPlay="yes"===e.premium_blog_carousel_play,i.arrows="yes"===e.premium_blog_carousel_arrows,i.fade="yes"===e.premium_blog_carousel_fade,i.center="yes"===e.premium_blog_carousel_center,i.dots="yes"===e.premium_blog_carousel_dots,i.speed=""!==e.premium_blog_carousel_autoplay_speed?parseInt(e.premium_blog_carousel_autoplay_speed):5e3),this.settings=i},removeMetaSeparators:function(){var i=this.getSettings("selectors"),e=this.$element.find(i.blogPost),t=e.first().find(i.metaSeparators),n=e.find(i.user);1===t.length?n.length||e.find(i.metaSeparators).remove():n.length||e.each(function(e,t){m(t).find(i.metaSeparators).first().remove()})},run:function(){var e=this,t=this.elements.$blogElement,i=this.elements.$activeCat.data("filter"),n=this.elements.$blogFilterTabs.length,a=t.data("pagination");this.settings.activeCategory=i,this.settings.filterTabs=n,this.settings.filterTabs&&this.filterTabs(),this.settings.filterTabs&&"*"!==this.settings.activeCategory?this.getPostsByAjax(!1):"masonry"!==this.settings.layout||this.settings.carousel||t.imagesLoaded(function(){t.isotope(e.getIsoTopeSettings())}),this.settings.carousel&&t.slick(this.getSlickSettings()),"even"===this.settings.layout&&this.settings.equalHeight&&t.imagesLoaded(function(){e.forceEqualHeight()}),a&&this.paginate(),this.settings.infinite&&t.is(":visible")&&this.getInfiniteScrollPosts()},paginate:function(){var i=this,n=this.$element,a=this.getSettings("selectors");n.on("click",".premium-blog-pagination-container .page-numbers",function(e){if(e.preventDefault(),!m(this).hasClass("current")){var t=parseInt(n.find(a.currentPage).html());m(this).hasClass("next")?i.settings.pageNumber=t+1:m(this).hasClass("prev")?i.settings.pageNumber=t-1:i.settings.pageNumber=m(this).html(),i.getPostsByAjax(i.settings.scrollAfter)}})},forceEqualHeight:function(){var n=new Array,e=this.getSettings("selectors").contentWrapper,t=this.$element.find(e);t.each(function(e,t){var i=m(t).outerHeight();n.push(i)});var i=Math.max.apply(null,n);t.css("height",i+"px")},getSlickSettings:function(){var e=this.settings,t=e.grid?this.getSlickCols():null,i=e.grid?t.cols:1,n=e.grid?t.colsTablet:1,a=e.grid?t.colsMobile:1,s=e.arrows?'<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Previous" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>':"",o=e.arrows?'<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>':"";return{infinite:!0,slidesToShow:i,slidesToScroll:e.slidesToScroll||i,responsive:[{breakpoint:1025,settings:{slidesToShow:n,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:a,slidesToScroll:1}}],autoplay:e.autoPlay,rows:0,autoplaySpeed:e.speed,nextArrow:o,prevArrow:s,fade:e.fade,centerMode:e.center,centerPadding:e.spacing+"px",draggable:!0,dots:e.dots,customPaging:function(){return'<i class="fas fa-circle"></i>'}}},getSlickCols:function(){var e=this.getElementSettings(),t=e.premium_blog_columns_number,i=e.premium_blog_columns_number_tablet,n=e.premium_blog_columns_number_mobile;return{cols:parseInt(100/t.substr(0,t.indexOf("%"))),colsTablet:parseInt(100/i.substr(0,i.indexOf("%"))),colsMobile:parseInt(100/n.substr(0,n.indexOf("%")))}},getIsoTopeSettings:function(){return{itemSelector:".premium-blog-post-outer-container",percentPosition:!0,filter:this.settings.activeCategory,animationOptions:{duration:750,easing:"linear",queue:!1}}},filterTabs:function(){var t=this,i=this.getSettings("selectors");this.elements.$filterLinks.click(function(e){e.preventDefault(),t.$element.find(i.activeElememnt).removeClass("active"),m(this).addClass("active"),t.settings.activeCategory=m(this).attr("data-filter"),t.settings.pageNumber=1,t.settings.infinite?(t.getPostsByAjax(!1),t.settings.count=2,t.getInfiniteScrollPosts()):t.getPostsByAjax(t.settings.scrollAfter)})},getPostsByAjax:function(e){void 0===this.settings.activeCategory&&(this.settings.activeCategory="*");var n=this,a=this.elements.$blogElement,s=this.getSettings("selectors");m.ajax({url:PremiumSettings.ajaxurl,dataType:"json",type:"POST",data:{action:"pa_get_posts",page_id:a.data("page"),widget_id:n.$element.data("id"),page_number:n.settings.pageNumber,category:n.settings.activeCategory,nonce:PremiumSettings.nonce},beforeSend:function(){a.append('<div class="premium-loading-feed"><div class="premium-loader"></div></div>'),e&&m("html, body").animate({scrollTop:a.offset().top-50},"slow")},success:function(e){if(e.data){a.find(s.loading).remove();var t=e.data.posts,i=e.data.paging;n.settings.infinite?(n.settings.isLoaded=!0,n.settings.filterTabs&&1===n.settings.pageNumber?a.html(t):a.append(t)):(a.html(t),n.$element.find(".premium-blog-footer").html(i)),n.removeMetaSeparators(),n.settings.layout&&("even"===n.settings.layout?n.settings.equalHeight&&n.forceEqualHeight():a.imagesLoaded(function(){a.isotope("reloadItems"),a.isotope({itemSelector:".premium-blog-post-outer-container",animate:!1})}))}},error:function(e){console.log(e)}})},getInfiniteScrollPosts:function(){var e=jQuery(window).outerHeight()/1.25,t=this;m(window).scroll(function(){t.settings.filterTabs&&($blogPost=t.elements.$blogElement.find(".premium-blog-post-outer-container"),t.settings.total=$blogPost.data("total")),t.settings.count<=t.settings.total&&m(window).scrollTop()+e>=t.$element.find(".premium-blog-post-outer-container:last").offset().top&&1==t.settings.isLoaded&&(t.settings.pageNumber=t.settings.count,t.getPostsByAjax(!1),t.settings.count++,t.settings.isLoaded=!1)})}}),r={"premium-addon-dual-header.default":t,"premium-addon-video-box.default":function(l,m){var t,i,d=l.find(".premium-video-box-container"),e=l.find(".premium-video-box-playlist-container"),n=d.find(".premium-video-box-video-container"),u=d.find(".premium-video-box-inner-wrap"),c=u.find(".premium-video-box-image-container"),a=d.data("type"),s=d.data("thumbnail"),o=d.data("sticky"),r=d.data("sticky-play"),p=d.data("hover");if(e.length){if(!n.length)return;n.each(function(e,t){var i,n=m(t),a=n.closest(".premium-video-box-container"),s=n.closest(".premium-video-box-trigger");i=n.data("src"),i+="&autoplay=1",s.on("click",function(){var e=m("<iframe/>");e.attr({src:i,frameborder:"0",allowfullscreen:"1",allow:"autoplay;encrypted-media;"}),n.css("background","#000"),n.html(e),a.find(".premium-video-box-image-container, .premium-video-box-play-icon-container").remove()})})}else"self"===a?(t=n.find("video"),i=t.attr("src")):(i=n.data("src"),s&&-1===i.indexOf("autoplay=1")?i+="&autoplay=1":d.data("play-viewport")?elementorFrontend.waypoint(d,function(){f()}):f()),d.on("click",function(){f()}),"yes"===o&&"yes"!==r&&g();function f(){if(!d.hasClass("playing")){if(d.addClass("playing"),"yes"===r&&g(),"self"===a)m(t).get(0).play(),n.css({opacity:"1",visibility:"visible"});else{var e=m("<iframe/>");e.attr({src:i,frameborder:"0",allowfullscreen:"1",allow:"autoplay;encrypted-media;"}),n.css("background","#000"),n.html(e)}d.find(".premium-video-box-image-container, .premium-video-box-play-icon-container, .premium-video-box-description-container").remove(),"vimeo"===a&&d.find(".premium-video-box-vimeo-wrap").remove()}}function g(){var i=d.data("hide-desktop"),n=d.data("hide-tablet"),a=d.data("hide-mobile"),s=d.data("sticky-margin");if(d.off("click").on("click",function(e){var t=e.target.className;if(0<=t.toString().indexOf("premium-video-box-sticky-close")||0<=t.toString().indexOf("premium-video-box-sticky-close"))return!1;f()}),void 0!==elementorFrontend.waypoint)var t=elementorFrontend.waypoint(d,function(e){if("down"===e){if(d.removeClass("premium-video-box-sticky-hide").addClass("premium-video-box-sticky-apply premium-video-box-filter-sticky"),l.hasClass("elementor-motion-effects-parent")&&l.removeClass("elementor-motion-effects-perspective").find(".elementor-widget-container").addClass("premium-video-box-transform"),d.data("mask")&&(l.find(".premium-video-box-mask-filter").removeClass("premium-video-box-mask-filter"),d.find(":first-child").removeClass("premium-video-box-mask-media"),c.removeClass(p).removeClass("premium-video-box-mask-media").css({transition:"width 0.2s, height 0.2s","-webkit-transition":"width 0.2s, height 0.2s"})),m(document).trigger("premium_after_sticky_applied",[l]),u.data("video-animation")&&" "!=u.data("video-animation")){u.css("opacity","0");var t=u.data("delay-animation");setTimeout(function(){u.css("opacity","1").addClass("animated "+u.data("video-animation"))},1e3*t)}}else d.removeClass("premium-video-box-sticky-apply premium-video-box-filter-sticky").addClass("premium-video-box-sticky-hide"),l.hasClass("elementor-motion-effects-parent")&&l.addClass("elementor-motion-effects-perspective").find(".elementor-widget-container").removeClass("premium-video-box-transform"),d.data("mask")&&(d.parent().addClass("premium-video-box-mask-filter"),d.find(":first-child").eq(0).addClass("premium-video-box-mask-media"),c.addClass("premium-video-box-mask-media")),c.addClass(p).css({transition:"all 0.2s","-webkit-transition":"all 0.2s"}),u.removeClass("animated "+u.data("video-animation"))},{offset:"0%",triggerOnce:!1});function o(e){var t=elementorFrontend.getCurrentDeviceMode();""!==i&&t==i||""!==n&&t==n||""!==a&&t==a?r(e):e[0].enable()}function r(e){e[0].disable(),d.removeClass("premium-video-box-sticky-apply premium-video-box-sticky-hide")}function e(){d.hasClass("premium-video-box-sticky-apply")&&u.draggable({start:function(){m(this).css({transform:"none",top:m(this).offset().top+"px",left:m(this).offset().left+"px"})},containment:"window"})}l.find(".premium-video-box-sticky-close").off("click.closetrigger").on("click.closetrigger",function(e){t[0].disable(),d.removeClass("premium-video-box-sticky-apply premium-video-box-sticky-hide"),l.hasClass("elementor-motion-effects-parent")&&l.addClass("elementor-motion-effects-perspective").find(".elementor-widget-container").removeClass("premium-video-box-transform"),d.data("mask")&&(d.parent().addClass("premium-video-box-mask-filter"),d.find(":first-child").eq(0).addClass("premium-video-box-mask-media"),c.addClass("premium-video-box-mask-media"))}),o(t),e(),window.addEventListener("scroll",e),m(window).resize(function(e){o(t)}),m(document).on("premium_after_sticky_applied",function(e,t){var i=t.find(".premium-video-box-sticky-infobar");if(0!==i.length){var n=i.outerHeight();if((t.hasClass("premium-video-sticky-center-left")||t.hasClass("premium-video-sticky-center-right"))&&(n=Math.ceil(n/2),u.css("top","calc( 50% - "+n+"px )")),(t.hasClass("premium-video-sticky-bottom-left")||t.hasClass("premium-video-sticky-bottom-right"))&&""!==s){var a=(n=Math.ceil(n))+s;u.css("bottom",a)}}})}},"premium-addon-fancy-text.default":function(e,t){var r=e.find(".premium-fancy-text-wrapper"),l=r.data("settings"),i=l.delay||2500,n=r.find(".premium-fancy-list-items").length,a=""!==l.count||["typing","slide","autofade"].includes(l.effect)?l.count*n:"infinite";if("typing"===l.effect){var s=[];l.strings.forEach(function(e){s.push(e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))}),r.find(".premium-fancy-text").typed({strings:s,typeSpeed:l.typeSpeed,backSpeed:l.backSpeed,startDelay:l.startDelay,backDelay:l.backDelay,showCursor:l.showCursor,cursorChar:l.cursorChar,loop:l.loop})}else if("slide"===l.effect)i=l.pause,r.find(".premium-fancy-text").vTicker({speed:l.speed,showItems:l.showItems,pause:l.pause,mousePause:l.mousePause,direction:"up"});else if("auto-fade"===l.effect){var o=r.find(".premium-fancy-list-items"),m=o.length;if(0===m)return;var d=l.duration/m,u=0;i=d,o.each(function(e,t){t.style.animationDelay=u+"ms",u+=d})}else{!function(){var t=r.find(".premium-fancy-list-items"),i=1,e=l.delay||2500,n=l.count;if(n)var a=1,s=r.find(".premium-fancy-list-items").length;var o=setInterval(function(){var e="";"custom"===l.effect&&(e="animated "+l.animation),t.eq(i).addClass("premium-fancy-item-visible "+e).removeClass("premium-fancy-item-hidden"),t.filter(function(e){return e!==i}).addClass("premium-fancy-item-hidden").removeClass("premium-fancy-item-visible "+e),i++,t.length===i&&(i=0),n&&s*n===++a&&clearInterval(o)},e)}()}"typing"!==l.effect&&setTimeout(function(){r.find(".premium-fancy-text").css("opacity","1")},500),"loading"===l.loading&&"typing"!==l.effect&&(e.find(".premium-fancy-text").append('<span class="premium-loading-bar"></span>'),e.find(".premium-loading-bar").css({"animation-iteration-count":a,"animation-duration":i+"ms"}))},"premium-counter.default":function(e,n){var a=e.find(".premium-counter");elementorFrontend.waypoint(a,function(){var e=a.data(),t=a.find(".premium-counter-init"),i=a.find(".icon");n(t).numerator(e),n(i).addClass("animated "+i.data("animation"))})},"premium-addon-title.default":[function(e,n){var t=e.find(".premium-title-container"),i=t.find(".premium-title-text");t.hasClass("style9")&&e.find(".premium-title-style9").each(function(){var e=n(this),t=1e3*e.attr("data-blur-delay");e.attr("data-animation-blur","process"),e.find(".premium-title-style9-letter").each(function(e,t){var i;e+=1,i=n("body").hasClass("rtl")?.2/e+"s":e/20+"s",n(t).css({"-webkit-animation-delay":i,"animation-delay":i})}),setInterval(function(){e.attr("data-animation-blur","done"),setTimeout(function(){e.attr("data-animation-blur","process")},150)},t)});if(t.hasClass("style8")){var a=1e3*i.attr("data-shiny-delay"),s=1e3*i.attr("data-shiny-dur");!function e(){i.get(0).setAttribute("data-animation","shiny"),setTimeout(function(){i.removeAttr("data-animation")},s),setTimeout(e,a)}()}},t],"premium-countdown-timer.default":function(e,l){var t=e.find(".premium-countdown"),n=t.data("settings"),m=e.data("id"),i=n.label1,a=n.label2,s=i.split(","),o=a.split(","),r="evergreen"===n.timerType?n.until.date:n.until,d="",u={y:{index:0,oldVal:""},o:{index:1,oldVal:""},w:{index:2,oldVal:""},d:{index:3,oldVal:""},h:{index:4,oldVal:""},m:{index:5,oldVal:""},s:{index:6,oldVal:""}};if(t.find("#countdown-"+m).hasClass("premium-countdown-flip")&&n.format.split("").forEach(function(e){var t=e.toLowerCase();d+='<div class="premium-countdown-block premium-countdown-'+t+'"><div class="pre_time-mid"> <div class="premium-countdown-figure"><span class="top">{'+t+'nn}</span><span class="top-back"><span>{'+t+'nn}</span></span><span class="bottom">{'+t+'nn}</span><span class="bottom-back"><span>{'+t+'nn}</span></span></div><span class="premium-countdown-label">{'+t+'l}</span></div><span class="countdown_separator">{sep}</span></div>'}),t.find("#countdown-"+m).countdown({layout:d,labels:o,labels1:s,until:new Date(r),format:n.format,padZeroes:!0,timeSeparator:n.separator,onTick:function(e){var i,o,r;i=0,t.find("#countdown-"+m+" .countdown-amount").each(function(e,t){i<l(t).outerWidth()&&(i=l(t).outerWidth())}),t.find("#countdown-"+m+" .countdown-amount").css("width",i),t.find("#countdown-"+m).hasClass("premium-countdown-flip")&&(o=e,r=u,n.format.split("").forEach(function(e){var t=e.toLowerCase(),i=r[t].index,n=r[t].oldVal;if(o[i]!==n){r[t].oldVal=o[i];var a=l("#countdown-"+m).find(".premium-countdown-"+t+" .top"),s=l("#countdown-"+m).find(".premium-countdown-"+t+" .top-back");TweenMax.to(a,.8,{rotationX:"-180deg",transformPerspective:300,ease:Quart.easeOut,onComplete:function(){TweenMax.set(a,{rotationX:0})}}),TweenMax.to(s,.8,{rotationX:0,transformPerspective:300,ease:Quart.easeOut,clearProps:"all"})}}))},onExpiry:function(){"onExpiry"===n.event&&t.find("#countdown-"+m).html(n.text)},serverSync:function(){return new Date(n.serverSync)}}),n.reset&&t.find(".premium-countdown-init").countdown("option","until",new Date(r)),"expiryUrl"===n.event&&t.find("#countdown-"+m).countdown("option","expiryUrl",elementorFrontend.isEditMode()?"":n.text),times=t.find("#countdown-"+m).countdown("getTimes"),times.every(function(e){return 0==e}))if("onExpiry"===n.event)t.find("#countdown-"+m).html(n.text);else if("expiryUrl"===n.event&&!elementorFrontend.isEditMode()){0<l("body").find("#elementor").length?t.find("#countdown-"+m).html("<h1>You can not redirect url from elementor Editor!!</h1>"):elementorFrontend.isEditMode()||(window.location.href=n.text)}},"premium-carousel-widget.default":function(e,u){var c=e.find(".premium-carousel-wrapper"),p=u(c).data("settings");function a(e){var t=c.find(".slick-slide");"init"===e&&(t=t.not(".slick-current")),t.find(".animated").each(function(e,t){var i=u(t).data("settings");if(i&&(i._animation||i.animation)){var n=i._animation||i.animation;u(t).removeClass("animated "+n).addClass("elementor-invisible")}})}if(elementorFrontend.isEditMode()&&c.find(".item-wrapper").each(function(e,i){var t=u(i).data("template");void 0!==t&&u.ajax({type:"GET",url:PremiumSettings.ajaxurl,dataType:"html",data:{action:"get_elementor_template_content",templateID:t}}).success(function(e){var t=JSON.parse(e).data;void 0!==t.template_content&&(u(i).html(t.template_content),c.find(".premium-carousel-inner").slick("refresh"))})}),c.on("init",function(e){e.preventDefault(),setTimeout(function(){a("init")},500),u(this).find("item-wrapper.slick-active").each(function(){var e=u(this);e.addClass(e.data("animation"))}),u(".slick-track").addClass("translate")}),c.find(".premium-carousel-inner").slick({vertical:p.vertical,slidesToScroll:p.slidesToScroll,slidesToShow:p.slidesToShow,responsive:[{breakpoint:p.tabletBreak,settings:{slidesToShow:p.slidesTab,slidesToScroll:p.slidesTab,swipe:p.touchMove}},{breakpoint:p.mobileBreak,settings:{slidesToShow:p.slidesMob,slidesToScroll:p.slidesMob,swipe:p.touchMove}}],useTransform:!0,fade:p.fade,infinite:p.infinite,speed:p.speed,autoplay:p.autoplay,autoplaySpeed:p.autoplaySpeed,draggable:p.draggable,rtl:p.rtl,adaptiveHeight:p.adaptiveHeight,pauseOnHover:p.pauseOnHover,centerMode:p.centerMode,centerPadding:p.centerPadding,arrows:p.arrows,prevArrow:c.find(".premium-carousel-nav-arrow-prev").html(),nextArrow:c.find(".premium-carousel-nav-arrow-next").html(),dots:p.dots,customPaging:function(){return c.find(".premium-carousel-nav-dot").html()}}),c.on("afterChange",function(e,t,i){var n,a,s=t.options.slidesToScroll,o=(n=t.options.slidesToShow,(a=u(window).width())>p.tabletBreak&&(n=p.slidesDesk),a<=p.tabletBreak&&(n=p.slidesTab),a<=p.mobileBreak&&(n=p.slidesMob),n),r=t.options.centerMode,l=i+o-1;if(c.find(".slick-active .elementor-invisible").each(function(e,t){var i=u(t).data("settings");if(i&&(i._animation||i.animation)){var n=i._animation_delay?i._animation_delay:0,a=i._animation||i.animation;setTimeout(function(){u(t).removeClass("elementor-invisible").addClass(a+" animated")},n)}}),1===s){if(!0==!r){var m=u(this).find("[data-slick-index='"+l+"']");"null"!=p.animation&&m.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(p.animation).removeClass("premium-carousel-content-hidden")}}else for(var d=s+i;0<=d;d--)m=u(this).find("[data-slick-index='"+d+"']"),"null"!=p.animation&&m.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(p.animation).removeClass("premium-carousel-content-hidden")}),c.on("beforeChange",function(e,t,i){a();var n=u(this).find("[data-slick-index='"+i+"']");"null"!=p.animation&&n.siblings().find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").removeClass(p.animation).addClass("premium-carousel-content-hidden")}),p.vertical){var t=-1;elementorFrontend.elements.$window.on("load",function(){c.find(".slick-slide").each(function(){u(this).height()>t&&(t=u(this).height())}),c.find(".slick-slide").each(function(){u(this).height()<t&&u(this).css("margin",Math.ceil((t-u(this).height())/2)+"px 0")})})}var i={element:u("a.ver-carousel-arrow"),getWidth:function(){return this.element.outerWidth()/2},setWidth:function(e){"vertical"==(e=e||"vertical")?this.element.css("margin-left","-"+this.getWidth()+"px"):this.element.css("margin-top","-"+this.getWidth()+"px")}};i.setWidth(),i.element=u("a.carousel-arrow"),i.setWidth("horizontal"),u(document).ready(function(){p.navigation.map(function(e,t){e&&u(e).on("click",function(){var e=c.find(".premium-carousel-inner").slick("slickCurrentSlide");t!==e&&c.find(".premium-carousel-inner").slick("slickGoTo",t)})})})},"premium-addon-modal-box.default":function(e,t){var i=e.find(".premium-modal-box-container"),n=i.data("settings"),a=i.find(".premium-modal-box-modal-dialog");if(n&&("pageload"===n.trigger&&t(document).ready(function(e){setTimeout(function(){i.find(".premium-modal-box-modal").modal()},1e3*n.delay)}),a.data("modal-animation")&&" "!=a.data("modal-animation"))){var s=a.data("delay-animation");new Waypoint({element:a,handler:function(){setTimeout(function(){a.css("opacity","1").addClass("animated "+a.data("modal-animation"))},1e3*s),this.destroy()},offset:Waypoint.viewportHeight()-150})}},"premium-image-scroll.default":function(e,t){var i=e.find(".premium-image-scroll-container"),n=i.find(".premium-image-scroll-overlay"),a=i.find(".premium-image-scroll-vertical"),s=i.data("settings"),o=i.find("img"),r=s.direction,l=s.reverse,m=null;function d(){o.css("transform",("vertical"===r?"translateY":"translateX")+"( -"+m+"px)")}function u(){o.css("transform",("vertical"===r?"translateY":"translateX")+"(0px)")}function c(){m="vertical"===r?o.height()-i.height():o.width()-i.width()}"scroll"===s.trigger?(i.addClass("premium-container-scroll"),"vertical"===r?a.addClass("premium-image-scroll-ver"):i.imagesLoaded(function(){n.css({width:o.width(),height:o.height()})})):("yes"===l&&i.imagesLoaded(function(){i.addClass("premium-container-scroll-instant"),c(),d()}),"vertical"===r&&a.removeClass("premium-image-scroll-ver"),i.mouseenter(function(){i.removeClass("premium-container-scroll-instant"),c(),("yes"===l?u:d)()}),i.mouseleave(function(){("yes"===l?d:u)()}))},"premium-contact-form.default":function(e,t){var i=e.find(".premium-cf7-container").find('input[type="text"], input[type="email"], textarea, input[type="password"], input[type="date"], input[type="number"], input[type="tel"], input[type="file"], input[type="url"]');i.wrap("<span class='wpcf7-span'>"),i.on("focus blur",function(){t(this).closest(".wpcf7-span").toggleClass("is-focused")})},"premium-icon-list.default":function(e,n){var a=e.find(".premium-bullet-list-box");a.find(".premium-bullet-list-content").each(function(e,i){a.data("list-animation")&&" "!=a.data("list-animation")&&elementorFrontend.waypoint(n(i),function(){var e=n(i),t=e.data("delay");setTimeout(function(){e.next(".premium-bullet-list-divider , .premium-bullet-list-divider-inline").css("opacity","1"),e.next(".premium-bullet-list-divider-inline , .premium-bullet-list-divider").addClass("animated "+a.data("list-animation")),e.css("opacity","1").addClass("animated "+a.data("list-animation"))},t)})})},"premium-addon-button.default":e,"premium-addon-image-button.default":e},l={"premium-addon-person":i.extend({getDefaultSettings:function(){return{slick:{infinite:!0,rows:0,prevArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',nextArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>',draggable:!0,pauseOnHover:!0},selectors:{multiplePersons:".multiple-persons",person:".premium-person-container",imgContainer:".premium-person-image-container",imgWrap:".premium-person-image-wrap"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$multiplePersons:this.$element.find(e.multiplePersons),$persons:this.$element.find(e.person),$imgWrap:this.$element.find(e.imgWrap)}},bindEvents:function(){this.run()},getSlickSettings:function(){var e=this.getElementSettings(),t=this.elements.$multiplePersons.data("rtl"),i=e.persons_per_row,n=e.persons_per_row_tablet,a=e.persons_per_row_mobile;return Object.assign(this.getSettings("slick"),{slidesToShow:parseInt(100/i.substr(0,i.indexOf("%"))),slidesToScroll:parseInt(100/i.substr(0,i.indexOf("%"))),responsive:[{breakpoint:1025,settings:{slidesToShow:parseInt(100/n.substr(0,n.indexOf("%"))),slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:parseInt(100/a.substr(0,a.indexOf("%"))),slidesToScroll:1}}],autoplay:e.carousel_play,rtl:!!t,autoplaySpeed:e.speed||5e3})},runEqualHeight:function(){var e=this.elements.$persons,t=this.elements.$imgWrap,i=this.getSettings("selectors"),n=new Array;e.each(function(e,t){m(t).imagesLoaded(function(){}).done(function(){var e=m(t).find(i.imgContainer).outerHeight();n.push(e)})}),e.imagesLoaded(function(){}).done(function(){var e=Math.max.apply(null,n);t.css("height",e+"px")})},run:function(){var e=this.elements.$multiplePersons;e.length&&(this.getElementSettings("carousel")&&e.slick(this.getSlickSettings()),e.hasClass("premium-person-style1")||"yes"===e.data("persons-equal")&&this.runEqualHeight())}}),"premium-addon-blog":o,"premium-img-gallery":a,"premium-addon-banner":s};m.each(r,function(i,e){"object"==typeof e?m.each(e,function(e,t){elementorFrontend.hooks.addAction("frontend/element_ready/"+i,t)}):elementorFrontend.hooks.addAction("frontend/element_ready/"+i,e)}),m.each(l,function(e,t){elementorFrontend.elementsHandler.attachHandler(e,t)}),elementorFrontend.isEditMode()?elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",n):elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",function(e,t){var i=e.find(".premium-progressbar-container").data("settings").type;"dots"===i&&n(e,"frontend"),elementorFrontend.waypoint(e,function(){("dots"!==i?n:y)(t(this))})})})}(jQuery);