PageSourceSearch

https://rodephsholom.org/wp-content/plugins/all-in-one-video-galle…/assets/js/template-slider.min.js?ver=4.9.5

js rodephsholom.org collected 2026-10-02 04:20:55 UTC 19,394 bytes, 1 lines download raw bytes

1!function(i){"use strict";class e extends HTMLElement{constructor(){super(),this.$el=null,this.$videos=null,this.slick=null,this._isRendered=!1,this._params={},this._onAfterSlideChange=this._onAfterSlideChange.bind(this)}connectedCallback(){if(this._isRendered)return!1;this._isRendered=!0,this.$el=i(this).closest(".aiovg"),this.$videos=this.$el.find(".aiovg-slick"),this._params=this.$el.data("params"),this._initSlick(),this.slick.on("afterChange",this._onAfterSlideChange)}disconnectedCallback(){if(!this._isRendered)return!1;this.slick.off("afterChange",this._onAfterSlideChange)}_initSlick(){this.$el.addClass("aiovg-slick-initialized"),this.$videos.on("init",(i,e)=>{this.$el.find(".aiovg-slick-arrows").show(),e.options.maxDots&&o(i,e)}).slick({appendArrows:this.$el.find(".aiovg-slick-arrows"),prevArrow:this.$el.find(".aiovg-slick-prev"),nextArrow:this.$el.find(".aiovg-slick-next"),appendDots:this.$el.find(".aiovg-section-videos"),dotsClass:"aiovg-slick-dots",customPaging:(i,e)=>'<div class="aiovg-slick-dot" style="color: '+this._params.dot_color+"; font-size: "+this._params.dot_size+'" role="button">&#9679;</div>'}),this.slick=this.$videos;let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&this.$videos.hasClass("slick-initialized")&&(setTimeout(()=>this.$videos.slick("setPosition"),50),i.disconnect())});i.observe(this)}_onAfterSlideChange(i,e,t){e.options.maxDots&&n(i,e,t)}}class t extends HTMLElement{constructor(){super(),this.$el=null,this.$videos=null,this.$selectedVideo=null,this.slick=null,this.iframe=null;let i=window.aiovg_template_slider||window.aiovg_premium;this._isRendered=!1,this._params={},this._nowPlayingLabel='<div class="aiovg-now-playing">'+i.i18n.now_playing+"</div>",this._pageTopOffset=parseInt(i.scroll_to_top_offset),this._currentPageUrl=window.location.href,this._deeplinkParam="video",this._onAfterSlideChange=this._onAfterSlideChange.bind(this),this._onThumbnailClicked=this._onThumbnailClicked.bind(this),this._seekTo=this._seekTo.bind(this),this._onVideoEnded=this._onVideoEnded.bind(this),this._stopPropagation=this._stopPropagation.bind(this)}connectedCallback(){if(this._isRendered)return!1;this._isRendered=!0,this.$el=i(this).closest(".aiovg"),this.$videos=this.$el.find(".aiovg-slick"),this.$selectedVideo=this.$el.find(".aiovg-active"),this.iframe=this.$el.find(".aiovg-section-player iframe").get(0),this._params=this.$el.data("params"),this._params.deeplink_param&&(this._deeplinkParam=this._params.deeplink_param),this.$selectedVideo.find(".aiovg-responsive-container").append(this._nowPlayingLabel),this._initSlick(),this.slick.on("afterChange",this._onAfterSlideChange),this.$el.on("click",".aiovg-item-video",this._onThumbnailClicked),this.$el.on("click",".aiovg-item-video a",this._stopPropagation),this.$el.on("click",".aiovg-player-description .aiovg-chapter-timestamp",this._seekTo),window.addEventListener("message",this._onVideoEnded)}disconnectedCallback(){if(!this._isRendered)return!1;this.slick.off("afterChange",this._onAfterSlideChange),this.$el.off("click",".aiovg-item-video",this._onThumbnailClicked),this.$el.off("click",".aiovg-item-video a",this._stopPropagation),this.$el.off("click",".aiovg-player-description .aiovg-chapter-timestamp",this._seekTo),window.removeEventListener("message",this._onVideoEnded)}_initSlick(){this.$el.addClass("aiovg-slick-initialized"),this.$videos.on("init",(i,e)=>{this.$el.find(".aiovg-slick-arrows").show(),e.options.maxDots&&o(i,e)}).slick({appendArrows:this.$el.find(".aiovg-slick-arrows"),prevArrow:this.$el.find(".aiovg-slick-prev"),nextArrow:this.$el.find(".aiovg-slick-next"),appendDots:this.$el.find(".aiovg-section-videos"),dotsClass:"aiovg-slick-dots",customPaging:(i,e)=>'<div class="aiovg-slick-dot" style="color: '+this._params.dot_color+"; font-size: "+this._params.dot_size+'" role="button">&#9679;</div>'}),this.slick=this.$videos;let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&this.$videos.hasClass("slick-initialized")&&(setTimeout(()=>this.$videos.slick("setPosition"),50),i.disconnect())});i.observe(this)}_onAfterSlideChange(i,e,t){e.options.maxDots&&n(i,e,t)}_onThumbnailClicked(e){if(e.preventDefault(),this.$selectedVideo=i(e.currentTarget),this.$selectedVideo.hasClass("aiovg-active"))return!1;this.$el.find(".aiovg-active").removeClass("aiovg-active"),this.$selectedVideo.addClass("aiovg-active"),this.$el.find(".aiovg-now-playing").remove(),this.$selectedVideo.find(".aiovg-responsive-container").append(this._nowPlayingLabel);let t=this.$selectedVideo.data("id");if(this.iframe){let s=this.$selectedVideo.data("src");this.iframe.src=s}if(this._params.show_title){let a=this.$selectedVideo.find(".aiovg-hidden-title").get(0),o="";a&&(o="template"==a.tagName.toLowerCase()?a.content.cloneNode(!0):a.innerHTML),this.$el.find(".aiovg-player-title").html(o)}if(this._params.show_playlist_button&&this.$el.find("aiovg-playlist-button").replaceWith('<aiovg-playlist-button post_id="'+t+'"></aiovg-playlist-button>'),this._params.show_like_button&&this.$el.find("aiovg-like-button").replaceWith('<aiovg-like-button post_id="'+t+'"></aiovg-like-button>'),this._params.show_comment_button&&this.$el.find("aiovg-comment-button").html(this.$selectedVideo.find(".aiovg-hidden-comment-button").html()),this._params.show_description){let n=this.$selectedVideo.find(".aiovg-hidden-description").get(0),l="";n&&(l="template"==n.tagName.toLowerCase()?n.content.cloneNode(!0):n.innerHTML),this.$el.find(".aiovg-player-description").html(l)}if(i("html, body").animate({scrollTop:this.$el.offset().top-this._pageTopOffset},500),this._params.deeplinking){let r=new URL(this._currentPageUrl);/\/page\/\d+\/?$/.test(r.pathname)&&(r.pathname=r.pathname.replace(/\/page\/\d+\/?$/,i=>i.endsWith("/")?"/":"")),r.searchParams.set(this._deeplinkParam,t),window.history.replaceState(null,null,r.toString())}}_seekTo(e){if(!this.iframe)return!1;let t=parseInt(e.currentTarget.dataset.time);this.iframe.contentWindow.postMessage({message:"aiovg-video-seek",seconds:t},window.location.origin),i("html, body").animate({scrollTop:this.$el.offset().top-this._pageTopOffset},500)}_onVideoEnded(i){if(!this._params.autoadvance||i.origin!=window.location.origin||!this.iframe||i.source!=this.iframe.contentWindow||!i.data.hasOwnProperty("message"))return!1;"aiovg-video-ended"==i.data.message&&(this.$selectedVideo.is(":last-child")?this._params.loop&&this.$el.find(".aiovg-item-video").eq(0).trigger("click"):this.$selectedVideo.next(".aiovg-item-video").trigger("click"))}_stopPropagation(i){i.stopPropagation()}}class s extends HTMLElement{constructor(){super(),this.$el=null,this.$videos=null,this.$selectedVideo=null,this.slick=null,this.popup=null,this.iframe=null,this._isRendered=!1,this._params={},this._currentPageUrl=window.location.href,this._deeplinkParam="video",this._iframeMarkup="",this._onAfterSlideChange=this._onAfterSlideChange.bind(this),this._seekTo=this._seekTo.bind(this),this._onVideoEnded=this._onVideoEnded.bind(this),this._stopPropagation=this._stopPropagation.bind(this)}connectedCallback(){if(this._isRendered)return!1;this._isRendered=!0,this.$el=i(this).closest(".aiovg"),this.$videos=this.$el.find(".aiovg-slick"),this._params=this.$el.data("params"),this._params.deeplink_param&&(this._deeplinkParam=this._params.deeplink_param),this._initSlick();let e=Promise.resolve();i.fn.magnificPopup||"function"!=typeof window.aiovgLoadStyle||(e=window.aiovgLoadStyle({id:"all-in-one-video-gallery-magnific-popup-css",href:aiovg_public.plugin_url+"vendor/magnific-popup/magnific-popup.min.css?ver=1.2.0"}).then(()=>window.aiovgLoadScript({id:"all-in-one-video-gallery-magnific-popup-js",src:aiovg_public.plugin_url+"vendor/magnific-popup/magnific-popup.min.js?ver=1.2.0"}))),e.then(()=>{this._initMagnificPopup(),this.slick.on("afterChange",this._onAfterSlideChange),this.$el.on("click",".aiovg-item-video a",this._stopPropagation),window.addEventListener("message",this._onVideoEnded)}).catch(i=>{console.error("Failed to initialize Magnific Popup:",i)})}disconnectedCallback(){if(!this._isRendered)return!1;this.slick.off("afterChange",this._onAfterSlideChange),this.$el.off("click",".aiovg-item-video a",this._stopPropagation),window.removeEventListener("message",this._onVideoEnded)}_initSlick(){this.$el.addClass("aiovg-slick-initialized"),this.$videos.on("init",(i,e)=>{this.$el.find(".aiovg-slick-arrows").show(),e.options.maxDots&&o(i,e)}).slick({appendArrows:this.$el.find(".aiovg-slick-arrows"),prevArrow:this.$el.find(".aiovg-slick-prev"),nextArrow:this.$el.find(".aiovg-slick-next"),appendDots:this.$el.find(".aiovg-section-vi
1deos"),dotsClass:"aiovg-slick-dots",customPaging:(i,e)=>'<div class="aiovg-slick-dot" style="color: '+this._params.dot_color+"; font-size: "+this._params.dot_size+'" role="button">&#9679;</div>'}),this.slick=this.$videos;let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&this.$videos.hasClass("slick-initialized")&&(setTimeout(()=>this.$videos.slick("setPosition"),50),i.disconnect())});i.observe(this)}_initMagnificPopup(){let e="16 / 9",t=parseFloat(this._params.player_ratio);if(Number.isFinite(t)&&t>0&&(e=(100/t).toFixed(4)),this._iframeMarkup='<div class="mfp-title-bar"><div class="mfp-close"></div></div><div class="mfp-iframe-scaler" style="--aiovg-video-ratio: '+e+';"><iframe class="mfp-iframe" frameborder="0" scrolling="no" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe></div>',this._iframeMarkup+='<div class="mfp-bottom-bar mfp-prevent-close">',this._iframeMarkup+='<h2 class="mfp-title"></h2>',this._iframeMarkup+='<div class="aiovg-content-after-player aiovg-margin-top aiovg-hide-if-empty">',this._params.show_playlist_button&&(this._iframeMarkup+="<aiovg-playlist-button></aiovg-playlist-button>"),this._params.show_like_button&&(this._iframeMarkup+="<aiovg-like-button></aiovg-like-button>"),this._params.show_comment_button&&(this._iframeMarkup+="<aiovg-comment-button></aiovg-comment-button>"),this._iframeMarkup+="</div>",this._iframeMarkup+='<div class="mfp-description"></div>',this._iframeMarkup+="</div>",this.$videos.magnificPopup({type:"iframe",iframe:{markup:this._iframeMarkup},mainClass:"aiovg aiovg-template-slider aiovg-magnific-popup mfp-fade",delegate:".aiovg-item-video",allowHTMLInStatusIndicator:!0,allowHTMLInTemplate:!0,closeOnBgClick:!0,callbacks:{beforeOpen:()=>{this.popup=i.magnificPopup.instance},markupParse:(i,e,t)=>{if(this._params.show_title){let s=t.el.find(".aiovg-hidden-title").get(0),a="";s&&(a="template"==s.tagName.toLowerCase()?s.content.cloneNode(!0):s.innerHTML),e.title=a}if(this._params.show_description){let o=t.el.find(".aiovg-hidden-description").get(0),n="";o&&(n="template"==o.tagName.toLowerCase()?o.content.cloneNode(!0):o.innerHTML),e.description=n}},change:()=>{let i=this.popup.index;this.$selectedVideo=this.$el.find(".aiovg-item-video").eq(i);let e=this.$selectedVideo.data("id");if(this._params.show_playlist_button&&this.popup.content.find("aiovg-playlist-button").replaceWith('<aiovg-playlist-button post_id="'+e+'"></aiovg-playlist-button>'),this._params.show_like_button&&this.popup.content.find("aiovg-like-button").replaceWith('<aiovg-like-button post_id="'+e+'"></aiovg-like-button>'),this._params.show_comment_button&&this.popup.content.find("aiovg-comment-button").html(this.$selectedVideo.find(".aiovg-hidden-comment-button").html()),this.iframe=this.popup.content.find("iframe.mfp-iframe").get(0),this.popup.content.on("click",".mfp-description .aiovg-chapter-timestamp",this._seekTo),this._params.deeplinking){let t=new URL(this._currentPageUrl);/\/page\/\d+\/?$/.test(t.pathname)&&(t.pathname=t.pathname.replace(/\/page\/\d+\/?$/,i=>i.endsWith("/")?"/":"")),t.searchParams.set(this._deeplinkParam,e),window.history.replaceState(null,null,t.toString())}},open:()=>{this._params.slider_autoplay&&this.slick.slick("slickPause")},close:()=>{this.iframe=null,this.popup.content.off("click",".mfp-description .aiovg-chapter-timestamp",this._seekTo),this._params.deeplinking&&window.history.replaceState(null,null,this._currentPageUrl),this._params.slider_autoplay&&this.slick.slick("slickPlay")}},gallery:{enabled:!0}}),this._params.deeplinking&&!window.AIOVGIsPopupOpened){let s=window.location.search,a=new URLSearchParams(s);if(a.has(this._deeplinkParam)){let o=parseInt(a.get(this._deeplinkParam)),n=this.$videos.find('[data-id="'+o+'"]').first();if(n.length){let l=this.$videos.find("[data-id]").index(n);this.$videos.magnificPopup("open",l),window.AIOVGIsPopupOpened=!0}}}}_onAfterSlideChange(i,e,t){e.options.maxDots&&n(i,e,t)}_seekTo(i){if(!this.iframe)return!1;let e=parseInt(i.currentTarget.dataset.time);this.iframe.contentWindow.postMessage({message:"aiovg-video-seek",seconds:e},window.location.origin),this.popup.content[0].scrollIntoView({behavior:"smooth",block:"center"})}_onVideoEnded(i){if(!this._params.autoadvance||i.origin!=window.location.origin||!this.iframe||i.source!=this.iframe.contentWindow||!i.data.hasOwnProperty("message"))return!1;"aiovg-video-ended"==i.data.message&&(this.$selectedVideo.is(":last-child")?this._params.loop&&this.popup.next():this.popup.next())}_stopPropagation(i){i.stopPropagation()}}class a extends HTMLElement{constructor(){super(),this.$el=null,this.$videos=null,this.slick=null;let i=window.aiovg_template_slider||window.aiovg_premium;this._isRendered=!1,this._params={},this._forceAutoplay=!1,this._isLastSlide=!1,this._pageTopOffset=parseInt(i.scroll_to_top_offset),this._currentPageUrl=window.location.href,this._deeplinkParam="video",this._onBeforeSlideChange=this._onBeforeSlideChange.bind(this),this._onAfterSlideChange=this._onAfterSlideChange.bind(this),this._seekTo=this._seekTo.bind(this),this._onVideoEnded=this._onVideoEnded.bind(this)}connectedCallback(){if(this._isRendered)return!1;this._isRendered=!0,this.$el=i(this).closest(".aiovg"),this.$videos=this.$el.find(".aiovg-slick"),this._params=this.$el.data("params"),this._params.deeplink_param&&(this._deeplinkParam=this._params.deeplink_param),this._initSlick(),this.slick.on("beforeChange",this._onBeforeSlideChange),this.slick.on("afterChange",this._onAfterSlideChange),this.$el.on("click",".aiovg-player-description .aiovg-chapter-timestamp",this._seekTo),window.addEventListener("message",this._onVideoEnded)}disconnectedCallback(){if(!this._isRendered)return!1;this.slick.off("beforeChange",this._onBeforeSlideChange),this.slick.off("afterChange",this._onAfterSlideChange),this.$el.off("click",".aiovg-player-description .aiovg-chapter-timestamp",this._seekTo),window.removeEventListener("message",this._onVideoEnded)}_initSlick(){this.$el.addClass("aiovg-slick-initialized"),this.$videos.on("init",(i,e)=>{this.$el.find(".aiovg-slick-arrows").show(),e.options.maxDots&&o(i,e)}).slick({appendArrows:this.$el.find(".aiovg-slick-arrows"),prevArrow:this.$el.find(".aiovg-slick-prev"),nextArrow:this.$el.find(".aiovg-slick-next"),appendDots:this.$el.find(".aiovg-section-vi
1deos"),dotsClass:"aiovg-slick-dots",customPaging:(i,e)=>'<div class="aiovg-slick-dot" style="color: '+this._params.dot_color+"; font-size: "+this._params.dot_size+'" role="button">&#9679;</div>'}),this.slick=this.$videos;let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&this.$videos.hasClass("slick-initialized")&&(setTimeout(()=>this.$videos.slick("setPosition"),50),i.disconnect())});i.observe(this)}_onBeforeSlideChange(e,t,s,a){if(s==a)return!1;this.$el.find("iframe").remove();let o=i(t.$slides[a]),n=o.data("src");if(this._forceAutoplay){this._forceAutoplay=!1;let l=new URL(n),r=l.searchParams;r.set("autoplay",1),l.search=r.toString(),n=l.toString()}let d='<iframe src="'+n+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>';if(o.find(".aiovg-player").html(d),this._params.deeplinking){let h=new URL(this._currentPageUrl);/\/page\/\d+\/?$/.test(h.pathname)&&(h.pathname=h.pathname.replace(/\/page\/\d+\/?$/,i=>i.endsWith("/")?"/":""));let p=o.data("id");h.searchParams.set(this._deeplinkParam,p),window.history.replaceState(null,null,h.toString())}}_onAfterSlideChange(i,e,t){this._isLastSlide=!1,t==e.$slides.length-1&&(this._isLastSlide=!0),e.options.maxDots&&n(i,e,t)}_seekTo(e){let t=this.$el.find("iframe").get(0);if(!t)return!1;let s=parseInt(e.currentTarget.dataset.time);t.contentWindow.postMessage({message:"aiovg-video-seek",seconds:s},window.location.origin),i("html, body").animate({scrollTop:this.$el.offset().top-this._pageTopOffset},500)}_onVideoEnded(i){if(!this._params.autoadvance||i.origin!=window.location.origin)return!1;let e=this.$el.find("iframe").get(0);if(i.source!=e.contentWindow||!i.data.hasOwnProperty("message"))return!1;"aiovg-video-ended"==i.data.message&&(this._isLastSlide?this._params.loop&&(this._forceAutoplay=!0,this.$videos.slick("slickGoTo",0)):(this._forceAutoplay=!0,this.$videos.slick("slickNext")))}}function o(e,t){let s=t.$dots;if(!s||!s.length)return;let a=t.options.maxDots;a&&s.find("li").each(function(e){i(this).attr("data-index",e).toggle(e<a)})}function n(e,t,s){let a=t.$dots;if(!a||!a.length)return;let o=t.options.maxDots;if(!o)return;let n=a.find("li"),l=n.length;if(l<=o)return;let r=n.filter(".slick-active");if(!r.is(":visible")){let d=s-Math.floor(o/2);d<0&&(d=0);let h=d+o-1;h>=l&&(d=Math.max(0,(h=l-1)-o+1)),n.each(function(e){i(this).toggle(e>=d&&e<=h)});return}let p=r.prev("li");if(p.length&&!p.is(":visible")){n.filter(":visible").last().hide(),p.show();return}let c=r.next("li");c.length&&!c.is(":visible")&&(n.filter(":visible").first().hide(),c.show())}function l(){i(".aiovg-videos-template-slider").each(function(){let e=i(this);e.hasClass("aiovg-slider-layout-classic")&&0==e.find("aiovg-template-slider").length&&e.wrapInner("<aiovg-template-slider></aiovg-template-slider>"),e.hasClass("aiovg-slider-layout-compact")&&0==e.find("aiovg-template-slider-compact").length&&e.wrapInner("<aiovg-template-slider-compact></aiovg-template-slider-compact>"),e.hasClass("aiovg-slider-layout-popup")&&0==e.find("aiovg-template-slider-popup").length&&e.wrapInner("<aiovg-template-slider-popup></aiovg-template-slider-popup>"),e.hasClass("aiovg-slider-layout-inline")&&0==e.find("aiovg-template-slider-inline").length&&e.wrapInner("<aiovg-template-slider-inline></aiovg-template-slider-inline>")})}i(function(){let o=Promise.resolve();i.fn.slick||"function"!=typeof window.aiovgLoadStyle||(o=window.aiovgLoadStyle({id:"all-in-one-video-gallery-slick-css",href:aiovg_public.plugin_url+"vendor/slick/slick.min.css?ver=1.8.1"}).then(()=>window.aiovgLoadScript({id:"all-in-one-video-gallery-slick-js",src:aiovg_public.plugin_url+"vendor/slick/slick.min.js?ver=1.8.1"}))),o.then(()=>{customElements.get("aiovg-template-slider")||customElements.define("aiovg-template-slider",e),customElements.get("aiovg-template-slider-compact")||customElements.define("aiovg-template-slider-compact",t),customElements.get("aiovg-template-slider-popup")||customElements.define("aiovg-template-slider-popup",s),customElements.get("aiovg-template-slider-inline")||customElements.define("aiovg-template-slider-inline",a),l(),"undefined"!=typeof wp&&void 0!==wp.hooks&&wp.hooks.addFilter("aiovg_block_init","aiovg/videos",function(i){"slider"==i.template&&l()})}).catch(i=>{console.error("Failed to initialize Slick:",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.