document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".ablocks-social-share-item").forEach(e=>{const t="true"===e.getAttribute("data-windowspopup");e.addEventListener("click",n=>{const o=window.location.href;!function(e,n){if(e.preventDefault(),t){const e=600,t=400,o=(window.innerWidth-e)/2,i=(window.innerHeight-t)/2;window.open(n,"_blank",`width=${e},height=${t},top=${i},left=${o}`)}else window.open(n,"_blank")}(n,`${e.getAttribute("href")}${o}`)})})});