PageSourceSearch

https://www.toxicempathy.com/wp-content/plugins/powerpack-elements…/min/frontend-testimonials.min.js?ver=3.0.4

js toxicempathy.com collected 2026-09-24 15:16:13 UTC 5,158 bytes, 1 lines download raw bytes

1!function(a){a(window).on("elementor/frontend/init",()=>{class e extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{testimonials:".pp-testimonials",testimonialsWrap:".pp-testimonials-wrap",swiperSlide:".pp-testimonial-slide"},slidesPerView:{widescreen:3,desktop:3,laptop:3,tablet_extra:3,tablet:2,mobile_extra:2,mobile:1}}}getDefaultElements(){var e=this.getSettings("selectors");return{$testimonials:this.$element.find(e.testimonials),$testimonialsWrap:this.$element.find(e.testimonialsWrap),$swiperSlide:this.$element.find(e.swiperSlide)}}getSlidesCount(){return this.elements.$swiperSlide.length}getDeviceSlidesPerView(e){var t="slides_per_view"+("desktop"===e?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getSliderSettings(t)||this.getSettings("slidesPerView")[e])}getDeviceSlidesToScroll(e){e="slides_to_scroll"+("desktop"===e?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getSliderSettings(e)||1)}getCenterPadding(e){e=elementorFrontend.utils.controls.getResponsiveControlValue(this.getSliderSettings(),"center_padding","size",e);return parseFloat(e)||0}getSpaceBetween(e){e=this.getSliderSettings("space_between"+("desktop"===e?"":"_"+e));return undefined!==e&&""!==e&&parseInt(e,10)||0}getSliderSettings(e){var t=undefined!==this.elements.$testimonialsWrap.data("slider-settings")?this.elements.$testimonialsWrap.data("slider-settings"):"";return void 0!==e&&"undefined"!==t[e]?t[e]:t}getSwiperOptions(){const s=this.getSliderSettings();var e,t=!!s.fade,i={slidesPerView:t?1:this.getDeviceSlidesPerView("desktop"),slidesPerGroup:t?1:this.getDeviceSlidesToScroll("desktop"),spaceBetween:this.getSpaceBetween("desktop"),speed:s.speed,loop:!!s.loop,effect:t?"fade":"slide",direction:s.vertical?"vertical":"horizontal",grabCursor:!0,watchSlidesProgress:!0,handleElementorBreakpoints:!0};if(t&&(i.fadeEffect={crossFade:!0}),s.center_mode&&(i.centeredSlides=!0,e=this.getCenterPadding("desktop"))&&(i.slidesOffsetBefore=e,i.slidesOffsetAfter=e),s.arrows&&(i.navigation={prevEl:".pp-arrow-prev-"+this.getID(),nextEl:".pp-arrow-next-"+this.getID()}),s.dots&&(i.pagination={el:".pp-testimonials-pagination-"+this.getID(),type:"bullets",clickable:!0}),!t){const n={},o=elementorFrontend.config.responsive.activeBreakpoints;Object.keys(o).forEach(e=>{var t=o[e].value;n[t]={slidesPerView:this.getDeviceSlidesPerView(e),slidesPerGroup:this.getDeviceSlidesToScroll(e),spaceBetween:this.getSpaceBetween(e)},s.center_mode&&(e=this.getCenterPadding(e))&&(n[t].slidesOffsetBefore=e,n[t].slidesOffsetAfter=e)}),i.breakpoints=n}return!this.isEdit&&s.autoplay&&(i.autoplay={delay:s.autoplay_speed||3e3,disableOnInteraction:!1}),i}bindEvents(){const e=this.elements.$testimonials.data("layout"),t=this.getElementSettings();"carousel"!==e&&"slideshow"!==e||this.initSlider().then(()=>{"slideshow"===e&&"yes"===t.thumbnail_nav&&this.thumbsNav(),this.applyVerticalHeight(),this.ppWidgetUpdate(),this.widgetResize()}),"masonry"===e&&this.initMasonryLayout()}initMasonryLayout(){const e=this;this.masonry=new PPMasonry({container:this.elements.$testimonials[0],itemSelector:".pp-grid-item-wrap"}),this.masonry.observeResize(),this.elements.$testimonials.imagesLoaded(function(){e.masonry.setReady(),e.masonry.layout()}),this.elements.$testimonials.find("img").on("load",function(){e.masonry.layoutIfReady()})}onElementChange(){this.masonry&&"masonry"===this.elements.$testimonials.data("layout")&&setTimeout(()=>this.masonry.layout())}onDestroy(){this.masonry&&this.masonry.destroy(),super.onDestroy&&super.onDestroy()}async initSlider(){var e=elementorFrontend.utils.swiper;this.swiper=await new e(this.elements.$testimonials,this.getSwiperOptions())}applyVerticalHeight(){if(this.swiper&&"vertical"===this.swiper.params.direction){const i=this.elements.$testimonials,n=this.elements.$swiperSlide,o=this.swiper;var e=()=>{i.css("height",""),n.css("height","");let t=0;var e,s;n.each(function(){var e=a(this).outerHeight();e>t&&(t=e)}),t&&(e=parseFloat(o.params.slidesPerView)||1,s=parseFloat(o.params.spaceBetween)||0,s=t*e+s*Math.max(0,e-1),i.css("height",s+"px"),o.update())};i.imagesLoaded(e),o.on("resize",e),o.on("breakpoint",e)}}thumbsNav(){const e=this.$element.find(".pp-testimonials-thumb-item-wrap"),s=this.swiper;e.removeClass("pp-active-slide"),e.eq(0).addClass("pp-active-slide"),s.on("slideChange",function(){e.removeClass("pp-active-slide"),e.eq(s.realIndex).addClass("pp-active-slide")}),e.each(function(t){a(this).on("click",function(e){e.preventDefault(),s.slideToLoop?s.slideToLoop(t):s.slideTo(t)})})}widgetResize(){var e=this.elements.$testimonialsWrap;const t=this.swiper;elementorFrontend.isEditMode&&"undefined"!=typeof ResizeObserver&&e[0]&&new ResizeObserver(function(){t.update(
1)}).observe(e[0])}ppWidgetUpdate(){const i=this.swiper;["ppe-tabs-switched","ppe-toggle-switched","ppe-accordion-switched","ppe-popup-opened"].forEach(function(s){void 0!==s&&a(document).on(s,function(e,t){0<(t="ppe-popup-opened"==s?a(".pp-modal-popup-"+t):t).find(".pp-testimonials").length&&setTimeout(function(){i.update()},100)})})}}elementorFrontend.elementsHandler.attachHandler("pp-testimonials",e)})}(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.