PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/news36.travelguides4you.com/seo_blog/wp-content/themes/soledad/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/news36.travelguides4you.com/seo_blog/wp-content/themes/soledad/js/main.min.js |
(function(e,t){var i,n=e.jQuery||e.Cowboy||(e.Cowboy={});n.throttle=i=function(a,e,s,r){function o(){function i(){c=+new Date,s.apply(l,d)}var l=this,o=+new Date-c,d=arguments;r&&!p&&i(),p&&clearTimeout(p),r===t&&o>a?i():!0!==e&&(p=setTimeout(r?function(){p=t}:i,r===t?a-o:a))}var p,c=0;return"boolean"!=typeof e&&(r=s,s=e,e=t),n.guid&&(o.guid=s.guid=s.guid||n.guid++),o},n.debounce=function(a,n,e){return e===t?i(a,n,!1):i(a,e,!1!==n)}})(this),function(a){"use strict";var i=i||{};i.general=function(){a(".pcheader-icon a.search-click").on("click",function(i){var e=a(this),n=a("body"),t=e.closest(".container");a("body").find(".search-input").removeClass("active"),t.find(".search-input").toggleClass("active"),n.find(".header-search-style-overlay").length||n.find(".header-search-style-showup").length?t.find(".show-search").toggleClass("active"):e.next().fadeToggle();var s=setTimeout(function(){var e=document.querySelector(".search-input.active");null!==e&&e.focus({preventScroll:!0})},200,function(){clearTimeout(s)});return n.addClass("search-open"),i.preventDefault(),i.stopPropagation(),!1}),a(".pcheader-icon .close-search").on("click",function(){return a("body").find(".header-search-style-overlay").length||a("body").find(".header-search-style-showup").length?a("body").find(".show-search").each(function(){a(this).removeClass("active")}):a(this).closest(".show-search").fadeToggle(),a("body").removeClass("search-open"),a("body").find(".search-input").each(function(){a(this).removeClass("active")}),!1}),a(document).keyup(function(i){var e=a("body");return"Escape"===i.key&&e.hasClass("pchds-overlay")&&e.hasClass("search-open")&&(e.removeClass("search-open"),a("body").find(".header-search-style-overlay").length||a("body").find(".header-search-style-showup").length?a("body").find(".show-search").each(function(){a(this).removeClass("active")}):a("body").find(".show-search").fadeToggle(),a("body").find(".search-input, .show-search").each(function(){a(this).removeClass("active")})),!1}),a(".go-to-top, .penci-go-to-top-floating").on("click",function(){return a("html, body").animate({scrollTop:0},700),!1});var e=a(".penci-go-to-top-floating");e.length&&a(document).on("scroll",a.debounce(200,function(){var i=a(this).scrollTop();300<i?e.addClass("show-up"):e.removeClass("show-up")})),a("body.buddypress .activity .load-more a").on("click",function(){a(document).ajaxStop(function(){a(".container").fitVids()})});var i=a(".penci-owl-carousel-slider, .featured-area .penci-owl-featured-area");return i.length&&i.on("mouseleave",function(){var e=a(this),i=e.data("auto"),n=e.data("speed");!0===i&&(e.trigger("stop.owl.autoplay"),e.trigger("play.owl.autoplay",n))}),!1},i.blockheadinglist=function(){a(".pcnav-lgroup").each(function(){var e,i=a(this),n=a(this).closest(".penci-homepage-title"),t=n.width(),s=i.find("ul.pcflx"),o=n.find(".inner-arrow span").width(),l=n.find(".pcflx-nav").length?n.find(".pcflx-nav").width():0,r=0,d=a("<li class=\"more\"><a class=\"more-click\" href=\"#\"><i class=\"fa fa-ellipsis-v\"></i></a><ul class=\"pcflx-sub\"></ul></li>"),p=t-o-l;n.hasClass("pcalign-center")&&(p=t/2-o/2-30),(n.hasClass("pciconp-left")||n.hasClass("pciconp-right"))&&(p-=36),i.css("width",p),e=s.find(".pcflx-sub").html(),s.find(".more").remove(),s.append(e),s.find("li").each(function(){r+=a(this).outerWidth(),r>p-60&&a(d).find(".pcflx-sub").append(a(this))}),a(d).find(".pcflx-sub li").length&&s.append(d),n.parent().addClass("pc-flexmnld"),i.addClass("loaded")}),a(document).on("click",".pcnav-lgroup .more-click",function(a){a.preventDefault()}),a(".pcnav-lgroup a").on("click",function(){var e=a(this),i=e.closest(".pcnav-lgroup");e.hasClass("pcaj-nav-link")||(i.find("a").removeClass("clactive"),e.addClass("clactive"))})},i.shareexpand=function(){a(".tags-share-box").length&&a(".tags-share-box").each(function(){var e=a(this);if(e.hasClass("disable-btnplus"))return void e.css("opacity","1");if(e.length){var i,n=0,t=!1,s=e.width(),o=1,l=e.find(".post-share-expand").outerWidth();e.find(".penci-social-share-text").length&&(s-=e.find(".penci-social-share-text").outerWidth(!0)),e.find(".post-share-plike").length&&(s-=e.find(".post-share-plike").outerWidth(!0)),e.find(".new-ver-share").length&&(i=e.find(".new-ver-share").outerWidth(!0)-e.find(".new-ver-share").outerWidth()),e.find(".post-share-expand").removeClass("auto-hidden").removeClass("showing").removeClass("hidden"),e.find(".new-ver-share").each(function(){a(this).removeClass("auto-hidden").removeClass("show"),n+=a(this).outerWidth(!0),n>s+i?(a(this).addClass("auto-hidden").removeClass("show"),t=!0):a(this).removeClass("auto-hidden").addClass("show"),o++}),t?(e.find(".post-share-expand").removeClass("auto-hidden").addClass("showing"),e.find(".new-ver-share.show").each(function(){l+=a(this).outerWidth(!0),l>=s-i&&a(this).addClass("auto-hidden").removeClass("show")})):e.find(".post-share-expand").addClass("hidden"),a(".post-share-item.post-share-expand").off().on("click",function(i){i.preventDefault();var e=a(this).closest(".post-share");e.find(".auto-hidden").toggleClass("active"),e.toggleClass("showing-hidden")}),e.css("opacity","1")}})},i.smoothlinkscroll=function(){a("a[href^=\"#\"]").on("click",function(){var e=this.hash,i=a(e);a("html, body").stop().animate({scrollTop:i.offset().top-70},900,"swing",function(){window.location.hash=e})})},i.cookie=function(){var e=a(".penci-wrap-gprd-law");if(!e.length)return!1;var i={set:function(e,a){var i=new Date;i.setTime(i.getTime()+31536e6);var n="; expires="+i.toGMTString();document.cookie=e+"="+a+n+"; path=/"},read:function(e){for(var a,n=e+"=",t=document.cookie.split(";"),s=0;s<t.length;s++){for(a=t[s];" "==a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(n))return a.substring(n.length,a.length)}return null},erase:function(e){this.set(e,"",-1)},exists:function(e){return null!==this.read(e)}};e.removeClass("penci-close-all"),!i.exists("penci_law_footer_new")||i.exists("penci_law_footer_new")&&1==i.read("penci_law_footer_new")?e.removeClass("penci-wrap-gprd-law-close"):e.addClass("penci-wrap-gprd-law-close"),a(".penci-gprd-accept, .penci-gdrd-show").on("click",function(n){n.preventDefault();var e=a(this),t=e.closest(".penci-wrap-gprd-law");return t.toggleClass("penci-wrap-gprd-law-close"),t.hasClass("penci-wrap-gprd-law-close")?i.set("penci_law_footer_new","2"):i.set("penci_law_footer_new","1"),!1})},i.main_sticky=function(){if(a("nav#navigation").length&&a().pensticky&&!a("nav#navigation").hasClass("penci-disable-sticky-nav")){var e=0;a("body").hasClass("admin-bar")&&(e=32),a("nav#navigation").each(function(){a(this).pensticky({topSpacing:e})})}},i.featured_slider=function(){a().owlCarousel&&a(".featured-area .penci-owl-featured-area").each(function(){var e=a(this),i=e.data("style"),n=!1,t=e.data("autotime"),s=e.data("speed"),o=e.data("loop"),l=1,r=!0,d=!1,p=!1,c=1,h=1,m=1,g=1;"style-2"===i?l=2:"style-28"===i&&(o=!0),"rtl"===a("html").attr("dir")&&(p=!0),"true"===e.attr("data-auto")&&(n=!0),"false"===e.attr("data-nav")&&(r=!1),"true"===e.attr("data-dots")&&(d=!0),e.attr("data-item")&&(l=parseInt(e.data("item"))),e.attr("data-desktop")&&(c=parseInt(e.data("desktop"))),e.attr("data-tablet")&&(h=parseInt(e.data("tablet"))),e.attr("data-tabsmall")&&(m=parseInt(e.data("tabsmall"))),e.attr("data-mobile")&&(g=parseInt(e.data("mobile")));var u={rtl:p,loop:o,margin:0,items:l,navSpeed:s,dotsSpeed:s,nav:r,slideBy:l,mouseDrag:!1,lazyLoad:!0,dots:d,navText:["<i class=\"penciicon-left-chevron\"></i>","<i class=\"penciicon-right-chevron\"></i>"],autoplay:n,autoplayTimeout:t,autoplayHoverPause:!0,autoplaySpeed:s,responsive:{0:{items:g,slideBy:g},480:{items:m,slideBy:m},768:{items:h,slideBy:h},1170:{items:c,slideBy:c}}};"style-2"===i?(u.center=!0,u.margin=10,u.autoWidth=!0):"style-28"===i?(u.margin=4,u.items=6,u.autoWidth=!0):"style-38"===i&&(u.center=!0,u.margin=5,u.autoWidth=!0),e.owlCarousel(u),e.on("initialize.owl.carousel",function(){e.closest(".featured-area").addClass("penci-featured-loaded")}),e.on("changed.owl.carousel",function(){})})},i.owl_slider=function(){a().owlCarousel&&a(".penci-owl-carousel-slider").each(function(){var e=a(this),i=e.parent(),n=!1,t=!0,s=!0,o=!1,l=e.data("auto"),r=1,d=1,p=1,c=1,h=600,m=1,g=0,u=5e3,f=!0,v=!1;"rtl"===a("html").attr("dir")&&(o=!0),"true"===e.attr("data-dots")&&(n=!0),"false"===e.attr("data-loop")&&(s=!1),"false"===e.attr("data-nav")&&(t=!1),e.attr("data-margin")&&(g=parseInt(e.data("margin"))),e.attr("data-desktop")&&(r=parseInt(e.data("desktop"))),e.attr("data-tablet")&&(d=parseInt(e.data("tablet"))),e.attr("data-tabsmall")&&(p=parseInt(e.data("tabsmall"))),e.attr("data-mobile")&&(c=parseInt(e.data("mobile"))),e.attr("data-speed")&&(h=parseInt(e.data("speed"))),e.attr("data-autotime")&&(u=parseInt(e.data("autotime"))),e.attr("data-item")&&(m=parseInt(e.data("item"))),e.attr("data-lazy")&&(v=!0),e.attr("data-height")&&(f=!1);var y={loop:s,rtl:o,margin:g,items:m,slideBy:m,lazyLoad:v,navSpeed:h,dotsSpeed:h,nav:t,dots:n,navText:["<i class=\"penciicon-left-chevron\"></i>","<i class=\"penciicon-right-chevron\"></i>"],autoplay:l,autoplayTimeout:u,autoHeight:f,autoplayHoverPause:!0,autoplaySpeed:h,responsive:{0:{items:c,slideBy:c},480:{items:p,slideBy:p},768:{items:d,slideBy:d},1170:{items:r,slideBy:r}}},b=e.attr("data-anim");if(typeof b!="undefined"&&!1!==b){var C=!1,w=!1,_=e.data("anim");"slideInUp"===_?(C="slideInUp",w="slideOutUp"):"slideInRight"===_?(C="TickerslideInRight",w="TickerslideOutRight"):"fadeIn"===_&&(C="fadeIn",w="fadeOut"),y.animateOut=w,y.animateIn=C}if(e.owlCarousel(y),i.hasClass("penci-topbar-trending")){var k=i.find(".penci-slider-next"),x=i.find(".penci-slider-prev");k.on("click",function(a){return a.preventDefault(),e.trigger("next.owl.carousel"),!1}),x.on("click",function(a){return a.preventDefault(),e.trigger("prev.owl.carousel"),!1})}})},i.fitvids=function(){a().fitVids&&a(".container").fitVids()},i.sticky_sidebar=function(){if(a().theiaStickySidebar){var e=80;if(a("body").hasClass("admin-bar")&&a("body").hasClass("penci-vernav-enable")?e=52:!a("body").hasClass("admin-bar")&&a("body").hasClass("penci-vernav-enable")?e=20:a("body").hasClass("admin-bar")&&!a("body").hasClass("penci-vernav-enable")&&(e=112),a(".pc-wrapbuilder-header").length){var i=a(".penci_builder_sticky_header_desktop");e=20,i.length&&!i.hasClass("hide-scroll-down")&&(e=i.height()+20),a("body").hasClass("admin-bar")&&(e+=32)}a(".penci-vc-sticky-sidebar > .penci-vc-row > .penci-vc-column").length&&a(".penci-vc-sticky-sidebar > .penci-vc-row > .penci-vc-column").theiaStickySidebar({additionalMarginTop:e,minWidth:961}),a(".penci-enSticky .penci-sticky-sb").length&&a(".penci-enSticky .penci-sticky-sb,.penci-enSticky .penci-sticky-ct").theiaStickySidebar({additionalMarginTop:e,minWidth:961}),a("#main.penci-main-sticky-sidebar, #sidebar.penci-sticky-sidebar").theiaStickySidebar({additionalMarginTop:e})}},i.mega_menu=function(){a("#navigation ul.menu > li.penci-mega-menu").on("mouseenter",function(){var e=a(this),i=e.find(".row-active"),n=i.find(".penci-lazy");i.fadeIn("200").css("display","inline-block")}),a("#navigation .penci-mega-child-categories a").on("mouseenter",function(){if(!a(this).hasClass("cat-active")){var e=a(this),i=e.data("id"),n=e.parent().children("a"),t=e.closest(".penci-megamenu"),s=e.closest(".penci-megamenu").find(".penci-mega-latest-posts").children(".penci-mega-row"),o=s.find(".penci-lazy");n.removeClass("cat-active"),e.addClass("cat-active"),s.hide(),s.removeClass("row-active"),t.find("."+i).fadeIn("300").css("display","inline-block").addClass("row-active")}})},i.mobile_menu=function(){a("#sidebar-nav .menu li.menu-item-has-children > a").append("<u class=\"indicator\"><i class=\"fa fa-angle-down\"></i></u>"),a("#navigation .button-menu-mobile").on("click",function(){a("body").addClass("open-sidebar-nav")}),a("#sidebar-nav .menu li a .indicator").on("click",function(i){if(!a("body").hasClass("penci-vernav-cparent")){var e=a(this);i.preventDefault(),e.children().toggleClass("fa-angle-up"),e.parent().next().slideToggle("fast")}}),a(".penci-vernav-cparent #sidebar-nav .menu li.menu-item-has-children > a").on("click",function(i){var e=a(this);i.preventDefault(),e.children().children().toggleClass("fa-angle-up"),e.next().slideToggle("fast")}),a("#close-sidebar-nav").on("click",function(){a("body").removeClass("open-sidebar-nav")})},i.toggleMenuHumburger=function(){var i=a(".penci-menu-hbg");if(i.length){var n=a("body"),t=a(".penci-vernav-toggle,.penci-menuhbg-toggle,#penci-close-hbg,.penci-menu-hbg-overlay");a(".penci-menu-hbg .menu li.menu-item-has-children > a").append("<u class=\"indicator\"><i class=\"fa fa-angle-down\"></i></u>"),a(".penci-menu-hbg .menu li a .indicator").on("click",function(n){if((!a("body").hasClass("penci-hbg-cparent")||i.hasClass("penci-builder-mobile-sidebar-nav"))&&!(i.hasClass("penci-builder-mobile-sidebar-nav")&&i.find(".pchb-cparent").length)){var e=a(this);n.preventDefault(),e.children().toggleClass("fa-angle-up"),e.parent().next().slideToggle("fast")}}),a(".penci-hbg-cparent .penci-menu-hbg .menu li.menu-item-has-children > a").on("click",function(i){var e=a(this);i.preventDefault(),e.children().children().toggleClass("fa-angle-up"),e.next().slideToggle("fast")}),t.on("click",function(a){return a.preventDefault(),n.hasClass("penci-menuhbg-open")?(n.removeClass("penci-menuhbg-open"),void t.removeClass("active")):void(a.stopPropagation(),n.addClass("penci-menuhbg-open"),t.addClass("active"))}),i.on("scroll",a.debounce(150,function(){}))}},i.lightbox=function(){a().magnificPopup&&(a("a[data-rel^=\"penci-gallery-image-content\"], .penci-enable-lightbox .gallery-item a").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,image:{verticalFit:!0,titleSrc:"data-cap"},gallery:{enabled:!0},zoom:{enabled:!1,duration:300}}),a("a[data-rel^=\"penci-gallery-bground-content\"]").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,image:{verticalFit:!0},gallery:{enabled:!0}}),a(".penci-other-layouts-lighbox").magnificPopup({type:"iframe",mainClass:"mfp-fade",fixedContentPos:!0,closeBtnInside:!1,closeOnContentClick:!0}),a(".penci-image-gallery").length&&a(".penci-image-gallery").each(function(){var e=a(this),i=e.attr("id");a("#"+i+" a.penci-gallery-ite").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,image:{verticalFit:!0,titleSrc:"data-cap"},gallery:{enabled:!0}})}),a(".penci-post-gallery-container").length&&a(".penci-post-gallery-container").each(function(){var e=a(this),i=e.attr("id");a("#"+i+" a.penci-gallery-ite").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,image:{verticalFit:!0,titleSrc:"data-cap"},gallery:{enabled:!0}})}))},i.masonry=function(){var e=a(".penci-masonry, .penci-bgstyle-2 .penci-biggrid-data");e.length&&e.each(function(){var e=a(this);e.imagesLoaded(function(){e.isotope({itemSelector:".item-masonry",transitionDuration:".55s",layoutMode:"masonry"})})})},i.video_background=function(){var e=a("#penci-featured-video-bg");e.length&&a(e).each(function(){var e=a(this),i=e.data("videosrc"),n=e.data("starttime");jarallax(e,{videoSrc:i,videoStartTime:n,videoPlayOnlyVisible:!1}),a(".featured-area").addClass("loaded-wait"),setTimeout(function(){a(".featured-area").addClass("loaded-animation")},1500)})},i.portfolio=function(){var e=a(".penci-portfolio");a().isotope&&e.length&&a(".penci-portfolio").each(function(){var n=a(this),t=a(this).attr("id"),s=null;if("undefined"!=typeof portfolioDataJs&&null!==portfolioDataJs)for(var o in portfolioDataJs)if(portfolioDataJs[o].instanceId==t)var s=portfolioDataJs[o];n.imagesLoaded(function(){n.isotope({itemSelector:".portfolio-item",animationEngine:"best-available",animationOptions:{duration:250,queue:!1}}),n.addClass("loaded"),a(".portfolio-item .inner-item-portfolio").each(function(){var e=a(this);e.one("inview",function(){e.addClass("animated")})});var e=window.location.hash.toString();if(e.length){e=e.replace("#",""),e.match(/:/);var i=e.match(/^([^:]+)/)[1];if(e=e.replace(i+":",""),1<e.length){var t=l.filter("[data-term=\""+e+"\"]"),o=n.find(".portfolio-item"),d=n.parent().find(".penci-pagenavi-shortcode");if(t.length){r.removeClass("active"),t.parent().addClass("active"),n.isotope({filter:".penci-"+e});var c=t.data("term"),h={};s.currentTerm=c,a.each(s.countByTerms,function(e){h[e]=0}),o.each(function(i,n){a.each((a(n).data("terms")+"").split(" "),function(a,i){h[i]++})});var p="number"==typeof h[c]&&h[c]==s.countByTerms[c];d.length&&(o.length===s.count||p?d.hide():d.show())}}}});var e=n.parent().find(".penci-portfolio-filter"),l=e.find("a"),r=e.find("li");r.on("click",function(){var i=a(this),t=i.find("a").data("term"),o=i.find("a").attr("data-filter"),l=e.find("a").filter("[data-term=\""+t+"\"]"),d=n.find(".portfolio-item"),c=n.parent().find(".penci-pagenavi-shortcode"),h=a(window).scrollTop();r.removeClass("active"),i.addClass("active"),n.parent().find(".penci-ajax-more-button").attr("data-cat",t),n.isotope({filter:o}),l.length&&(window.location.hash="*"==t?"":t,a(window).scrollTop(h));var m={};s.currentTerm=t,a.each(s.countByTerms,function(e){m[e]=0}),d.each(function(i,n){a.each((a(n).data("terms")+"").split(" "),function(a,i){m[i]++})});var p="number"==typeof m[t]&&m[t]==s.countByTerms[t];return c.length&&(d.length===s.count||p?c.hide():c.show()),!1}),i.portfolioLoadMore.loadMore(n,s),i.portfolioLoadMore.infinityScroll(s)});var n=a(".penci-plf-loadmore");if(!a().isotope||!n.length)return!1},i.portfolioLoadMore={btnLoadMore:a(".penci-plf-loadmore"),loadMore:function(e,i){var n=this;a("body").on("click",".penci-ajax-more-button",function(){n.actionLoadMore(a(this),e,i)})},infinityScroll:function(e){var i=this,n=a(".penci-plf-loadmore"),t=n.find(".penci-ajax-more-button");n.hasClass("penci-infinite-scroll")&&a(window).on("scroll",function(){var n=t.offset().top,s=t.outerHeight(),o=a(window).height(),l=a(this).scrollTop();if(l>n+s-o&&t.length){var r=t.closest(".penci-portfolio");i.actionLoadMore(t,r,e)}}).trigger("scroll")},actionLoadMore:function(e,i,n){if(e.hasClass("loading-portfolios"))return!1;e.addClass("loading-portfolios");var t=e.data("mes_no_more"),s=e.data("mes");n.pflShowIds=[],e.closest(".wrapper-penci-portfolio").find(".portfolio-item").each(function(i,t){n.pflShowIds.push(a(t).data("pflid"))});var o={action:"penci_pfl_more_post_ajax",datafilter:n,nonce:ajax_var_more.nonce};a.post(ajax_var_more.url,o,function(i){if(!i.data.items)return e.find(".ajax-more-text").html(t),e.removeClass("loading-portfolios"),e.closest(".wrapper-penci-portfolio").find(".penci-portfolio-filter li.active").addClass("loadmore-finish"),setTimeout(function(){e.parent().parent().hide(),e.find(".ajax-more-text").html(s)},1200),!1;var n=e.closest(".wrapper-penci-portfolio").find(".penci-portfolio"),o=a(i.data.items);n.find(".inner-portfolio-posts").append(o),n.isotope("appended",o).imagesLoaded(function(){n.isotope("layout")}),a(".container").fitVids(),a("a[data-rel^=\"penci-gallery-image-content\"]").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,image:{verticalFit:!0},gallery:{enabled:!0},zoom:{enabled:!1,duration:300}}),n.addClass("loaded"),a(".portfolio-item .inner-item-portfolio").each(function(){var e=a(this);e.one("inview",function(){e.addClass("animated")})}),e.removeClass("loading-portfolios")}),a.ajax({type:"POST",dataType:"html",url:ajax_var_more.url,data:"datafilter="+n+"&action=penci_pfl_more_post_ajax&nonce="+ajax_var_more.nonce,success:function(){},error:function(e,a,i){console.log(e+" :: "+a+" :: "+i)}})}},i.gallery=function(){var e=a(".penci-post-gallery-container.justified"),i=a(".penci-post-gallery-container.masonry");a().justifiedGallery&&e.length&&a(".penci-post-gallery-container.justified").each(function(){var e=a(this);e.justifiedGallery({rowHeight:e.data("height"),lastRow:"nojustify",margins:e.data("margin"),randomize:!1})}),a().isotope&&i.length&&a(".penci-post-gallery-container.masonry .item-gallery-masonry").each(function(){var e=a(this).children();if(e.attr("data-cap")&&!e.hasClass("added-caption")){var i=e.attr("data-cap");"undefined"!==i&&(e.children().append("<div class=\"caption\">"+i+"</div>"),e.addClass("added-caption"))}}),i.length&&i.each(function(){var e=a(this);e.imagesLoaded(function(){e.isotope({itemSelector:".item-gallery-masonry",transitionDuration:".55s",layoutMode:"masonry"}),e.addClass("loaded"),a(".penci-post-gallery-container.masonry .item-gallery-masonry").each(function(){var e=a(this);e.one("inview",function(){e.children().addClass("animated")})})})})},i.Jarallax=function(){return!!(a.fn.jarallax&&a(".penci-jarallax").length)&&void a(".penci-jarallax").each(function(){var e=a(this),i={};e.imagesLoaded({background:!0},function(){jarallax(e,i)})})},i.RelatedPopup=function(){if(a(".penci-rlt-popup").length){var i=a(".penci-rlt-popup"),n=a(".penci-rlt-popup .penci-close-rltpopup"),t=i.find(".penci-lazy");a("body").on("inview",".penci-flag-rlt-popup",function(e,a){!i.hasClass("rltpopup-notshow-again")&&a&&(i.addClass("rltpopup-show-up"),n.on("click",function(a){a.preventDefault(),i.removeClass("rltpopup-show-up").addClass("rltpopup-notshow-again")}))}),n.on("click",function(a){a.preventDefault(),i.removeClass("rltpopup-show-up").addClass("rltpopup-notshow-again")})}},i.extraFunction={init:function(){this.counterUp(),this.progressBar(),this.loginPopup(),this.recoverPassPopup(),this.registerPopup(),this.login(),this.register(),this.map()},progressBar:function(){a(".penci-review-process").length&&a(".penci-review-process").each(function(){var e=a(this),i=e.children(),n=10*i.data("width");e.one("inview",function(){i.animate({width:n+"%"},1e3)})}),a.fn.easyPieChart&&a(".penci-piechart").length&&a(".penci-piechart").each(function(){var e=a(this);e.one("inview",function(){var a={barColor:e.data("color"),trackColor:e.data("trackcolor"),scaleColor:!1,lineWidth:e.data("thickness"),size:e.data("size"),animate:1e3};e.easyPieChart(a)})})},counterUp:function(){var e=a(".penci-counterup-number");return!!(a.fn.counterUp&&e.length)&&void e.each(function(){var e=a(this);e.one("inview",function(){setTimeout(function(){a({countNum:e.text()}).animate({countNum:e.attr("data-count")},{duration:2e3,easing:"linear",step:function(){e.text(Math.floor(this.countNum))},complete:function(){e.text(this.countNum)}})},e.attr("data-delay"))})})},loginPopup:function(){var e=a("body"),i=a("#penci-loginpopform"),n=i.closest(".penci-popup-wrapper");i.length&&(a(".penci-login-popup-btn a").magnificPopup({type:"inline",midClick:!0,removalDelay:600,mainClass:"penci-popup-animation"}),e.on("click",".penci-lostpassword-btn",function(i){var e=a(this),n=e.closest(".penci-popup-wrapper");return n.children(".penci-popup-passreset").slideDown("normal"),n.children(".penci-popup-login").slideUp("normal"),i.preventDefault(),!1}),e.on("click",".penci-register-popup-btn",function(i){var e=a(this),n=e.closest(".penci-popup-wrapper");return n.children(".penci-popup-register").slideDown("normal"),n.children(".penci-popup-login").slideUp("normal"),i.preventDefault(),!1}),e.on("click",".penci-login-popup-btn",function(i){var e=a(this),n=e.closest(".penci-popup-wrapper");return n.children(".penci-popup-login").slideDown("normal"),n.children(".penci-popup-register").slideUp("normal"),n.children(".penci-popup-passreset").slideUp("normal"),i.preventDefault(),!1}),a("#penci_user, #penci_pass").on("focus",function(){a(this).removeClass("invalid")}),i.on("submit",function(i){var e=a(this),t=e.find("#penci_user"),s=e.find("#penci_pass"),o=t.val(),l=s.val(),r=e.find(".penci_form_nonce").val(),d=e.find(".g-recaptcha-response");if(d.length)var p=d.val();else var p="noexists";if(0<t.length&&""==o&&(t.addClass("invalid"),i.preventDefault()),0<s.length&&""==l&&(s.addClass("invalid"),i.preventDefault()),""==o||""==l)return!1;n.addClass("ajax-loading"),n.find(".message").slideDown().remove();var c={action:"penci_login_ajax",username:o,password:l,captcha:p,security:r,remember:n.find("#remembermepopup").val()};return a.post(ajax_var_more.url,c,function(e){n.removeClass("ajax-loading"),n.children(".penci-popup-login").append(e.data),e.success&&(window.location.href+="?singin=true")}),i.preventDefault(),!1}))},recoverPassPopup:function(){var e=a("body"),i=a("#penci-passreset-popup"),n=i.closest(".penci-popup-wrapper");i.length&&(a(".penci_user_email").on("focus",function(){a(this).removeClass("invalid")}),i.on("submit",function(i){i.preventDefault();var e=a(this),t=e.find(".penci_user_email"),s=t.val(),o=e.find(".penci_form_nonce").val(),l=e.find(".g-recaptcha-response");if(l.length)var r=l.val();else var r="noexists";if(0<t.length&&""==s)return t.addClass("invalid"),i.preventDefault(),!1;n.addClass("ajax-loading"),n.find(".message").slideDown().remove();var d={action:"penci_resetpass_ajax",security:o,username:s,captcha:r};return a.post(ajax_var_more.url,d,function(e){return n.removeClass("ajax-loading"),void n.children(".penci-popup-passreset").append(e.data)}),event.preventDefault(),!1}))},registerPopup:function(){var e=a("body"),i=a("#penci-register-popup"),n=i.closest(".penci-popup-wrapper");if(i.length){var t=a(".penci_user_name,.penci_user_email,.penci_user_pass,.penci_user_pass_confirm");t.on("focus",function(){a(this).removeClass("invalid")}),i.on("submit",function(i){i.preventDefault();var e=a(this),s=e.find(".penci_user_name"),o=e.find(".penci_user_email"),l=e.find(".penci_user_pass"),r=e.find(".penci_user_pass_confirm"),d=s.val(),p=o.val(),c=l.val(),h=r.val(),m=e.find(".penci_form_nonce").val(),g=e.find(".g-recaptcha-response");if(g.length)var u=g.val();else var u="noexists";if(t.removeClass("invalid"),0<s.length&&""==d&&(s.addClass("invalid"),event.preventDefault()),0<o.length&&""==p&&(o.addClass("invalid"),event.preventDefault()),0<l.length&&""==c&&(l.addClass("invalid"),event.preventDefault()),0<r.length&&""==h&&(r.addClass("invalid"),event.preventDefault()),""==d||""==p||""==c||""==h)return!1;if(n.find(".message").slideDown().remove(),h!==c)return l.addClass("invalid"),r.addClass("invalid"),n.children(".penci-popup-register").append(ajax_var_more.errorPass),event.preventDefault(),!1;n.addClass("ajax-loading");var f={action:"penci_register_ajax",fistName:e.find(".penci_first_name").val(),lastName:e.find(".penci_last_name").val(),username:d,password:c,confirmPass:h,email:p,security:m,captcha:u};return a.post(ajax_var_more.url,f,function(e){n.removeClass("ajax-loading"),n.children(".penci-popup-register").append(e.data),e.success&&(window.location.href+="?singin=true")}),event.preventDefault(),!1})}},login:function(){var e=a("body"),i=a(".penci-loginform"),n=i.parent(".penci-login-wrap");i.length&&(e.on("click",".penci-user-register",function(i){i.preventDefault();var e=a(this),n=e.closest(".penci-login-register");n.find(".penci-login-wrap").addClass("hidden"),n.find(".penci-register-wrap").removeClass("hidden")}),a("#penci-user-login,#penci-user-pass").on("focus",function(){a(this).removeClass("invalid")}),a(".penci-loginform").each(function(){a(this).on("submit",function(i){var e=a(this),n=e.parent(".penci-login-wrap"),t=e.find("#penci-user-login"),s=e.find("#penci-user-pass"),o=t.val(),l=s.val(),r=e.find(".penci_form_nonce").val(),d=e.find(".g-recaptcha-response");if(d.length)var p=d.val();else var p="noexists";if(0<t.length&&""==o&&(t.addClass("invalid"),i.preventDefault()),0<s.length&&""==l&&(s.addClass("invalid"),i.preventDefault()),""==o||""==l)return!1;n.parent().addClass("ajax-loading"),n.find(".message").slideDown().remove();var c={action:"penci_login_ajax",username:o,password:l,captcha:p,security:r,remember:n.find("#rememberme").val()};return a.post(ajax_var_more.url,c,function(e){n.parent().removeClass("ajax-loading"),n.append(e.data),e.success&&(window.location.href+="?singin=true")}),i.preventDefault(),!1})}))},register:function(){var e=a("body"),i=a("#penci-registration-form"),n=i.closest(".penci-register-wrap");if(!i.length)return!1;e.on("click",".penci-user-login-here",function(i){i.preventDefault();var e=a(this),n=e.closest(".penci-login-register");return n.find(".penci-login-wrap").removeClass("hidden"),n.find(".penci-register-wrap").addClass("hidden"),!1});var t=a(".penci_user_name,.penci_user_email,.penci_user_pass,.penci_user_pass_confirm");t.on("focus",function(){a(this).removeClass("invalid")}),a(".penci-registration-form").each(function(){a(this).on("submit",function(i){i.preventDefault();var e=a(this),n=e.closest(".penci-register-wrap"),s=e.find(".penci_user_name"),o=e.find(".penci_user_email"),l=e.find(".penci_user_pass"),r=e.find(".penci_user_pass_confirm"),d=s.val(),p=o.val(),c=l.val(),h=r.val(),m=e.find(".penci_form_nonce").val(),g=e.find(".g-recaptcha-response");if(g.length)var u=g.val();else var u="noexists";if(t.removeClass("invalid"),0<s.length&&""==d&&(s.addClass("invalid"),event.preventDefault()),0<o.length&&""==p&&(o.addClass("invalid"),event.preventDefault()),0<l.length&&""==c&&(l.addClass("invalid"),event.preventDefault()),0<r.length&&""==h&&(r.addClass("invalid"),event.preventDefault()),""==d||""==p||""==c||""==h)return!1;if(n.find(".message").slideDown().remove(),h!==c)return l.addClass("invalid"),r.addClass("invalid"),n.append(ajax_var_more.errorPass),event.preventDefault(),!1;n.parent().addClass("ajax-loading");var f={action:"penci_register_ajax",fistName:e.find(".penci_first_name").val(),lastName:e.find(".penci_last_name").val(),username:d,password:c,confirmPass:h,email:p,security:m,captcha:u};return a.post(ajax_var_more.url,f,function(e){n.parent().removeClass("ajax-loading"),n.append(e.data),e.success&&(window.location.href+="?singin=true")}),event.preventDefault(),!1})})},map:function(){return!!a(".penci-google-map").length&&void a(".penci-google-map").each(function(){var e=a(this),i=e.data("map_options"),n=e.attr("id"),t=google.maps.MapTypeId.ROADMAP;switch(i.map_type){case"satellite":t=google.maps.MapTypeId.SATELLITE;break;case"hybrid":t=google.maps.MapTypeId.HYBRID;break;case"terrain":t=google.maps.MapTypeId.TERRAIN;}var s=new google.maps.LatLng(-34.397,150.644),e=new google.maps.Map(document.getElementById(n),{zoom:parseInt(i.map_zoom),center:s,mapTypeId:t,panControl:i.map_pan,zoomControl:i.map_is_zoom,mapTypeControl:!0,scaleControl:i.map_scale,streetViewControl:i.map_street_view,rotateControl:i.map_rotate,overviewMapControl:i.map_overview,scrollwheel:i.map_scrollwheel}),o=new google.maps.Marker({position:s,map:e,title:i.marker_title,icon:i.marker_img});if(i.info_window){var l=new google.maps.InfoWindow({content:i.info_window});google.maps.event.addListener(o,"click",function(){l.open(e,o)})}if("coordinates"==i.map_using&&i.latitude&&i.longtitude)s=new google.maps.LatLng(i.latitude,i.longtitude),e.setCenter(s),o.setPosition(s);else{var r=new google.maps.Geocoder;r.geocode({address:i.address},function(a){var i=a[0].geometry.location;s=new google.maps.LatLng(i.lat(),i.lng()),e.setCenter(s),o.setPosition(s)})}})}},i.VideosList={init:function(){i.VideosList.play()},play:function(){return!!a(".penci-video_playlist").length&&void a(".penci-video_playlist").each(function(){var n=a(this),t=n.find(".penci-video-frame"),s=n.find(".penci-video-nav").height(),o=n.find(".penci-video-nav .penci-playlist-title").height();n.find(".penci-video-playlist-nav").css("height",s-o),t.video(),i.VideosList.updateStatus(n),t.addVideoEvent("ready",function(){t.css("visibility","visible").fadeIn(),n.find(".loader-overlay").remove()}),n.on("click",".penci-video-playlist-item",function(){var e=a(this),t=e.data("name"),s=a("#"+t),o=e.data("src"),l=e.find(".penci-video-number").text();return e.hasClass("is-playing")?void s.pauseVideo():void(n.find(".penci-video-playing").text(l),n.find(".penci-video-frame").each(function(){a(this).pauseVideo().hide()}),s.length?s.playVideo():(n.find(".fluid-width-video-wrapper").prepend(""),n.find(".fluid-width-video-wrapper").append("<iframe class=\"penci-video-frame\" id=\""+t+"\" src=\""+o+"\" frameborder=\"0\" width=\"100%\"\" height=\"434\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>"),s=a("#"+t),s.video(),s.addVideoEvent("ready",function(a,e){e.playVideo(),n.find(".loader-overlay").remove()})),s.css("visibility","visible").fadeIn(),i.VideosList.updateStatus(n))})})},updateStatus:function(e){e.find(".penci-video-frame").each(function(){var e=a(this),i=a("[data-name='"+e.attr("id")+"']");e.addVideoEvent("play",function(){i.removeClass("is-paused").addClass("is-playing")}),e.addVideoEvent("pause",function(){i.removeClass("is-playing").addClass("is-paused")}),e.addVideoEvent("finish",function(){i.removeClass("is-paused is-playing")})})}},i.JumtoRecipe=function(){a(".penci-jump-recipe").on("click",function(i){i.preventDefault();var e=a(this).closest(".penci-single-block"),n=a(this).attr("href"),t=e.find(n).first();if(t.length){var s=t.offset().top,o=30;if(a("#navigation").length)o=a("#navigation").height()+30;else if(a(".pc-wrapbuilder-header").length)if(window.matchMedia("(max-width: 960px)").matches){var l=a(".penci_navbar_mobile");l.hasClass("hide-scroll-down")||(o=l.height()+30)}else{var r=a(".penci_builder_sticky_header_desktop");r.length&&!r.hasClass("hide-scroll-down")&&(o=r.height()+30)}a("body").hasClass("admin-bar")&&(o+=32);var d=s-o;a("html,body").animate({scrollTop:d},"fast")}})},i.SmartLists=function(){a(".pcsml-dropdown").each(function(){var e=a(this);e.on("change",function(){var e=this.value,a=window.location.href;e!=a&&e!==void 0&&(window.location.href=e)})})},i.Single_Loadmore=function(){var e=a(".penci-single-infiscroll");if(e.length){var n=e.data("infiads");a(window).on("scroll",a.debounce(250,function(){var t=e.find(".penci-single-block").last(),s=a(window).scrollTop(),o=t.offset().top,l=t.data("prev-url");t.hasClass("penci-single-infiblock-end")&&a(".penci-ldsingle").remove(),!(s>o)||"undefined"==typeof l||""==typeof l||t.hasClass("penci-single-infiblock-end")||e.hasClass("penci-disable-sendajax")||(e.addClass("penci-disable-sendajax"),a.ajax({url:l,type:"GET",dataType:"html",success:function(t){var s=a(a(t).find(".penci-single-wrapper").html()).css("opacity",0).animate({opacity:1},300);if("undefined"!=typeof n&&""!=typeof n&&e.append(n),e.append(s),s.find(".penci_facebook_widget").length)try{FB.XFBML.parse()}catch(e){}e.removeClass("penci-disable-sendajax"),i.featured_slider(),i.owl_slider(),i.fitvids(),i.sticky_sidebar(),i.lightbox(),i.masonry(),i.portfolio(),i.gallery(),i.Jarallax(),i.extraFunction.init(),i.VideosList.init(),i.JumtoRecipe(),i.shareexpand();var o=a(".penci-owl-carousel-slider, .featured-area .penci-owl-featured-area");o.length&&o.on("mouseleave",function(){var e=a(this),i=e.data("auto"),n=e.data("speed");!0===i&&(e.trigger("stop.owl.autoplay"),e.trigger("play.owl.autoplay",n))});var l=a(".penci-review-process"),r=a(".penci-piechart");l.length&&a(".penci-review-process").each(function(){var e=a(this),i=e.children(),n=10*i.data("width");e.one("inview",function(){i.animate({width:n+"%"},1e3)})}),r.length&&a(".penci-piechart").each(function(){var e=a(this);e.one("inview",function(){var a={barColor:e.data("color"),trackColor:e.data("trackcolor"),scaleColor:!1,lineWidth:e.data("thickness"),size:e.data("size"),animate:1e3};e.easyPieChart(a)})}),a("body").trigger("single_loaded_more")}}))})),a(window).bind("scroll touchstart",function(){var e=a(this).scrollTop(),i=a(".penci-single-block");window.setTimeout(function(){var n=a(".penci-single-block"),t=window.location.href,s=n.map(function(){if(a(this).offset().top<e+60)return this});s=s[s.length-1];var o=a(s).data("postid"),l=a(s).data("current-url"),r=a(s).data("post-title"),d=a(s).data("edit-post");("undefined"==typeof o||""==typeof o)&&(o=i.data("postid"),l=i.data("current-url"),r=i.data("post-title"),d=i.data("edit-post")),t!==l&&(window.history.pushState({pageTitle:r},"",l),a("#wpadminbar").length&&a("#wp-admin-bar-edit a").attr("href",d),a("title").length&&a("title").each(function(){a(this).text(r)}),"undefined"!=typeof _gaq&&null!==_gaq&&_gaq.push(["_trackPageview",l]),"undefined"!=typeof ga&&null!==ga&&ga("send","pageview",l))},100)})}},a(document).ready(function(){i.general(),i.cookie(),i.main_sticky(),i.featured_slider(),i.owl_slider(),i.fitvids(),i.sticky_sidebar(),i.mega_menu(),i.mobile_menu(),i.toggleMenuHumburger(),i.lightbox(),i.masonry(),i.video_background(),i.portfolio(),i.gallery(),i.Jarallax(),i.RelatedPopup(),i.extraFunction.init(),i.VideosList.init(),i.JumtoRecipe(),i.Single_Loadmore(),setTimeout(function(){i.shareexpand()},100),i.blockheadinglist(),i.SmartLists(),a("body").on("penci-block-heading",function(){i.blockheadinglist()}),a(window).on("resize",function(){i.sticky_sidebar(),i.blockheadinglist(),setTimeout(function(){i.shareexpand()},100)}),a(document).on("penci-mega-loaded",function(){i.featured_slider(),i.owl_slider(),i.fitvids(),i.lightbox(),i.masonry(),i.portfolio(),i.gallery(),i.extraFunction.init(),i.VideosList.init()})})}(jQuery);