File: /home/alfouzantranspor/public_html/wp-content/plugins/kadence-blocks/dist/lazy-loader.js
(()=>{"use strict";((t={rootMargin:"300px 0px"})=>{const e=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting){e.unobserve(t.target);const a=t.target.dataset.kadenceLazyAttrs;a&&(a.split(",").forEach(e=>{const a=t.target.getAttribute(`data-kadence-lazy-${e}`);if(a){const r=t.target.getAttribute(e);if("class"===e)t.target.classList.add(...a.trim().split(/\s+/));else{const s=r?`${r.trim()} ${a}`.trim():a;t.target.setAttribute(e,s)}}}),[...t.target.attributes].filter(t=>t.name.startsWith("data-kadence-lazy")).forEach(e=>t.target.removeAttribute(e.name)),window.dispatchEvent(new CustomEvent("kadence-lazy-loaded",{detail:{element:t.target}})))}})},t);return{observeElements:(t="[data-kadence-lazy-trigger='viewport']")=>{document.querySelectorAll(t).forEach(t=>e.observe(t))}}})().observeElements(),(this.kadence=this.kadence||{})["lazy-loader"]={}})();