(()=>{"use strict";document.addEventListener("DOMContentLoaded",function(){const e=document.querySelectorAll(".ppv_container");function t(e){if(!e)return!1;const n=e.querySelector("iframe:not(.pdfp_library)"),o=e.querySelector(".ppv-lightbox-loading"),l=e.querySelector(".ppv-loading");if(n&&null!==n.contentDocument){const o=n.src;n.src=o,setTimeout(()=>{t(e)},1200)}else o&&(o.style.display="none"),l&&(l.style.display="none")}Object.values(e).map(e=>{const n=Boolean(e.dataset.lightbox),o=document.querySelector(".ppv-lightbox-overlay"),l=e.querySelector(".bplde-lightbox-close");if(n){const n=e.querySelector(".ppv-lightbox-btn");n&&n.addEventListener("click",function(){o.classList.add("open"),t(e)}),l&&l.addEventListener("click",function(){o.classList.remove("open")})}else t(e)})})})();