1import{m as l}from"./module.esm.5ed1e0e7.js";window.Alpine=l;l.start();const i=document.getElementById("my-id-for-chat-notification"),s=document.querySelector(".modalPopup-chat-noti"),c=document.querySelector("#chat-noti");function u(t,e){e&&clearTimeout(e),t&&t.parentNode&&t.remove()}function m(t,e){const o=t.querySelector(".chat-noti-close");!o||o.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),u(t,e)})}function r(t){if(!s||!c)return;const e=s.cloneNode(!0);e.classList.remove("d-none");const o=e.querySelector(".name"),n=e.querySelector(".message-text"),a=e.querySelector(".chat-noti-image");o&&(o.innerText=t.from_username||"New message",o.href="/Inbox/"+(t.inboxKey||"")),n&&(n.innerText=t.message||""),a&&t.from_user_pic&&(a.src=t.from_user_pic);const f=setTimeout(()=>{u(e,null)},5e3);m(e,f),c.append(e)}c&&c.addEventListener("click",t=>{const e=t.target.closest(".chat-noti-close");if(!e)return;t.preventDefault(),t.stopPropagation();const o=e.closest(".modalPopup-chat-noti");o&&o.remove()});if(i!=null&&i.value){const t=window.Echo.channel("chat-notification."+i.value);t.listen(".message-notification",r),t.listen(".message-notification-to-pro",r)}
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.