(function(){"use strict";var a={cache:[],wrapper:[],trigger:[],initAll(){const b=["zoom","zoomBack","fade","slide","slideBack","flip","none"];a.cache=document.querySelectorAll(".kadence-video-popup-link");for(let e=0;e{document.querySelectorAll("video.kadence-video-poster").forEach(a=>{a.play()})}),a.trigger[e].on("open",()=>{document.querySelectorAll("video.kadence-video-poster").forEach(a=>{a.pause()})}),a.trigger[e].open()})}else{if("mobile"===k){const b=a.cache[e]?.getAttribute("data-href-mobile");b&&a.cache[e].setAttribute("href",b)}const b=GLightbox({selector:".kadence-video-popup-link[data-popup-class=\""+h+"\"]",touchNavigation:!0,skin:"kadence-dark",loop:!1,openEffect:c,closeEffect:c,autoplayVideos:i,preload:!1,plyr:{css:kadence_pro_video_pop.plyr_css,js:kadence_pro_video_pop.plyr_js,config:{hideControls:!0,ratio:n,youtube:{noCookie:j},vimeo:{dnt:j}}},cssEfects:{flip:{in:"flipIn",out:"flipOut"},zoomBack:{in:"zoomBackIn",out:"zoomBackOut"}}});b.on("slide_before_load",()=>{const a=document.getElementById("glightbox-body");h&&a&&(a.classList="",a.classList.add("glightbox-container"),a.classList.add("glightbox-kadence-dark"),a.classList.add(h))}),b.on("slide_after_load",a=>{const b=a.slideConfig.href.match(/^(.*vimeo.com\/|.*video\/)?(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);if(b){const c=a.slideNode.querySelector("iframe");c.src=c.src+"&h="+b[b.length-1]}}),b.on("close",()=>{document.querySelectorAll("video.kadence-video-poster").forEach(a=>{a.play()})}),b.on("open",()=>{document.querySelectorAll("video.kadence-video-poster").forEach(a=>{a.pause()})})}}},init(){if("function"==typeof GLightbox)a.initAll();else var b=setInterval(function(){"function"==typeof GLightbox&&(a.initAll(),clearInterval(b))},200)},getActiveSize(){return 768