PageSourceSearch

https://www.foxcharleston.com/wp-content/plugins/powerpack-element…/js/min/frontend-posts.min.js?ver=3.1.0

js foxcharleston.com collected 2026-10-03 21:38:48 UTC 24,250 bytes, 1 lines download raw bytes

1!function(d){d(window).on("elementor/frontend/init",()=>{class i extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{swiperContainer:".pp-swiper-slider",swiperSlide:".swiper-slide",postsContainer:".pp-posts-container",posts:".pp-posts",couponsContainer:".pp-coupons",couponsGrid:".pp-coupons-grid-wrapper",coupon:".pp-coupon",filters:".pp-post-filters",filtersDropdown:".pp-post-filters-dropdown"},slidesPerView:{widescreen:3,desktop:3,laptop:3,tablet_extra:3,tablet:2,mobile_extra:2,mobile:1},effect:"slide"}}getDefaultElements(){var e=this.getSettings("selectors");return{$swiperContainer:this.$element.find(e.swiperContainer),$swiperSlide:this.$element.find(e.swiperSlide),$postsContainer:this.$element.find(e.postsContainer),$posts:this.$element.find(e.posts),$couponsContainer:this.$element.find(e.couponsContainer),$couponsGrid:this.$element.find(e.couponsGrid),$coupon:this.$element.find(e.coupon),$filters:this.$element.find(e.filters),$filtersDropdown:this.$element.find(e.filtersDropdown)}}getSliderSettings(e){var t=this.elements.$swiperContainer&&this.elements.$swiperContainer.length&&undefined!==this.elements.$swiperContainer.data("slider-settings")?this.elements.$swiperContainer.data("slider-settings"):"";return void 0!==e&&"undefined"!==t[e]?t[e]:t}getSlidesCount(){return this.elements.$swiperSlide.length}getEffect(){return this.getSliderSettings("effect")||this.getSettings("effect")}getLayout(){let e=undefined!==this.elements.$posts.data("layout")?this.elements.$posts.data("layout"):"grid";return e="pp-coupons"===this.getWidgetType()?this.getElementSettings("layout"):e}getDeviceSlidesPerView(e){let t=+this.getSliderSettings("slides_per_view"+("desktop"===e?"":"_"+e));if(!(t=this.isEdit&&(s="columns"+("desktop"===e?"":"_"+e),i="function"==typeof this.get
1Skin?this.getSkin():"",i=this.getElementSettings(s)||(i?this.getElementSettings(i+"_"+s):null)||("desktop"===e?this.getElementSettings("columns"):null))?+i:t)){if("widescreen"===e||"laptop"===e||"tablet_extra"===e)return this.getDeviceSlidesPerView("desktop");if("mobile_extra"===e)return this.getDeviceSlidesPerView("tablet")}var s=this.getSlidesCount(),i=t||this.getSettings("slidesPerView")[e];return s?Math.min(s,i):i}getSlidesPerView(e){return"slide"===this.getEffect()?this.getDeviceSlidesPerView(e):1}getDeviceSlidesToScroll(e){e="slides_to_scroll"+("desktop"===e?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getSliderSettings(e)||1)}getSlidesToScroll(e){return"slide"===this.getEffect()?this.getDeviceSlidesToScroll(e):1}getSpaceBetween(e){return e&&"desktop"!==e&&0,elementorFrontend.utils.controls.getResponsiveControlValue(this.getSliderSettings(),"space_between","size",e)||0}getSwiperOptions(){var e=this.getSliderSettings(),t=this.prefersReducedMotion(),s={slidesPerView:this.getSlidesPerView("desktop"),slidesPerGroup:this.getSlidesToScroll("desktop"),spaceBetween:this.getSpaceBetween(),loop:e.loop,centeredSlides:"yes"===e.centered_slides,speed:t?0:e.speed,autoHeight:!0,effect:this.getEffect(),watchSlidesVisibility:!0,watchSlidesProgress:!0,preventClicksPropagation:!1,slideToClickedSlide:!0,handleElementorBreakpoints:!0,keyboard:{enabled:!0,onlyInViewport:!0},a11y:{enabled:!0,..."undefined"!=typeof ppPostsScript&&ppPostsScript.i18n?ppPostsScript.i18n:{}}};if("fade"===this.getEffect()&&(s.fadeEffect={crossFade:!0}),e.show_arrows&&(s.navigation={prevEl:this.isEdit?".elementor-swiper-button-prev":".swiper-button-prev-"+this.getID(),nextEl:this.isEdit?".elementor-swiper-button-next":".swiper-button-next-"+this.getID()}),e.pagination&&(s.pagination={el:".swiper-pagination-"+this.getID(),type:e.pagination,clickable:!0}),"cube"!==this.getEffect()){const i={},n=elementorFrontend.config.responsive.activeBreakpoints;Object.keys(n).forEach(e=>{i[n[e].value]={slidesPerView:this.getSlidesPerView(e),slidesPerGroup:this.getSlidesToScroll(e)},this.getSpaceBetween(e)&&(i[n[e].value].spaceBetween=this.getSpaceBetween(e))}),s.breakpoints=i}return this.isEdit||!e.autoplay||t||(s.autoplay={delay:e.autoplay_speed,disableOnInteraction:!!e.pause_on_interaction}),s}bindEvents(){var e=this.$element.find(".pp-post-filters-container").data("search-form");"carousel"!==this.getLayout()&&("masonry"===this.getLayout()&&this.initMasonryLayout(),this.elements.$posts.hasClass("pp-posts-skin-checkerboard")&&this.elements.$posts.hasClass("pp-posts-height-auto")&&this.$element.hasClass("pp-equal-height-yes")&&this.setEqualHeightCheckerboard(),this.setPostsCount(1),this.initFilters(),"show"===e&&this.get
1SearchForm(),this.initLoadMore(),this.initNumberedPagination(),this.initInfiniteScroll()),"carousel"===this.getLayout()&&this.initSlider(),"pp-coupons"===this.getWidgetType()&&this.onCouponClick()}initMasonryLayout(){if(this.elements.$posts&&this.elements.$posts.length){const e=this;this.masonry=new PPMasonry({container:this.elements.$posts[0],itemSelector:".pp-grid-item-wrap"}),this.masonry.observeResize(),this.$element.imagesLoaded(function(){e.masonry.setReady(),e.masonry.layout()}),this.elements.$posts.find("img").on("load",function(){e.masonry.layoutIfReady()})}}onElementChange(e){var t=this.getLayout();"masonry"===t?this.masonry&&setTimeout(()=>this.masonry.layout()):"carousel"===t&&(!e||-1===e.indexOf("columns")&&"layout"!==e?this.swiper&&(t=this.elements.$posts&&this.elements.$posts.length?this.elements.$posts[0]:this.elements.$couponsContainer&&this.elements.$couponsContainer.length?this.elements.$couponsContainer[0]:this.$element&&this.$element.length?this.$element[0]:null)&&(e=parseFloat(getComputedStyle(t).getPropertyValue("--grid-column-gap"))||0,this.swiper.params.spaceBetween=e,this.swiper.update()):(t=this.getSettings("selectors"),this.$element.find(t.swiperContainer).length&&this.initSlider()))}onDestroy(){this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null),this.masonry&&this.masonry.destroy(),super.onDestroy&&super.onDestroy()}initFilters(){const i=this,t=(this.elements.$filters.find(".pp-post-filter").off("click").on("click",function(){d(this).siblings().removeClass("pp-filter-current").attr("aria-selected","false").attr("tabindex","-1"),d(this).addClass("pp-filter-current").attr("aria-selected","true").attr("tabindex","0");var e,t=d(this).clone().children().remove().end().text().trim();0<i.elements.$couponsContainer.length?i.couponFilterName=t:(e="undefined"!=typeof ppPostsScript&&ppPostsScript.filter_status?ppPostsScript.filter_status:"Showing posts for %s",i.$element.find(".pp-posts-status").text(e.replace("%s",t))),0<i.elements.$filtersDropdown.length&&(t=d(this).data("filter"),(e=i.elements.$filtersDropdown.find('li[data-filter="'+t+'"]')).siblings().removeClass("pp-filter-current").attr("aria-selected","false").attr("tabindex","-1"),e.addClass("pp-filter-current").attr("aria-selected","true").attr("tabindex","0"),i.setDropdownLabel(d(this))),0<i.elements.$couponsContainer.length?i.postsFilterAjax(i,d(this),"coupon"):i.postsFilterAjax(i,d(this),"")}),this.elements.$filters.find(".pp-post-filter").off("keydown").on("keydown",function(e){var t=i.elements.$filters.find(".pp-post-filter"),s=t.index(this),s={ArrowRight:s+1,ArrowDown:s+1,ArrowLeft:s-1,ArrowUp:s-1,Home:0,End:t.length-1};e.key in s?(e.preventDefault(),s=t.eq((s[e.key]+t.length)%t.length),t.attr("tabindex","-1"),s.attr("tabindex","0").trigger("focus")):"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d(this).trigger("click"))}),this.elements.$filters.off("focusout.ppTabs").on("focusout.ppTabs",function(e){this.contains(e.relatedTarget)||d(this).find(".pp-post-filter").attr("tabindex","-1").filter(".pp-filter-current").attr("tabindex","0")}),this.elements.$filtersDropdown.find(".pp-post-filters-dropdown-button")),n=this.elements.$filtersDropdown.find(".pp-post-filters-dropdown-list"),s=()=>{var e=n.find(".pp-filter-current");(e.length?e:n.find('[role="option"]')).first().trigger("focus")},o=e=>{n.hide(),t.attr("aria-expanded","false"),e&&t.trigger("focus")};t.off("click keydown").on("click",function(){var e=!n.is(":visible");n.toggle(e),d(this).attr("aria-expanded",e?"true":"false"),e&&s()}).on("keydown",function(e){"Enter"===e.key||" "===e.key?(e.preventDefault(),d(this).trigger("click")):"ArrowDown"===e.key&&(e.preventDefault(),n.is(":visible")?s():d(this).trigger("click"))}),n.off("keydown").on("keydown",'[role="option"]',function(e){var t=n.find('[role="option"]'),s=t.index(this),s={ArrowDown:Math.min(s+1,t.length-1),ArrowUp:Math.max(s-1,0),Home:0,End:t.length-1};e.key in s?(e.preventDefault(),t.eq(s[e.key]).trigger("focus")):"Enter"===e.key||" "===e.key?(e.preventDefault(),d(this).trigger("click")):"Escape"===e.key?(e.preventDefault(),o(!0)):"Tab"===e.key&&o(!1)}),this.elements.$filtersDropdown.find(".pp-post-filters-dropdown-item").off("click").on("click",function(){d(this).siblings().removeClass("pp-filter-current").attr("aria-selected","false").attr("tabindex","-1"),d(this).addClass("pp-filter-current").attr("aria-selected","true").attr("tabindex","0"),i.setDropdownLabel(d(this)),0<i.elements.$couponsContainer.length&&(i.couponFilterName=d(this).clone().children().remove().end().text().trim()),o(0<n.length&&n[0].contains(document.activeElement));var e=d(this).data("filter"),e=i.elements.$filters.find('li[data-filter="'+e+'"]');e.siblings().removeClass("pp-filter-current").attr("aria-selected","false").attr("tabindex","-1"),e.addClass("pp-filter-current").attr("aria-selected","true").attr("tabindex","0"),0<i.elements.$couponsContainer.length?
1i.postsFilterAjax(i,d(this),"coupon"):i.postsFilterAjax(i,d(this),"")}),(0<this.elements.$filters.length||0<this.elements.$filtersDropdown.length)&&(this.initFiltersOnHashChange(i),d(window).on("hashchange",function(){this.initFiltersOnHashChange(i)}.bind(this)))}initFiltersOnHashChange(e){var t;""!==location.hash&&(t=location.hash.split("#")[1],e.elements.$filters.find('li[data-filter=".'+t+'"]').trigger("click"),0<e.elements.$filtersDropdown.length)&&e.elements.$filtersDropdown.find('li[data-filter=".'+t+'"]').trigger("click")}getSearchForm(){const e=this.$element.find(".pp-search-form-input"),t=this.$element.find(".pp-post-filters-container").data("search-action"),s=this;e.on({focus:function(){s.$element.find(".pp-search-form").addClass("pp-search-form-focus")},blur:function(){s.$element.find(".pp-search-form").removeClass("pp-search-form-focus")}}),"instant"==t?this.$element.find(".pp-search-form-input").keyup(function(s,i){let n;return i=i||100,function(){clearTimeout(n);let e=arguments,t=this;n=setTimeout(function(){s.apply(t,e)},i)}}(function(){s.postsSearchAjax(s)})):"button-click"==t&&this.$element.find(".pp-search-form-submit").on("click",function(){s.postsSearchAjax(s)})}initNumberedPagination(){const a=this;d("body").on("click",".pp-posts-pagination-ajax .page-numbers",function(s){var i=d(this).closest(".elementor-widget-pp-posts"),n=d(this).closest(".elementor-widget-pp-coupons");let o=0<n.length?n:i,r=o.find(".pp-post-wrap").last(),e=o.find(".pp-posts"),p=e.data("page");if(0<n.length&&(r=n.find(".pp-coupon").last(),e=n.find(".pp-coupons-grid-wrapper"),p=e.data("page")),"main"!=e.data("query-type")){s.preventDefault(),r.after('<div class="pp-post-loader"><div class="pp-loader"></div><div class="pp-loader-overlay"></div></div>');let e=1,t=parseInt(o.find(".pp-posts-pagination .page-numbers.current").html());e=d(this).hasClass("next")?t+1:d(this).hasClass("prev")?t-1:d(this).html();i={page_id:p,widget_id:a.getID(),filter:o.find(".pp-filter-current").data("filter"),taxonomy:o.find(".pp-filter-current").data("taxonomy"),page_number:e,ajax_for:""};0<n.length?(i.ajax_for="coupon",d("html, body").animate({scrollTop:n.find(".pp-coupons-grid").offset().top-30},a.prefersReducedMotion()?0:"slow"),i.restore_focus=!0):(i.skin=o.find(".pp-posts").data("skin"),d("html, body").animate({scrollTop:o.find(".pp-posts-container").offset().top-30},"slow")),a.callAjax(a,i)}})}initLoadMore(){const l=this;this.loadStatus=!0,l.$element.off("keydown.ppLoadMore").on("keydown.ppLoadMore",'.pp-post-load-more[role="button"]',function(e){" "===e.key&&(e.preventDefault(),d(this).trigger("click"))}),l.$element.on("click",".pp-post-load-more",function(e){var t=d(this).closest(".elementor-widget-pp-posts"),s=d(this).closest(".elementor-widget-pp-coupons");if(e.preventDefault(),elementorFrontend.isEditMode())return n.show(),coupon_loader.show(),!1;let i=0<s.length?s:t,n=i.find(".pp-posts-loader"),o=l.getPostsCount(),r=i.find(".pp-filter-current").data("filter"),p=i.find(".pp-filter-current").data("taxonomy"),a=i.find(".pp-posts").data("page");e={page_id:a=0<s.length?s.find(".pp-coupons-grid-wrapper").data("page"):a,widget_id:l.getID(),filter:void 0!==r&&r?r:"",taxonomy:void 0!==p&&p?p:"",page_number:o+1,ajax_for:""};0<s.length?(e.ajax_for="coupon",e.restore_focus=!0):e.skin=i.find(".pp-posts").data("skin"),l.total=i.find(".pp-posts-pagination").data("total"),1==l.loadStatus&&o<l.total&&(n.show(),d(this).hide(),l.callAjax(l,e,!0,o),l.loadStatus=!1)})}initInfiniteScroll(){let o=this,r=1,p=this.$element.find(".pp-posts-loader");if(this.loadStatus=!0,this.elements.$postsContainer.hasClass("pp-posts-infinite-scroll")||this.elements.$couponsContainer.hasClass("pp-coupons-infinite-scroll")){let n=jQuery(window).outerHeight()/1.25;d(window).scroll(function(){if(elementorFrontend.isEditMode())return p.show(),!1;let e=o.$element,t=o.elements.$posts,s=e.find(".pp-post:last");o.elements.$couponsContainer.hasClass("pp-coupons-infinite-scroll")&&(t=o.elements.$couponsGrid,s=e.find(".pp-coupon:last"));var i={page_id:t.data("page"),widget_id:o.getID(),filter:e.find(".pp-filter-current").data("filter"),taxonomy:e.find(".pp-filter-current").data("taxonomy"),page_number:e.find(".page-numbers.current").next("a").html(),ajax_for:""};o.total=e.find(".pp-posts-pagination").data("total"),d(window).scrollTop()+n>
1=s.offset().top&&(o.elements.$couponsContainer.hasClass("pp-coupons-infinite-scroll")?i.ajax_for="coupon":i.skin=e.find(".pp-posts").data("skin"),1==o.loadStatus)&&r<o.total&&(p.show(),o.callAjax(o,i,!0),r++,o.loadStatus=!1)})}}postsFilterAjax(e,t,s){let i=this.elements.$posts.find(".pp-post-wrap").last(),n=this.elements.$posts.data("page");"coupon"===s&&(i=this.elements.$couponsGrid.find(".pp-coupon").last(),n=this.elements.$couponsGrid.data("page")),i.after('<div class="pp-posts-loader-wrap"><div class="pp-loader"></div><div class="pp-loader-overlay"></div></div>');t={page_id:n,widget_id:this.getID(),filter:t.data("filter"),taxonomy:t.data("taxonomy"),page_number:1,ajax_for:""};"coupon"===s?t.ajax_for="coupon":t.skin=this.$element.find(".pp-posts").data("skin"),this.callAjax(e,t)}postsSearchAjax(e){this.$element.find(".pp-posts .pp-grid-item-wrap").last().after('<div class="pp-posts-loader-wrap"><div class="pp-loader"></div><div class="pp-loader-overlay"></div></div>');var t={page_id:this.$element.find(".pp-posts").data("page"),widget_id:this.$element.data("id"),search:this.$element.find(".pp-search-form-input").val(),page_number:1};this.callAjax(e,t)}callAjax(o,r,p,a){let l=this.$element.find(".pp-posts-loader");this.$element.find(".pp-post-load-more").attr("aria-busy","true"),d.ajax({url:ppPostsScript.ajax_url,data:{action:"pp_get_post",page_id:r.page_id,widget_id:r.widget_id,category:r.filter,search:r.search,taxonomy:r.taxonomy,skin:r.skin,page_number:r.page_number,ajax_for:r.ajax_for,nonce:ppPostsScript.posts_nonce},dataType:"json",type:"POST",success:function(e){let t=o.elements.$postsContainer,s=t.find(".pp-posts");"coupon"===r.ajax_for&&(t=o.elements.$couponsContainer,s=t.find(".pp-coupons-grid-wrapper"));var i=s.children(".pp-coupon").length,n=t.find(".pp-posts-empty");n.remove(),0==d(n).length&&d(e.data.not_found).insertBefore(s),1==p?(n=e.data.html,s.append(n)):s.html(e.data.html),t.find(".pp-posts-pagination-wrap").html(e.data.pagination),o.loadStatus=!0,1==p&&(l.hide(),t.find(".pp-post-load-more").show()),o.setPostsCount(r.page_number),"coupon"!==r.ajax_for&&"masonry"==t.find(".pp-posts").data("layout")&&o.masonry&&t.imagesLoaded(function(){o.masonry.setReady(),o.masonry.layout()}),(a+=1)==o.total&&t.find(".pp-post-load-more").hide(),o.$element.find(".pp-post-load-more").attr("aria-busy","false"),"coupon"===r.ajax_for?o.afterCouponsLoaded(s,r,p,i):(n="undefined"!=typeof ppPostsScript&&ppPostsScript.posts_loaded?ppPostsScript.posts_loaded:"New posts loaded",i=(e=s.find(".pp-post-title, .pp-coupon-title").first().text().trim())?n+": "+e:n,o.$element.find(".pp-posts-status").text(i)),o.$element.trigger("posts.rendered",[o.$element])}}).done(function(){o.$element.find(".pp-post-load-more").attr("aria-busy","false"),0<o.$element.find(".elementor-invisible").length&&o.$element.find(".elementor-invisible").removeClass("elementor-invisible")})}setEqualHeightCheckerboard(){var e=elementorFrontend.config.breakpoints;let t=0,s="auto";this.$element.find(".pp-post-wrap").each(function(){d(this).find(".pp-post-content").outerHeight()>t&&(t=d(this).find(".pp-post-content").outerHeight())}),d(window).width()>=e.md&&(s=t),this.$element.find(".pp-post-wrap").css("height",s)}setPostsCount(e){this.$element.find(".pp-post-load-more").attr("data-count",e)}getPostsCount(){return this.$element.find(".pp-post-load-more").data("count")}prefersReducedMotion(){return!(!window.matchMedia||!window.matchMedia("(prefers-reduced-motion: reduce)").matches)}announce(e,t){e.text(""),setTimeout(()=>{e.text(t)},100)}setDropdownLabel(e){var t=this.elements.$filtersDropdown.find(".pp-post-filters-dropdown-button"),s=t.find(".pp-post-filters-dropdown-label");s.length?s.text(e.clone().children().remove().end().text().trim()):t.html(e.html())}afterCouponsLoaded(t,e,s,i){var n="undefined"!=typeof ppPostsScript?ppPostsScript:{},o=t.children(".pp-coupon");let r=(n.coupons_loaded||"Coupons shown: %s").replace("%s",o.length);this.couponFilterName&&(r=(n.coupons_filter_status||"Showing coupons for %s").replace("%s",this.couponFilterName)+". "+r,this.couponFilterName=""),this.announce(this.$element.find(".pp-posts-status"),r);n=this.elements.$filters.find(".pp-filter-current").attr("id");if(n&&this.elements.$couponsContainer.attr("aria-labelledby",n),e.restore_focus){let e=s?o.eq(i):o.first();(e=e.length?e:t).attr("tabindex","-1").one("blur",function(){d(this).removeAttr("tabindex")}),e[0].focus()}}copyCouponText(e){return navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e)["catch"](()=>this.copyCouponTextFallback(e)):this.copyCouponTextFallback(e)}copyCouponTextFallback(r){return new Promise((e,t)=>
1{var s=document.activeElement,i=document.createElement("textarea");let n=!1;i.value=r,i.setAttribute("readonly",""),i.className="elementor-screen-only",document.body.appendChild(i),i.select();try{n=document.execCommand("copy")}catch(o){n=!1}i.remove(),s&&s.focus&&s.focus({preventScroll:!0}),(n?e:t)()})}onCouponClick(){const e=this;this.$element.off(".ppCoupon").on("keydown.ppCoupon",'.pp-coupon-code[role="button"]',function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d(this).trigger("click"))}).on("click.ppCoupon",'.pp-coupon-code[role="button"]',function(){e.copyCoupon(d(this))})}copyCoupon(t){const s=this.getElementSettings(),i="undefined"!=typeof ppPostsScript?ppPostsScript:{},n=String(t.attr("data-coupon-code")||""),o=s.coupon_copied_text||i.copied_text||"Copied",r=this.$element.find(".pp-coupon-status"),p=this.prefersReducedMotion(),a=()=>{const e=t.find(".pp-coupon-copy-text");t.addClass("pp-copied"),p?e.text(o).show():e.fadeOut(()=>{e.text(o).fadeIn()})},l=()=>{t.find(".pp-coupon-code-text-wrap").removeClass("pp-unreavel").removeAttr("aria-hidden"),t.find(".pp-coupon-code-text").text(n),t.find(".pp-coupon-reveal-wrap").remove()},e=e=>{this.announce(r,e?(i.coupon_copied||"Coupon code %s copied to clipboard").replace("%s",n):i.coupon_copy_failed||"Could not copy the coupon code"),"reveal"!==s.coupon_style?e&&a():p?(l(),e&&a()):(t.find(".pp-coupon-reveal-wrap").css("transform","translate(200px, 0px)"),setTimeout(l,150),e&&setTimeout(a,500))};this.copyCouponText(n).then(()=>e(!0),()=>e(!1))}async initSlider(){this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null);var e=this.getSettings("selectors"),t=this.$element.find(e.swiperContainer);if(t.length){this.elements.$swiperContainer=t,this.elements.$swiperSlide=this.$element.find(e.swiperSlide);var t=this.getSliderSettings(),e=this.$element.find(".pp-posts").data("equal-height"),s=elementorFrontend.utils.swiper;if(this.swiper=await new s(this.elements.$swiperContainer,this.getSwiperOptions()),this.swiper){s=this.elements.$swiperContainer.closest(".swiper-container-wrap"),s=(this.$carouselWrap=s.length?s:this.elements.$swiperContainer,!(!this.swiper.params.autoplay||!this.swiper.params.autoplay.enabled)),t=t.pause_on_hover||this.getElementSettings("pause_on_hover");s&&"yes"===t&&this.togglePauseOnHover(!0),s&&!this.isEdit&&this.togglePauseOnFocus(!0),this.updateSlideA11y(),this.swiper.on("slideChangeTransitionEnd resize breakpoint",()=>{this.updateSlideA11y()}),this.syncCarouselLive(),this.swiper.on("autoplayStart autoplayStop",()=>{this.syncCarouselLive()});const i=()=>{if(this.swiper){var i=(this.swiper.realIndex!==undefined?this.swiper.realIndex:this.swiper.activeIndex)+1,n=this.elements.$swiperSlide.filter(":not(.swiper-slide-duplicate)").length||this.getSlidesCount();let e=(("undefined"!=typeof ppPostsScript&&ppPostsScript.i18n?ppPostsScript.i18n:{}).slideStatus||"Showing Slide %1$s of %2$s").replace("%1$s",i).replace("%2$s",n),t="",s=null;(s=this.swiper.slides&&this.swiper.slides[this.swiper.activeIndex]?d(this.swiper.slides[this.swiper.activeIndex]):s)&&s.length||!this.elements.$swiperContainer||(s=this.elements.$swiperContainer.find(".swiper-slide-active")),(t=s&&s.length&&(i=s.find(".pp-post-title, .pp-coupon-title").first()).length?i.text().trim():t)&&(e+=": "+t),this.$element.find(".pp-post-carousel-status, .pp-coupons-carousel-status").text(e)}};this.swiper.on("slideChange",i),this.swiper.on("slideChangeTransitionEnd",i),this.elements.$swiperContainer.on("click",".pp-slider-arrow, .elementor-swiper-button-prev, .elementor-swiper-button-next",()=>{setTimeout(()=>{i()},50)}),"yes"===e&&this.setEqualHeight()}}}togglePauseOnHover(e){var t=this.$carouselWrap||this.elements.$swiperContainer;t.off(".ppHover"),e&&t.on({"mouseenter.ppHover":()=>{this.isHovered=!0,this.swiper.autoplay.stop()},"mouseleave.ppHover":()=>{this.isHovered=!1,this.hasFocusWithin||this.swiper.autoplay.start()}})}togglePauseOnFocus(e){const t=this.$carouselWrap||this.elements.$swiperContainer;t.off(".ppFocus"),e&&t.on({"focusin.ppFocus":()=>{this.hasFocusWithin=!0,this.swiper&&this.swiper.autoplay&&this.swiper.autoplay.running&&this.swiper.autoplay.stop()},"focusout.ppFocus":e=>{e.relatedTarget&&t[0].contains(e.relatedTarget)||(this.hasFocusWithin=!1,!this.isHovered&&this.swiper&&this.swiper.autoplay&&!this.swiper.autoplay.running&&this.swiper.autoplay.start())}})}syncCarouselLive(){var e=!!(this.swiper&&this.swiper.autoplay&&this.swiper.autoplay.running);this.$element.find(".pp-post-carousel-status, .pp-coupons-carousel-status").attr("aria-live",e?"off":"polite")}updateSlideA11y(){this.swiper&&this.swiper.slides&&d(Array.prototype.slice.call(this.swiper.slides)).each(function(){var e=d(this);const s=!e.hasClass("swiper-slide-duplicate")&&(e.hasClass("swiper-slide-visible")||e.hasClass("swiper-slide-active"));s?e.removeAttr("aria-hidden"):e.attr("aria-hidden","true"),e.find("a[href], button, input, select, textarea, [tabindex]").each(function(){var e,t=d(this);undefined===t.attr("data-pp-tabindex")&&t.attr("data-pp-tabindex",t.attr("tabindex")||""),s?""===(e=t.attr("data-pp-tabindex"))?t.removeAttr("tabindex"):t.attr("tabindex",e):t.attr("tabindex","-1")})})}setEqualHeight(){let e=this.$element.find(".swiper-slide-visible"),t=-1;e.each(function(){var e=d(this).find(".pp-post").outerHeight();t<e&&(t=e)}),e.each(function(){d(this).find(".pp-post").animate({height:t},{duration:200,easing:"linear"})})}}d.each({posts:["default","classic","card","checkerboard","creative","event","news","portfolio","overlap","template"],coupons:""},function(s,e){"object"==typeof e?d.each(e,function(e,t){elementorFrontend.elementsHandler.attachHandler("pp-"+s,i,t)}):elementorFrontend.elementsHandler.attachHandler("pp-"+s,i)})})}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.