PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/princesspicnicevents.com/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/princesspicnicevents.com/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 l(){function i(){p=+new Date,s.apply(l,d)}var l=this,o=+new Date-p,d=arguments;r&&!c&&i(),c&&clearTimeout(c),r===t&&o>a?i():!0!==e&&(c=setTimeout(r?function(){c=t}:i,r===t?a-o:a))}var c,p=0;return"boolean"!=typeof e&&(r=s,s=e,e=t),n.guid&&(l.guid=s.guid=s.guid||n.guid++),l},n.debounce=function(a,n,e){return e===t?i(a,n,!1):i(a,e,!1!==n)}})(this),function(i){'use strict';var a=a||{};a.general=function(){i(".pcheader-icon a.search-click").on("click",function(a){var e=i(this),t=i("body"),n=e.closest(".container");i("body").find(".search-input").removeClass("active"),n.find(".search-input").toggleClass("active"),t.find(".header-search-style-overlay").length||t.find(".header-search-style-showup").length?n.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 t.addClass("search-open"),a.preventDefault(),a.stopPropagation(),!1}),i(".pcheader-icon .close-search").on("click",function(){return i("body").find(".header-search-style-overlay").length||i("body").find(".header-search-style-showup").length?i("body").find(".show-search").each(function(){i(this).removeClass("active")}):i(this).closest(".show-search").fadeToggle(),i("body").removeClass("search-open"),i("body").find(".search-input").each(function(){i(this).removeClass("active")}),!1}),i(document).keyup(function(a){var e=i("body");return"Escape"===a.key&&e.hasClass("pchds-overlay")&&e.hasClass("search-open")&&(e.removeClass("search-open"),i("body").find(".header-search-style-overlay").length||i("body").find(".header-search-style-showup").length?i("body").find(".show-search").each(function(){i(this).removeClass("active")}):i("body").find(".show-search").fadeToggle(),i("body").find(".search-input, .show-search").each(function(){i(this).removeClass("active")})),!1}),i(".go-to-top, .penci-go-to-top-floating").on("click",function(){return i("html, body").animate({scrollTop:0},700),!1});var e=i(".penci-go-to-top-floating");return e.length&&i(document).on("scroll",i.debounce(200,function(){var a=i(this).scrollTop();300<a?e.addClass("show-up"):e.removeClass("show-up")})),i("body.buddypress .activity .load-more a").on("click",function(){i(document).ajaxStop(function(){i(".container").fitVids({ignore:".penci-sticky-video"})})}),document.querySelectorAll(".menu-item-has-anchor").forEach(function(e){var i,t=e.querySelector("a").getAttribute("href");return!0===t.startsWith("#")&&null!==document.querySelector(t)&&void(i=document.querySelector(t).offsetTop,e.querySelector("a").addEventListener("click",function(a){a.preventDefault(),window.scrollTo({top:i+-120,behavior:"smooth"})}))}),i("#pc_archive_sort").on("change",function(){var e=i(this).closest("form");e.submit()}),i(document).on("click",".pcauthor-tabs",function(a){if(a.preventDefault(),!i(this).hasClass("active")){var e=i(this).attr("data-tab"),t=i(this).closest(".post-author");t.find(".author-tab-content").removeClass("active"),t.find(".pcauthor-tabs").removeClass("active"),t.find("#"+e).addClass("active"),i(this).addClass("active")}}),i(document).on("click",".penci-category-description-button a",function(a){a.preventDefault(),i(this).closest(".penci-category-description").toggleClass("active")}),!1},a.videofloat=function(){i("body.single .post").each(function(){var e=i(this),a=e.find(".post-image"),t=a.height(),n=a.find("iframe");if(n.length&&ajax_var_more.vfloat){a.addClass(ajax_var_more.vfloatp);var s=t+a.offset().top;i(document).on("scroll",function(){if(!a.hasClass("disable-sticky")){var n=i(this).scrollTop();n>s?(a.addClass("stick-video-enable"),0==a.find(".stick-video-enable-remove").length&&a.append("<span class=\"stick-video-enable-remove\"><i class=\"penciicon-close-button\"></i></span>"),!e.hasClass("penci-apply-padding")&&e.addClass("penci-apply-padding").css("padding-top",t)):(a.removeClass("stick-video-enable"),a.find(".stick-video-enable-remove").remove(),e.removeClass("penci-apply-padding"),e.css("padding-top",0))}})}}),i(document).on("click",".stick-video-enable-remove",function(a){a.preventDefault();var e=i(this).closest(".post-image");e.find(".stick-video-enable-remove").remove(),e.removeClass("stick-video-enable").addClass("disable-sticky")}),i(document).on("mouseenter",".penci-preview-thumb",function(){var e=i(this),a=16*e.outerHeight()/9,t=e.outerHeight(),n=i(this).attr("data-type"),s=i(this).attr("data-url");0==e.find("video").length&&"self"==n&&e.append("<video src=\""+s+"\" loop muted></video>"),0==e.find("iframe").length&&"self"!==n&&(e.append("<div class=\"penci-preview-iframe\"><iframe src=\""+s+"\" frameborder=\"0\"></iframe></div>"),i(this).find("iframe").width(a).height(t).fadeIn()),0!==i(this).find("video").length&&(i(this).find("video").fadeIn(),i(this).find("video")[0].play()),0!==i(this).find("iframe").length&&i(this).find("iframe").fadeIn()}).on("mouseleave",".penci-preview-thumb",function(){0!==i(this).find("video").length&&(i(this).find("video")[0].pause(),i(this).find("video").fadeOut()),0!==i(this).find("iframe").length&&i(this).find("iframe").fadeOut()})},a.fontsizeChanger=function(){if(i(".penci-font-changer").length){var e=Cookies.get("penci-font-changer")?Cookies.get("penci-font-changer"):1,a=i(".penci-font-changer"),t=i("#main").width();i("body").hasClass("elementor-default")&&(t=i("article.post").width()),a.attr("data-size",e);var n=function(e=null){var n=parseFloat(a.attr("data-size"));n=e?parseFloat(e):n,n=1.5<n?n=1.5:-1.5>n?n=-1.5:n,i(".entry-content").css({transform:"scale("+n+")","transform-origin":"0 0 0",overflow:"hidden",width:parseInt(t/n)+"px"}),i("body").hasClass("rtl")&&i(".entry-content").css({"transform-origin":"100% 0"}),i(".entry-content p,.entry-content iframe,.entry-content audio,.entry-content div,.entry-content ol, .entry-content ul, .entry-content blockquote, .entry-content h1, .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6").css({"max-width":parseInt(t/n)+"px"}),i(".entry-content .penci-toc-container-wrapper").length&&i(".penci-toc-container-wrapper, .penci-toc-container-wrapper div, .penci-toc-container-wrapper ul, .penci-toc-container-wrapper span, .penci-toc-container-wrapper p").css({"max-width":""}),setTimeout(function(){var e=document.getElementsByClassName("entry-content"),a=e[0].getBoundingClientRect().height;i(".post-entry").css({height:a+"px",transform:"none"})},300)};if(n(),i.isFunction(i.fn.jRange)){var s=Cookies.get("penci-font-changer")?Cookies.get("penci-font-changer"):"1";i(".penci-font-changer-slider").each(function(){i(this).jRange({from:.5,to:1.5,step:.1,scale:[.5,0,1,1.5],format:"%s",width:120,showLabels:!1,showScale:!1,snap:!0,theme:"penci-fs-slider",onstatechange:function(e){n(e),Cookies.set("penci-font-changer",e)}}),i(this).jRange("setValue",s)})}i("body").on("single_loaded_more",function(){if(n(),i.isFunction(i.fn.jRange)){var e=Cookies.get("penci-font-changer")?Cookies.get("penci-font-changer"):"1";i(".penci-font-changer-slider").each(function(){i(this).jRange({from:.5,to:1.5,step:.1,scale:[.5,0,1,1.5],format:"%s",width:120,showLabels:!1,showScale:!1,snap:!0,theme:"penci-fs-slider",onstatechange:function(e){n(e),Cookies.set("penci-font-changer",e)}}),i(this).jRange("setValue",e)})}}),i(document).on("click",".penci-font-changer-reset",function(a){a.preventDefault(),i(".penci-font-changer-slider").jRange("setValue","1"),Cookies.set("penci-font-changer",1)}),i(document).on("click",".penci-font-changer-btn",function(a){a.preventDefault(),i(this).closest(".penci-font-changer-popup").addClass("active")}),i(document).on("click",function(a){var e=i(".penci-font-changer-popup");e.is(a.target)||0!==e.has(a.target).length||e.removeClass("active")})}},a.blockheadinglist=function(){i(".pcnav-lgroup").each(function(){var e,a=i(this),t=i(this).closest(".penci-homepage-title"),n=t.width(),s=a.find("ul.pcflx"),l=t.find(".inner-arrow span").width(),o=t.find(".pcflx-nav").length?t.find(".pcflx-nav").width():0,r=0,d=i("<li class=\"more\"><a class=\"more-click\" href=\"#\"><i class=\"fa fa-ellipsis-v\"></i></a><ul class=\"pcflx-sub\"></ul></li>"),c=n-l-o;t.hasClass("pcalign-center")&&(c=n/2-l/2-30),(t.hasClass("pciconp-left")||t.hasClass("pciconp-right"))&&(c-=36),a.css("width",c),e=s.find(".pcflx-sub").html(),s.find(".more").remove(),s.append(e),s.find("li").each(function(){r+=i(this).outerWidth(),r>c-60&&i(d).find(".pcflx-sub").append(i(this))}),i(d).find(".pcflx-sub li").length&&s.append(d),t.parent().addClass("pc-flexmnld"),a.addClass("loaded")}),i(document).on("click",".pcnav-lgroup .more-click",function(a){a.preventDefault()}),i(".pcnav-lgroup a").on("click",function(){var e=i(this),a=e.closest(".pcnav-lgroup");e.hasClass("pcaj-nav-link")||(a.find("a").removeClass("clactive"),e.addClass("clactive"))})},a.shareexpand=function(){i(".tags-share-box").length&&i(".tags-share-box").each(function(){var e=i(this);if(e.hasClass("disable-btnplus"))return void e.css("opacity","1");if(e.length){var a,t=0,n=!1,s=e.width(),l=1,o=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&&(a=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(){i(this).removeClass("auto-hidden").removeClass("show"),t+=i(this).outerWidth(!0),t>s+a?(i(this).addClass("auto-hidden").removeClass("show"),n=!0):i(this).removeClass("auto-hidden").addClass("show"),l++}),n?(e.find(".post-share-expand").removeClass("auto-hidden").addClass("showing"),e.find(".new-ver-share.show").each(function(){o+=i(this).outerWidth(!0),o>=s-a&&i(this).addClass("auto-hidden").removeClass("show")})):e.find(".post-share-expand").addClass("hidden"),i(".post-share-item.post-share-expand").off().on("click",function(a){a.preventDefault();var e=i(this).closest(".post-share");e.find(".auto-hidden").toggleClass("active"),e.toggleClass("showing-hidden")}),e.css("opacity","1")}})},a.smoothlinkscroll=function(){i("a[href^=\"#\"]").on("click",function(){var e=this.hash,a=i(e);i("html, body").stop().animate({scrollTop:a.offset().top-70},900,"swing",function(){window.location.hash=e})})},a.cookie=function(){var e=i(".penci-wrap-gprd-law");if(!e.length)return!1;var a={set:function(e,a){var i=new Date;i.setTime(i.getTime()+31536e6);var t="; expires="+i.toGMTString();document.cookie=e+"="+a+t+"; path=/"},read:function(e){for(var a,t=e+"=",n=document.cookie.split(";"),s=0;s<n.length;s++){for(a=n[s];" "==a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t))return a.substring(t.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"),!a.exists("penci_law_footer_new")||a.exists("penci_law_footer_new")&&1==a.read("penci_law_footer_new")?e.removeClass("penci-wrap-gprd-law-close"):e.addClass("penci-wrap-gprd-law-close"),i(".penci-gprd-accept, .penci-gdrd-show").on("click",function(t){t.preventDefault();var e=i(this),n=e.closest(".penci-wrap-gprd-law");return n.toggleClass("penci-wrap-gprd-law-close"),n.hasClass("penci-wrap-gprd-law-close")?a.set("penci_law_footer_new","2"):a.set("penci_law_footer_new","1"),!1})},a.main_sticky=function(){if(i("nav#navigation").length&&i().pensticky&&!i("nav#navigation").hasClass("penci-disable-sticky-nav")){var e=0;i("body").hasClass("admin-bar")&&(e=32),i("nav#navigation").each(function(){i(this).pensticky({topSpacing:e})})}},a.featured_slider=function(){const n={};i(".featured-area .penci-owl-featured-area").each(function(){var s=i(this),l=s.data("style"),o=!1,r=s.data("autotime"),d=s.data("speed"),c=s.data("loop"),p=1,h=1,f=!0,g=!1,u=!1,m=1,v=1,y=1,b=1,w=0,C=ajax_var.fcarousel_e,_=ajax_var.fslider_e,k=s.find(".swiper-wrapper").html(),x="fetured-swiper-"+Math.floor(-999998*Math.random()+1)+1;if(s.attr("data-id")&&(x=s.attr("data-id")),s.addClass(x),s.hasClass("no-df-swiper"))return;s.attr("data-ceffect")&&(C=s.attr("data-ceffect")),s.attr("data-seffect")&&(_=s.attr("data-seffect")),"rtl"===i("html").attr("dir")&&(u=!0),"true"===s.attr("data-auto")&&(o=!0),"false"===s.attr("data-nav")&&(f=!1),"true"===s.attr("data-dots")&&(g=!0,s.append("<div class=\"penci-owl-dots\"></div>")),s.attr("data-item")&&(p=parseInt(s.data("item")),h=p),s.attr("data-desktop")&&(m=parseInt(s.data("desktop"))),s.attr("data-tablet")&&(v=parseInt(s.data("tablet"))),s.attr("data-tabsmall")&&(y=parseInt(s.data("tabsmall"))),s.attr("data-mobile")&&(b=parseInt(s.data("mobile"))),s.attr("data-slideby")&&(h=parseInt(s.data("slideby"))),1<p&&s.addClass("swiper-multi-items");let S=0,D=i(this),e=!1;"style-2"===l?(w=10,c=!0):"style-28"===l?m=p=6:"style-38"===l&&(w=5,m=p=5);var P={loop:c,autoplay:o,spaceBetween:w,slidesPerView:p,speed:d,slideActiveClass:"active",watchSlidesProgress:!0,navigation:{nextEl:"."+x+" .owl-next",prevEl:"."+x+" .owl-prev"},on:{init:function(){s.addClass("penci-owl-loaded")},afterInit:function(){s.addClass("penci-featured-loaded")},setTransition:function(e,a){for(var t=0;t<e.slides.length;t++)null!==e.slides[t].querySelector(".slide-inner")&&"creative"==_&&(e.slides[t].style.transition=a+"ms",e.slides[t].querySelector(".slide-inner").style.transition=a+"ms"),null!==e.slides[t].querySelector(".penci-swiper-mask")&&"creative"==_&&(e.slides[t].style.transition=a+"ms",e.slides[t].querySelector(".penci-swiper-mask").style.transition=a+"ms")},touchStart(...a){1<p&&(e=!0,D.on&&D.on.touchStart&&D.on.touchStart(...a));for(var t=this,n=0;n<t.slides.length;n++)null!==t.slides[n].querySelector(".slide-inner")&&"creative"==_&&(t.slides[n].style.transition=""),null!==t.slides[n].querySelector(".penci-swiper-mask")&&"creative"==_&&(t.slides[n].style.transition="")},touchEnd(...a){1<p&&(e=!1,D.on&&D.on.touchStart&&D.on.touchEnd(...a))},progress(a,t){if(!e){if(1<p&&"swing"==C){a.on&&a.on.progress&&a.on.progress(a,t);const e=a.progress>S?"next":"prev";S=a.progress;const i=a.params.speed/16,n=a.visibleSlidesIndexes,s=n[0],o=n[n.length-1],r=(a,t)=>{a.style.transitionDelay="next"===e&&t>=s?`${(t-s+1)*i}ms`:"prev"===e&&t<=o+1?`${(o-t+1)*i}ms`:`${0}ms`};a.slides.forEach((e,i)=>{a.animating?(e.style.transitionDelay="0ms",requestAnimationFrame(()=>{r(e,i)})):r(e,i)})}for(var n=this,s=0;s<n.slides.length;s++){var l=n.slides[s].progress,o=n.width*.5,r=l*o;null!==n.slides[s].querySelector(".slide-inner")&&"creative"==_&&(n.slides[s].querySelector(".slide-inner").style.transform="translate3d("+r+"px, 0, 0)"),null!==n.slides[s].querySelector(".penci-swiper-mask")&&"creative"==_&&(n.slides[s].querySelector(".penci-swiper-mask").style.transform="translate3d("+r+"px, 0, 0)")}}}}};o&&(P.autoplay={delay:r,disableOnInteraction:!1,pauseOnMouseEnter:!0}),("style-2"===l||"style-38"===l)&&(P.centeredSlides=!0,P.loop=!0,P.slidesPerView="auto"),s.find(".swiper-mark-item").length&&(P.parallax=!0),"style-2"===l&&(P.loopAddBlankSlides=!0,P.watchSlidesProgress=!1,P.centerInsufficientSlides=!0),"style-38"===l&&(P.loopAddBlankSlides=!0,P.watchSlidesProgress=!1,P.centerInsufficientSlides=!0),g&&(P.pagination={el:"."+x+" .penci-owl-dots",type:"bullets",bulletElement:"div",clickable:!0,bulletClass:"penci-owl-dot",bulletActiveClass:"active",dynamicBullets:!0,renderBullet:function(e,a){return"<div class=\""+a+"\"><span></span></div>"}}),1==p&&"style-38"!==l&&("creative"===_?P.effect="slide":P.effect=_),("style-28"==l||"style-2"==l||"style-38"==l)&&(P.effect="side",P.slidesPerView="auto"),"fade"==P.effect&&(P.fadeEffect={crossFade:!0}),"swing"==C&&1<p&&(P.speed=d,P.loop=!1,"style-38"!==l&&(P.rewind=!0),P.effect="creative",P.followFinger=!1,P.creativeEffect={limitProgress:100,prev:{translate:["-100%",0,0]},next:{translate:["100%",0,0]}}),"auto"!==P.slidesPerView&&(P.breakpoints={0:{slidesPerView:b},480:{slidesPerView:y},768:{slidesPerView:v},1170:{slidesPerView:m}}),n[x]=new Swiper("."+x,P),n[x].update(),"style-38"==l&&n[x].slideTo(4,0),"style-2"==l&&n[x].slideTo(4,0),i("body").hasClass("rtl")&&n[x].changeLanguageDirection("ltr")})},a.owl_slider=function(){const e={};i(".penci-owl-carousel-slider").each(function(){var n=i(this),s=n.parent(),l=!0,o=!1,r=!0,d=!0,c=!1,p=n.data("auto"),h=1,f=1,g=1,u=1,m=600,v=1,y=1,b=0,w=5e3,C=!0,_=!1,k=ajax_var.carousel_e,x=ajax_var.slider_e,S=n.attr("data-thumbs"),D=n.find(".swiper-wrapper").html(),P="fetured-swiper-"+Math.floor(Math.random()*-999998+1)+1;if(n.hasClass("no-df"))return;if(n.hasClass("nav-thumb-creative"))return;if(n.hasClass("penci-featured-loaded"))return;n.attr("data-id")&&(P=n.attr("data-id")),n.attr("data-ceffect")&&(k=n.attr("data-ceffect")),n.attr("data-seffect")&&(x=n.attr("data-seffect")),n.addClass(P),n.find(".swiper-slide").removeClass("penci-ajrs-animate"),"false"!==n.attr("data-nav")&&n.append("<div class=\"penci-owl-nav\"><div class=\"owl-prev\"><i class=\"penciicon-left-chevron\"></i></div><div class=\"owl-next\"><i class=\"penciicon-right-chevron\"></i></div></div>"),"rtl"===i("html").attr("dir")&&(c=!0),"true"===n.attr("data-dots")&&(o=!0,!n.find(".penci-owl-dots").length&&n.append("<div class=\"penci-owl-dots\"></div>")),"false"===n.attr("data-loop")&&(d=!1),"false"===n.attr("data-nav")&&(r=!1),"false"===n.attr("data-auto")&&(l=!1),n.attr("data-margin")&&(b=parseInt(n.data("margin"))),n.attr("data-desktop")&&(h=parseInt(n.data("desktop"))),n.attr("data-tablet")&&(f=parseInt(n.data("tablet"))),n.attr("data-tabsmall")&&(g=parseInt(n.data("tabsmall"))),n.attr("data-mobile")&&(u=parseInt(n.data("mobile"))),n.attr("data-speed")&&(m=parseInt(n.data("speed"))),n.attr("data-autotime")&&(w=parseInt(n.data("autotime"))),n.attr("data-item")&&(v=y=parseInt(n.data("item"))),n.attr("data-lazy")&&(_=!0),n.attr("data-height")&&(C=!0);let T=0,j=!1;var E={loop:d,spaceBetween:b,slidesPerView:v,speed:m,autoplay:l,pauseOnMouseEnter:!0,autoHeight:C,slideActiveClass:"active",watchSlidesProgress:!0,lazyLoading:_,navigation:{nextEl:"."+P+" .owl-next",prevEl:"."+P+" .owl-prev"},breakpoints:{320:{slidesPerView:u},768:{slidesPerView:f},1170:{slidesPerView:h}},on:{init:function(){n.addClass("penci-owl-loaded")},afterInit:function(){n.addClass("penci-featured-loaded")},touchStart(e){if(1<v)j=!0,e.on&&e.on.touchStart&&e.on.touchStart(e);else for(var a=this,t=0;t<a.slides.length;t++)null!==a.slides[t].querySelector(".slide-inner")&&"creative"==x&&(a.slides[t].style.transition=""),null!==a.slides[t].querySelector(".penci-swiper-mask")&&"creative"==x&&(a.slides[t].style.transition="")},touchEnd(e){1<v&&(j=!1,e.on&&e.on.touchStart&&e.on.touchEnd(e))},setTransition:function(e,a){for(var t=0;t<e.slides.length;t++)null!==e.slides[t].querySelector(".slide-inner")&&"creative"==x&&(e.slides[t].style.transition=a+"ms",e.slides[t].querySelector(".slide-inner").style.transition=a+"ms"),null!==e.slides[t].querySelector(".penci-ctslide-bg")&&"creative"==x&&(e.slides[t].style.transition=a+"ms",e.slides[t].querySelector(".penci-ctslide-bg").style.transition=a+"ms"),null!==e.slides[t].querySelector(".penci-swiper-mask")&&"creative"==x&&(e.slides[t].style.transition=a+"ms",e.slides[t].querySelector(".penci-swiper-mask").style.transition=a+"ms")},progress(e,a){if(!j)if(1<v&&"swing"===k){e.on&&e.on.progress&&e.on.progress(e,a);const i=e.progress>T?"next":"prev";T=e.progress;const t=e.params.speed/16,n=e.visibleSlidesIndexes,s=n[0],o=n[n.length-1],r=(e,a)=>{e.style.transitionDelay="next"===i&&a>=s?`${(a-s+1)*t}ms`:"prev"===i&&a<=o+1?`${(o-a+1)*t}ms`:`${0}ms`};e.slides.forEach((a,i)=>{e.animating?(a.style.transitionDelay="0ms",requestAnimationFrame(()=>{r(a,i)})):r(a,i)})}else for(var t=this,n=0;n<t.slides.length;n++){var s=t.slides[n].progress,l=t.width*.5,o=s*l;null!==t.slides[n].querySelector(".slide-inner")&&"creative"===x&&(t.slides[n].querySelector(".slide-inner").style.transform="translate3d("+o+"px, 0, 0)"),null!==t.slides[n].querySelector(".penci-ctslide-bg")&&"creative"===x&&(t.slides[n].querySelector(".penci-ctslide-bg").style.transform="translate3d("+o+"px, 0, 0)"),null!==t.slides[n].querySelector(".penci-swiper-mask")&&"creative"===x&&(t.slides[n].querySelector(".penci-swiper-mask").style.transform="translate3d("+o+"px, 0, 0)")}}}};"swing"===k&&1<v?(n.addClass("penci-swing-ef"),E.speed=m,E.loop=!1,E.rewind=!0,E.effect="creative",E.followFinger=!1,E.creativeEffect={limitProgress:100,prev:{translate:["-100%",0,0]},next:{translate:["100%",0,0]}}):1==v&&(E.effect=x),("flip"===E.effect||"cards"===E.effect)&&1==v&&(E.loop=!1),"creative"===E.effect&&1===v&&(E.creativeEffect={shadowPerProgress:!0,prev:{translate:["-100%",0,0],opacity:.5},next:{translate:["100%",0,0],opacity:1}}),n.attr("data-direction")&&(E.direction=n.attr("data-direction")),o&&(E.pagination={el:"."+P+" .penci-owl-dots",type:"bullets",bulletElement:"div",clickable:!0,bulletClass:"penci-owl-dot",bulletActiveClass:"active",renderBullet:function(e,a){return"<div class=\""+a+"\"><span></span></div>"}}),n.attr("data-thumbs-id")&&(E.thumbs={swiper:e[n.attr("data-thumbs-id")]}),n.attr("data-thumb")&&(E.slideToClickedSlide=!0),s.hasClass("penci-topbar-trending")&&(E.navigation={nextEl:".penci-slider-next",prevEl:".penci-slider-prev"},E.autoHeight=!1,n.attr("data-anim")&&(E.slideActiveClass="animated"),"slideInUp"===n.attr("data-anim")&&(E.effect="creative",E.creativeEffect={shadowPerProgress:!0,prev:{translate:[0,"-100%",0],opacity:0},next:{translate:[0,"100%",0],opacity:1}}),"slideInRight"===n.attr("data-anim")&&(E.effect="creative",E.creativeEffect={shadowPerProgress:!1,perspective:!0,prev:{translate:["20px",0,0],opacity:0},next:{translate:["20px",0,0],opacity:0}}),"fadeIn"===n.attr("data-anim")&&(E.effect="fade",E.fadeEffect={crossFade:!0})),l&&(E.autoplay={delay:w,disableOnInteraction:!1,pauseOnMouseEnter:!0}),e[P]=new Swiper("."+P,E),n.attr("data-thumbs-id")&&e[n.attr("data-thumbs-id")].update(),e[P].update()})},a.slick_slider=function(){i(".penci-image-gallery-thumbnail-slider").each(function(){var e=i(this).find(".pcthumb-s-msl").attr("data-id"),a=i(this).find(".pcthumb-s-csl").attr("data-id"),t=i(this).find(".pcthumb-s-csl").attr("data-total"),n=new Swiper("."+a,{loop:!0,slidesPerView:"auto",spaceBetween:0,slideToClickedSlide:!0,on:{init:function(){i("."+a).addClass("slick-initialized")}},navigation:{nextEl:"."+a+" .slick-next",prevEl:"."+a+" .slick-prev"}}),s=new Swiper("."+e,{slidesPerView:1,autoHeight:!0,loop:!0,thumbs:{swiper:n},on:{init:function(){i("."+e).addClass("slick-initialized")},slideChange:function(t){var e=t.realIndex,e=0==e?1:e;i("."+a).find(".pcslick-nav-area").find(".current").html(e)}}});n.update(),s.update()})},a.fitvids=function(){i().fitVids&&i(".container").fitVids({ignore:".penci-sticky-video"})},a.sticky_sidebar=function(){if(i().theiaStickySidebar){var e=80;if(i("body").hasClass("admin-bar")&&i("body").hasClass("penci-vernav-enable")?e=52:!i("body").hasClass("admin-bar")&&i("body").hasClass("penci-vernav-enable")?e=20:i("body").hasClass("admin-bar")&&!i("body").hasClass("penci-vernav-enable")&&(e=112),i(".pc-wrapbuilder-header").length){var a=i(".penci_builder_sticky_header_desktop");e=20,a.length&&!a.hasClass("hide-scroll-down")&&(e=a.height()+20),i("body").hasClass("admin-bar")&&(e+=32)}i(".pc-container-sticky").each(function(){var e=i(this);0===e.find(".theiaStickySidebar").length&&e.wrapInner("<div class=\"theiaStickySidebar\"></div>")}),i(".penci-vc-sticky-sidebar > .penci-vc-row > .penci-vc-column").length&&i(".penci-vc-sticky-sidebar > .penci-vc-row > .penci-vc-column").theiaStickySidebar({additionalMarginTop:e,minWidth:961}),i(".penci-enSticky .penci-sticky-sb").length&&i(".penci-enSticky .penci-sticky-sb,.penci-enSticky .penci-sticky-ct").theiaStickySidebar({additionalMarginTop:e,minWidth:961}),i("#main.penci-main-sticky-sidebar, #sidebar.penci-sticky-sidebar").theiaStickySidebar({additionalMarginTop:e})}},a.mega_menu=function(){i("#navigation ul.menu > li.penci-mega-menu").on("mouseenter",function(){var e=i(this),a=e.find(".row-active"),t=a.find(".penci-lazy");a.fadeIn("200").css("display","inline-block")}),i("#navigation .penci-mega-child-categories a").on("mouseenter",function(){if(!i(this).hasClass("cat-active")){var e=i(this),a=e.data("id"),t=e.parent().children("a"),n=e.closest(".penci-megamenu"),s=e.closest(".penci-megamenu").find(".penci-mega-latest-posts").children(".penci-mega-row"),l=s.find(".penci-lazy");t.removeClass("cat-active"),e.addClass("cat-active"),s.hide(),s.removeClass("row-active"),n.find("."+a).fadeIn("300").css("display","inline-block").addClass("row-active")}})},a.categories_lists=function(){i(".pc-advanced-cat li").each(function(){i(this).find(".children").length&&(i(this).addClass("has-children"),i(this).find(".children").hide(),i(this).append("<u class=\"indicator\"><i class=\"fa fa-angle-down\"></i></u>"))}),i(".pc-advanced-cat .indicator").on("click",function(a){var e=i(this);a.preventDefault(),e.children().toggleClass("fa-angle-up"),e.closest("li").find(".children").slideToggle("fast")})},a.mobile_menu=function(){i("#sidebar-nav .menu li.menu-item-has-children > a").append("<u class=\"indicator\"><i class=\"fa fa-angle-down\"></i></u>"),i("#navigation .button-menu-mobile").on("click",function(){i("body").addClass("open-sidebar-nav")}),i("#sidebar-nav .menu li a .indicator").on("click",function(a){if(!i("body").hasClass("penci-vernav-cparent")){var e=i(this);a.preventDefault(),e.children().toggleClass("fa-angle-up"),e.parent().next().slideToggle("fast")}}),i(".penci-vernav-cparent #sidebar-nav .menu li.menu-item-has-children > a").on("click",function(a){var e=i(this);a.preventDefault(),e.children().children().toggleClass("fa-angle-up"),e.next().slideToggle("fast")}),i("#close-sidebar-nav").on("click",function(a){a.preventDefault(),i("body").removeClass("open-sidebar-nav")})},a.toggleMenuHumburger=function(){var a=i(".penci-menu-hbg");if(a.length){var t=i("body"),n=i(".penci-vernav-toggle,.penci-menuhbg-toggle,#penci-close-hbg,.penci-menu-hbg-overlay");i(".penci-menu-hbg .menu li.menu-item-has-children > a").append("<u class=\"indicator\"><i class=\"fa fa-angle-down\"></i></u>"),i(".penci-menu-hbg .menu li a .indicator").on("click",function(t){if((!i("body").hasClass("penci-hbg-cparent")||a.hasClass("penci-builder-mobile-sidebar-nav"))&&!(a.hasClass("penci-builder-mobile-sidebar-nav")&&a.find(".pchb-cparent").length)){var e=i(this);t.preventDefault(),e.children().toggleClass("fa-angle-up"),e.parent().next().slideToggle("fast")}}),i(".penci-hbg-cparent .penci-menu-hbg .menu li.menu-item-has-children > a").on("click",function(a){var e=i(this);a.preventDefault(),e.children().children().toggleClass("fa-angle-up"),e.next().slideToggle("fast")}),n.on("click",function(a){return a.preventDefault(),t.hasClass("penci-menuhbg-open")?(t.removeClass("penci-menuhbg-open"),void n.removeClass("active")):void(a.stopPropagation(),t.addClass("penci-menuhbg-open"),n.addClass("active"))})}},a.lightbox=function(){i().magnificPopup&&(i("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}}),i("a[data-rel^=\"penci-gallery-bground-content\"]").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,image:{verticalFit:!0},gallery:{enabled:!0}}),i(".penci-other-layouts-lighbox").magnificPopup({type:"iframe",mainClass:"mfp-fade",fixedContentPos:!0,closeBtnInside:!1,closeOnContentClick:!0}),i(".penci-image-gallery").length&&i(".penci-image-gallery").each(function(){var e=i(this),a=e.attr("id");i("#"+a+" a.penci-gallery-ite").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,image:{verticalFit:!0,titleSrc:"data-cap"},gallery:{enabled:!0}})}),i(".penci-post-gallery-container").length&&i(".penci-post-gallery-container").each(function(){var e=i(this),a=e.attr("id");i("#"+a+" a.penci-gallery-ite").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,image:{verticalFit:!0,titleSrc:"data-cap"},gallery:{enabled:!0}})}))},a.masonry=function(){var e=i(".penci-masonry, .penci-bgstyle-2 .penci-biggrid-data");e.length&&e.each(function(){var e=i(this);e.imagesLoaded(function(){e.isotope({itemSelector:".item-masonry",transitionDuration:".55s",layoutMode:"masonry"})})})},a.video_background=function(){var e=i("#penci-featured-video-bg");e.length&&i(e).each(function(){var e=i(this),a=e.data("videosrc"),t=e.data("starttime");jarallax(e,{videoSrc:a,videoStartTime:t,videoPlayOnlyVisible:!1}),i(".featured-area").addClass("loaded-wait"),setTimeout(function(){i(".featured-area").addClass("loaded-animation")},1500)})},a.portfolio=function(){var e=i(".penci-portfolio");i().isotope&&e.length&&i(".penci-portfolio").each(function(){var t=i(this),n=i(this).attr("id"),s=null;if("undefined"!=typeof portfolioDataJs&&null!==portfolioDataJs)for(var l in portfolioDataJs)if(portfolioDataJs[l].instanceId==n)var s=portfolioDataJs[l];t.imagesLoaded(function(){t.isotope({itemSelector:".portfolio-item",animationEngine:"best-available",animationOptions:{duration:250,queue:!1}}),t.addClass("loaded"),i(".portfolio-item .inner-item-portfolio").each(function(){var e=i(this);e.one("inview",function(){e.addClass("animated")})});var e=window.location.hash.toString();if(e.length){e=e.replace("#",""),e.match(/:/);var a=e.match(/^([^:]+)/)[1];if(e=e.replace(a+":",""),1<e.length){var n=o.filter("[data-term=\""+e+"\"]"),l=t.find(".portfolio-item"),d=t.parent().find(".penci-pagenavi-shortcode");if(n.length){r.removeClass("active"),n.parent().addClass("active"),t.isotope({filter:".penci-"+e});var c=n.data("term"),h={};s.currentTerm=c,i.each(s.countByTerms,function(e){h[e]=0}),l.each(function(a,t){i.each((i(t).data("terms")+"").split(" "),function(a,i){h[i]++})});var p="number"==typeof h[c]&&h[c]==s.countByTerms[c];d.length&&(l.length===s.count||p?d.hide():d.show())}}}});var e=t.parent().find(".penci-portfolio-filter"),o=e.find("a"),r=e.find("li");r.on("click",function(){var a=i(this),n=a.find("a").data("term"),l=a.find("a").attr("data-filter"),o=e.find("a").filter("[data-term=\""+n+"\"]"),d=t.find(".portfolio-item"),c=t.parent().find(".penci-pagenavi-shortcode"),h=i(window).scrollTop();r.removeClass("active"),a.addClass("active"),t.parent().find(".penci-ajax-more-button").attr("data-cat",n),t.isotope({filter:l}),o.length&&(window.location.hash="*"==n?"":n,i(window).scrollTop(h));var f={};s.currentTerm=n,i.each(s.countByTerms,function(e){f[e]=0}),d.each(function(a,t){i.each((i(t).data("terms")+"").split(" "),function(a,i){f[i]++})});var p="number"==typeof f[n]&&f[n]==s.countByTerms[n];return c.length&&(d.length===s.count||p?c.hide():c.show()),!1}),a.portfolioLoadMore.loadMore(t,s),a.portfolioLoadMore.infinityScroll(s)});var t=i(".penci-plf-loadmore");if(!i().isotope||!t.length)return!1},a.portfolioLoadMore={btnLoadMore:i(".penci-plf-loadmore"),loadMore:function(e,a){var t=this;i("body").on("click",".penci-ajax-more-button",function(){t.actionLoadMore(i(this),e,a)})},infinityScroll:function(e){var a=this,t=i(".penci-plf-loadmore"),n=t.find(".penci-ajax-more-button");t.hasClass("penci-infinite-scroll")&&i(window).on("scroll",function(){var t=n.offset().top,s=n.outerHeight(),l=i(window).height(),o=i(this).scrollTop();if(o>t+s-l&&n.length){var r=n.closest(".penci-portfolio");a.actionLoadMore(n,r,e)}}).trigger("scroll")},actionLoadMore:function(e,a,n){if(e.hasClass("loading-portfolios"))return!1;e.addClass("loading-portfolios");var s=e.data("mes_no_more"),l=e.data("mes");n.pflShowIds=[],e.closest(".wrapper-penci-portfolio").find(".portfolio-item").each(function(a,t){n.pflShowIds.push(i(t).data("pflid"))});var o={action:"penci_pfl_more_post_ajax",datafilter:n,nonce:ajax_var_more.nonce};i.post(ajax_var_more.url,o,function(a){if(!a.data.items)return e.find(".ajax-more-text").html(s),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(l)},1200),!1;var t=e.closest(".wrapper-penci-portfolio").find(".penci-portfolio"),n=i(a.data.items);t.find(".inner-portfolio-posts").append(n),t.isotope("appended",n).imagesLoaded(function(){t.isotope("layout")}),i(".container").fitVids({ignore:".penci-sticky-video"}),i("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}}),t.addClass("loaded"),i(".portfolio-item .inner-item-portfolio").each(function(){var e=i(this);e.one("inview",function(){e.addClass("animated")})}),e.removeClass("loading-portfolios")}),i.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)}})}},a.gallery=function(){var e=i(".penci-post-gallery-container.justified"),a=i(".penci-post-gallery-container.masonry");i().justifiedGallery&&e.length&&i(".penci-post-gallery-container.justified").each(function(){var e=i(this);e.justifiedGallery({rowHeight:e.data("height"),lastRow:"nojustify",margins:e.data("margin"),randomize:!1})}),i().isotope&&a.length&&i(".penci-post-gallery-container.masonry .item-gallery-masonry").each(function(){var e=i(this).children();if(e.attr("data-cap")&&!e.hasClass("added-caption")){var a=e.attr("data-cap");"undefined"!==a&&(e.children().append("<div class=\"caption\">"+a+"</div>"),e.addClass("added-caption"))}}),a.length&&a.each(function(){var e=i(this);e.imagesLoaded(function(){e.isotope({itemSelector:".item-gallery-masonry",transitionDuration:".55s",layoutMode:"masonry"}),e.addClass("loaded"),i(".penci-post-gallery-container.masonry .item-gallery-masonry").each(function(){var e=i(this);e.one("inview",function(){e.children().addClass("animated")})})})})},a.Jarallax=function(){return!!(i.fn.jarallax&&i(".penci-jarallax").length)&&void i(".penci-jarallax").each(function(){var e=i(this),a={};e.imagesLoaded({background:!0},function(){jarallax(e,a)})})},a.RelatedPopup=function(){if(i(".penci-rlt-popup").length){var a=i(".penci-rlt-popup"),t=i(".penci-rlt-popup .penci-close-rltpopup"),n=a.find(".penci-lazy");i("body").on("inview",".penci-flag-rlt-popup",function(e,i){!a.hasClass("rltpopup-notshow-again")&&i&&(a.addClass("rltpopup-show-up"),t.on("click",function(i){i.preventDefault(),a.removeClass("rltpopup-show-up").addClass("rltpopup-notshow-again")}))}),t.on("click",function(i){i.preventDefault(),a.removeClass("rltpopup-show-up").addClass("rltpopup-notshow-again")})}},a.extraFunction={init:function(){this.counterUp(),this.progressBar(),this.loginPopup(),this.recoverPassPopup(),this.registerPopup(),this.login(),this.register(),this.map()},progressBar:function(){i(".penci-review-process").length&&i(".penci-review-process").each(function(){var e=i(this),a=e.children(),t=10*a.data("width");e.one("inview",function(){a.animate({width:t+"%"},1e3)})}),i.fn.easyPieChart&&i(".penci-piechart").length&&i(".penci-piechart").each(function(){var e=i(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=i(".penci-counterup-number");return!!(i.fn.counterUp&&e.length)&&void e.each(function(){var e=i(this);e.one("inview",function(){setTimeout(function(){i({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=i("body"),a=i("#penci-loginpopform"),t=a.closest(".penci-popup-wrapper");a.length&&(i(".penci-login-popup-btn a").magnificPopup({type:"inline",midClick:!0,removalDelay:600,mainClass:"penci-popup-animation"}),e.on("click",".penci-lostpassword-btn",function(a){var e=i(this),t=e.closest(".penci-popup-wrapper");return t.children(".penci-popup-passreset").slideDown("normal"),t.children(".penci-popup-login").slideUp("normal"),a.preventDefault(),!1}),e.on("click",".penci-register-popup-btn",function(a){var e=i(this),t=e.closest(".penci-popup-wrapper");return t.children(".penci-popup-register").slideDown("normal"),t.children(".penci-popup-login").slideUp("normal"),a.preventDefault(),!1}),e.on("click",".penci-login-popup-btn",function(a){var e=i(this),t=e.closest(".penci-popup-wrapper");return t.children(".penci-popup-login").slideDown("normal"),t.children(".penci-popup-register").slideUp("normal"),t.children(".penci-popup-passreset").slideUp("normal"),a.preventDefault(),!1}),i("#penci_user, #penci_pass").on("focus",function(){i(this).removeClass("invalid")}),a.on("submit",function(a){var e=i(this),n=e.find("#penci_user"),s=e.find("#penci_pass"),l=n.val(),o=s.val(),r=e.find(".penci_form_nonce").val(),d=e.find(".g-recaptcha-response");if(d.length)var c=d.val();else var c="noexists";if(0<n.length&&""==l&&(n.addClass("invalid"),a.preventDefault()),0<s.length&&""==o&&(s.addClass("invalid"),a.preventDefault()),""==l||""==o)return!1;t.addClass("ajax-loading"),t.find(".message").slideDown().remove();var p={action:"penci_login_ajax",username:l,password:o,captcha:c,security:r,remember:t.find("#remembermepopup").val()};return i.post(ajax_var_more.url,p,function(e){if(t.removeClass("ajax-loading"),t.children(".penci-popup-login").append(e.data),!!e.success){var a=window.location.href,i=ajax_var_more.redirect_url;/^(https?:\/\/)?([\w-]+\.)*[\w-]+[\.][\w]+(\/.*)?$/.test(i)&&(a=i),window.location.href=a+"?singin=true"}}),a.preventDefault(),!1}))},recoverPassPopup:function(){var e=i("body"),a=i("#penci-passreset-popup"),t=a.closest(".penci-popup-wrapper");a.length&&(i(".penci_user_email").on("focus",function(){i(this).removeClass("invalid")}),a.on("submit",function(a){a.preventDefault();var e=i(this),n=e.find(".penci_user_email"),s=n.val(),l=e.find(".penci_form_nonce").val(),o=e.find(".g-recaptcha-response");if(o.length)var r=o.val();else var r="noexists";if(0<n.length&&""==s)return n.addClass("invalid"),a.preventDefault(),!1;t.addClass("ajax-loading"),t.find(".message").slideDown().remove();var d={action:"penci_resetpass_ajax",security:l,username:s,captcha:r};return i.post(ajax_var_more.url,d,function(e){return t.removeClass("ajax-loading"),void t.children(".penci-popup-passreset").append(e.data)}),event.preventDefault(),!1}))},registerPopup:function(){var e=i("body"),a=i("#penci-register-popup"),t=a.closest(".penci-popup-wrapper");if(a.length){var n=i(".penci_user_name,.penci_user_email,.penci_user_pass,.penci_user_pass_confirm");n.on("focus",function(){i(this).removeClass("invalid")}),a.on("submit",function(a){a.preventDefault();var e=i(this),s=e.find(".penci_user_name"),l=e.find(".penci_user_email"),o=e.find(".penci_user_pass"),r=e.find(".penci_user_pass_confirm"),d=s.val(),c=l.val(),p=o.val(),h=r.val(),f=e.find(".penci_form_nonce").val(),g=e.find(".g-recaptcha-response");if(g.length)var u=g.val();else var u="noexists";if(n.removeClass("invalid"),0<s.length&&""==d&&(s.addClass("invalid"),event.preventDefault()),0<l.length&&""==c&&(l.addClass("invalid"),event.preventDefault()),0<o.length&&""==p&&(o.addClass("invalid"),event.preventDefault()),0<r.length&&""==h&&(r.addClass("invalid"),event.preventDefault()),""==d||""==c||""==p||""==h)return!1;if(t.find(".message").slideDown().remove(),h!==p)return o.addClass("invalid"),r.addClass("invalid"),t.children(".penci-popup-register").append(ajax_var_more.errorPass),event.preventDefault(),!1;t.addClass("ajax-loading");var m={action:"penci_register_ajax",fistName:e.find(".penci_first_name").val(),lastName:e.find(".penci_last_name").val(),username:d,password:p,confirmPass:h,email:c,security:f,captcha:u};return i.post(ajax_var_more.url,m,function(e){t.removeClass("ajax-loading"),t.children(".penci-popup-register").append(e.data),e.success&&(window.location.href+="?singin=true")}),event.preventDefault(),!1})}},login:function(){var e=i("body"),a=i(".penci-loginform"),t=a.parent(".penci-login-wrap");a.length&&(e.on("click",".penci-user-register",function(a){a.preventDefault();var e=i(this),t=e.closest(".penci-login-register");t.find(".penci-login-wrap").addClass("hidden"),t.find(".penci-register-wrap").removeClass("hidden")}),i("#penci-user-login,#penci-user-pass").on("focus",function(){i(this).removeClass("invalid")}),i(".penci-loginform").each(function(){i(this).on("submit",function(a){var e=i(this),t=e.parent(".penci-login-wrap"),n=e.find("#penci-user-login"),s=e.find("#penci-user-pass"),l=n.val(),o=s.val(),r=e.find(".penci_form_nonce").val(),d=e.find(".g-recaptcha-response");if(d.length)var c=d.val();else var c="noexists";if(0<n.length&&""==l&&(n.addClass("invalid"),a.preventDefault()),0<s.length&&""==o&&(s.addClass("invalid"),a.preventDefault()),""==l||""==o)return!1;t.parent().addClass("ajax-loading"),t.find(".message").slideDown().remove();var p={action:"penci_login_ajax",username:l,password:o,captcha:c,security:r,remember:t.find("#rememberme").val()};return i.post(ajax_var_more.url,p,function(e){t.parent().removeClass("ajax-loading"),t.append(e.data),e.success&&(window.location.href+="?singin=true")}),a.preventDefault(),!1})}))},register:function(){var e=i("body"),a=i("#penci-registration-form"),t=a.closest(".penci-register-wrap");if(!a.length)return!1;e.on("click",".penci-user-login-here",function(a){a.preventDefault();var e=i(this),t=e.closest(".penci-login-register");return t.find(".penci-login-wrap").removeClass("hidden"),t.find(".penci-register-wrap").addClass("hidden"),!1});var n=i(".penci_user_name,.penci_user_email,.penci_user_pass,.penci_user_pass_confirm");n.on("focus",function(){i(this).removeClass("invalid")}),i(".penci-registration-form").each(function(){i(this).on("submit",function(a){a.preventDefault();var e=i(this),t=e.closest(".penci-register-wrap"),s=e.find(".penci_user_name"),l=e.find(".penci_user_email"),o=e.find(".penci_user_pass"),r=e.find(".penci_user_pass_confirm"),d=s.val(),c=l.val(),p=o.val(),h=r.val(),f=e.find(".penci_form_nonce").val(),g=e.find(".g-recaptcha-response");if(g.length)var u=g.val();else var u="noexists";if(n.removeClass("invalid"),0<s.length&&""==d&&(s.addClass("invalid"),event.preventDefault()),0<l.length&&""==c&&(l.addClass("invalid"),event.preventDefault()),0<o.length&&""==p&&(o.addClass("invalid"),event.preventDefault()),0<r.length&&""==h&&(r.addClass("invalid"),event.preventDefault()),""==d||""==c||""==p||""==h)return!1;if(t.find(".message").slideDown().remove(),h!==p)return o.addClass("invalid"),r.addClass("invalid"),t.append(ajax_var_more.errorPass),event.preventDefault(),!1;t.parent().addClass("ajax-loading");var m={action:"penci_register_ajax",fistName:e.find(".penci_first_name").val(),lastName:e.find(".penci_last_name").val(),username:d,password:p,confirmPass:h,email:c,security:f,captcha:u};return i.post(ajax_var_more.url,m,function(e){t.parent().removeClass("ajax-loading"),t.append(e.data),e.success&&(window.location.href+="?singin=true")}),event.preventDefault(),!1})})},map:function(){return!!i(".penci-google-map").length&&void i(".penci-google-map").each(function(){var e=i(this),a=e.data("map_options"),t=e.attr("id"),n=google.maps.MapTypeId.ROADMAP;switch(a.map_type){case"satellite":n=google.maps.MapTypeId.SATELLITE;break;case"hybrid":n=google.maps.MapTypeId.HYBRID;break;case"terrain":n=google.maps.MapTypeId.TERRAIN;}var s=new google.maps.LatLng(-34.397,150.644),e=new google.maps.Map(document.getElementById(t),{zoom:parseInt(a.map_zoom),center:s,mapTypeId:n,panControl:a.map_pan,zoomControl:a.map_is_zoom,mapTypeControl:!0,scaleControl:a.map_scale,streetViewControl:a.map_street_view,rotateControl:a.map_rotate,overviewMapControl:a.map_overview,scrollwheel:a.map_scrollwheel}),l=new google.maps.Marker({position:s,map:e,title:a.marker_title,icon:a.marker_img});if(a.info_window){var o=new google.maps.InfoWindow({content:a.info_window});google.maps.event.addListener(l,"click",function(){o.open(e,l)})}if("coordinates"==a.map_using&&a.latitude&&a.longtitude)s=new google.maps.LatLng(a.latitude,a.longtitude),e.setCenter(s),l.setPosition(s);else{var r=new google.maps.Geocoder;r.geocode({address:a.address},function(a){var i=a[0].geometry.location;s=new google.maps.LatLng(i.lat(),i.lng()),e.setCenter(s),l.setPosition(s)})}})}},a.VideosList={init:function(){a.VideosList.play()},play:function(){return!!i(".penci-video_playlist").length&&void i(".penci-video_playlist").each(function(){var t=i(this),n=t.find(".penci-video-frame"),s=t.find(".penci-video-nav").height(),l=t.find(".penci-video-nav .penci-playlist-title").height();t.find(".penci-video-playlist-nav").css("height",s-l),n.video(),a.VideosList.updateStatus(t),n.addVideoEvent("ready",function(){n.css("visibility","visible").fadeIn(),t.find(".loader-overlay").remove()}),t.on("click",".penci-video-playlist-item",function(){var e=i(this),n=e.data("name"),s=i("#"+n),l=e.data("src"),o=e.find(".penci-video-number").text();return e.hasClass("is-playing")?void s.pauseVideo():void(t.find(".penci-video-playing").text(o),t.find(".penci-video-frame").each(function(){i(this).pauseVideo().hide()}),s.length?s.playVideo():(t.find(".fluid-width-video-wrapper").prepend(""),t.find(".fluid-width-video-wrapper").append("<iframe class=\"penci-video-frame\" id=\""+n+"\" src=\""+l+"\" frameborder=\"0\" width=\"100%\"\" height=\"434\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>"),s=i("#"+n),s.video(),s.addVideoEvent("ready",function(a,e){e.playVideo(),t.find(".loader-overlay").remove()})),s.css("visibility","visible").fadeIn(),a.VideosList.updateStatus(t))})})},updateStatus:function(e){e.find(".penci-video-frame").each(function(){var e=i(this),a=i("[data-name='"+e.attr("id")+"']");e.addVideoEvent("play",function(){a.removeClass("is-paused").addClass("is-playing")}),e.addVideoEvent("pause",function(){a.removeClass("is-playing").addClass("is-paused")}),e.addVideoEvent("finish",function(){a.removeClass("is-paused is-playing")})})}},a.JumtoRecipe=function(){i(".penci-jump-recipe").on("click",function(a){a.preventDefault();var e=i(this).closest(".penci-single-block"),t=i(this).attr("href"),n=e.find(t).first();if(n.length){var s=n.offset().top,l=30;if(i("#navigation").length)l=i("#navigation").height()+30;else if(i(".pc-wrapbuilder-header").length)if(window.matchMedia("(max-width: 960px)").matches){var o=i(".penci_navbar_mobile");o.hasClass("hide-scroll-down")||(l=o.height()+30)}else{var r=i(".penci_builder_sticky_header_desktop");r.length&&!r.hasClass("hide-scroll-down")&&(l=r.height()+30)}i("body").hasClass("admin-bar")&&(l+=32);var d=s-l;i("html,body").animate({scrollTop:d},"fast")}})},a.SmartLists=function(){i(".pcsml-dropdown").each(function(){var e=i(this);e.on("change",function(){var e=this.value,a=window.location.href;e!=a&&e!==void 0&&(window.location.href=e)})})},a.Single_Loadmore=function(){var e=i(".penci-single-infiscroll");if(e.length){var t=e.data("infiads");i(window).on("scroll",i.debounce(250,function(){var n=e.find(".penci-single-block").last(),s=i(window).scrollTop(),l=n.offset().top,o=n.data("prev-url");n.hasClass("penci-single-infiblock-end")&&i(".penci-ldsingle").remove(),!(s>l)||"undefined"==typeof o||""==typeof o||n.hasClass("penci-single-infiblock-end")||e.hasClass("penci-disable-sendajax")||(e.addClass("penci-disable-sendajax"),i.ajax({url:o,type:"GET",dataType:"html",success:function(n){var s=i(i(n).find(".penci-single-wrapper").html()).css("opacity",0).animate({opacity:1},300);if("undefined"!=typeof t&&""!=typeof t&&e.append(t),e.append(s),s.find(".penci_facebook_widget").length)try{FB.XFBML.parse()}catch(e){}e.removeClass("penci-disable-sendajax"),a.featured_slider(),a.owl_slider(),a.fitvids(),a.sticky_sidebar(),a.lightbox(),a.masonry(),a.portfolio(),a.gallery(),a.Jarallax(),a.extraFunction.init(),a.VideosList.init(),a.JumtoRecipe(),a.shareexpand(),a.videofloat();var l=i(".penci-review-process"),o=i(".penci-piechart");l.length&&i(".penci-review-process").each(function(){var e=i(this),a=e.children(),t=10*a.data("width");e.one("inview",function(){a.animate({width:t+"%"},1e3)})}),o.length&&i(".penci-piechart").each(function(){var e=i(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)})}),i("body").trigger("single_loaded_more")}}))})),i(window).bind("scroll touchstart",function(){var e=i(this).scrollTop(),a=i(".penci-single-block");window.setTimeout(function(){var t=i(".penci-single-block"),n=window.location.href,s=t.map(function(){if(i(this).offset().top<e+60)return this});s=s[s.length-1];var l=i(s).data("postid"),o=i(s).data("current-url"),r=i(s).data("post-title"),d=i(s).data("edit-post");("undefined"==typeof l||""==typeof l)&&(l=a.data("postid"),o=a.data("current-url"),r=a.data("post-title"),d=a.data("edit-post")),n!==o&&(window.history.pushState({pageTitle:r},"",o),i("#wpadminbar").length&&i("#wp-admin-bar-edit a").attr("href",d),i("title").length&&i("title").each(function(){i(this).text(r)}),"undefined"!=typeof _gaq&&null!==_gaq&&_gaq.push(["_trackPageview",o]),"undefined"!=typeof ga&&null!==ga&&ga("send","pageview",o))},100)})}},i(document).ready(function(){a.general(),a.cookie(),a.main_sticky(),a.featured_slider(),a.slick_slider(),a.owl_slider(),a.fitvids(),a.sticky_sidebar(),a.mega_menu(),a.mobile_menu(),a.toggleMenuHumburger(),a.lightbox(),a.masonry(),a.video_background(),a.portfolio(),a.gallery(),a.Jarallax(),a.RelatedPopup(),a.extraFunction.init(),a.VideosList.init(),a.JumtoRecipe(),a.Single_Loadmore(),a.fontsizeChanger(),setTimeout(function(){a.shareexpand()},100),a.categories_lists(),a.blockheadinglist(),a.SmartLists(),a.videofloat(),i("body").on("penci-block-heading",function(){a.blockheadinglist()}).on("penci-image-gallery",function(){a.slick_slider()}),i("body").on("el_featured_slider",function(){a.slick_slider(),a.featured_slider()}),i("body").on("slider-load",function(){a.owl_slider()}),i("body").on("penci_swiper_sliders",function(){a.owl_slider(),a.slick_slider()}),i(document).on("pajax-tab-loaded",function(){a.owl_slider()}),i(window).on("resize",function(){a.sticky_sidebar(),a.blockheadinglist(),a.fontsizeChanger(),a.videofloat(),setTimeout(function(){a.shareexpand()},100)}),i(document).on("penci-mega-loaded",function(){a.featured_slider(),a.owl_slider(),a.fitvids(),a.lightbox(),a.masonry(),a.portfolio(),a.gallery(),a.extraFunction.init(),a.VideosList.init()})})}(jQuery);