(()=>{const t=window,e=document;var n=t.tpdCommentsCTA,o={getCommentingElementSelector:function(){let t=document.querySelector("#tpd-comments-container");return t?(t.style.scrollMarginTop="60px","#tpd-comments-container"):null},getAnchorCTAElements:function(){return e.querySelectorAll(".comments-cta-anchor")},updateAnchorLinks:function(){let n=o.getCommentingElementSelector();if(!n)return;let r=o.getAnchorCTAElements();r.length&&(t.tpd=t.tpd||{},t.tpd.scrollIntoViewOfCommentingForTpdTheme=t=>{t.preventDefault(),e.querySelector(n).scrollIntoView({behavior:"smooth",block:"start"})},r.forEach(t=>{t.addEventListener("click",window.tpd.scrollIntoViewOfCommentingForTpdTheme)}),r.forEach(t=>{t.setAttribute("data-google-interstitial","false")}))},updateComments:function(t){for(var n=e.querySelectorAll(".comments-cta-count span"),o=0,r=n.length;o{if(200===t.status)return t.json();throw`comments cta disqus error with status ${t.status}`}).then(e=>{t=e.messages_count[n.post_id],o.updateComments(t)}),o.updateAnchorLinks()}}};o.getCommentCount()})(); //# sourceMappingURL=comments-cta.min.js.map