1import{p as t,g as e,l as n,s as o}from"./Utils.ts-CMmvIm5U.js";import{d as i}from"../../debouncer-DovBpx4g.js";function c(){t((()=>{var t,e,n;if(void 0!==(null==(n=null==(e=null==(t=null==window?void 0:window.FUTR)?void 0:t.Connect)?void 0:e.Auth)?void 0:n.getCookieByName)){const t=window.FUTR.Connect.Auth.getCookieByName("kiosq_user");t&&window.vf.session.login.cookie(t)}})),e.then((({user_privilege:t})=>{n(t)})),t((()=>{const t=t=>{window.dispatchOrQueueAction("tabNotifications.setCount",t)};window.vf.context.get("notifications").then((e=>{e.counts.new>0&&t(e.counts.new)})),window.vf.$subscribe("user-notifications","new-count-changed",(e=>t(e)))})),t((()=>{window.vf.$subscribe("comment","created",(function(){o("elementInteraction",{action:"click",id:"comment-thread",name:"user-top-level-comment",text:"Top Level Post"})})),window.vf.$subscribe("comment-reply","posted",(function(){o("elementInteraction",{action:"click",id:"comment-thread",name:"user-comment-reply",text:"Comment Reply"})}))})),function(){const t=document.querySelectorAll(".viafoura, #viafoura-comment-count-link");if(t){const e=t=>{let e=!1;return["vf-post-form__sign-in-action","vf-post-form__sign-up-action","vf-content-actions__reply","vf-content-editor-actions__submit"].forEach((n=>{t.classList.contains(n)&&(e=!0)})),e};t.forEach((t=>{t.addEventListener("click",i((t=>{if(t.target){const n=t.target.closest("a, button");if(n){if(e(n))return;setTimeout((()=>{o("elementInteraction",{action:"click",id:"comment-thread-element",class:n.className||null,name:n.getAttribute("name")||n.getAttribute("aria-label"),text:n.innerText?n.innerText.trim():null,container:n.nodeName||null})}),0)}}}),200))}))}}()}export{c as i};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.