PageSourceSearch

https://smp.emokykla.lt/dist/plugins/element_dropdown_notify.min.js?v=9d835eff9c0d7d931105

js emokykla.lt collected 2026-09-24 08:53:51 UTC 1,559 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkPantera=self.webpackChunkPantera||[]).push([[1816],{6482(t,e,n){n.r(e),n.d(e,{default:()=>c});var i=n(8505),o=n(2762),r=n(9531),s=function(t,e,n,i){return new(n||(n=Promise))(function(o,r){function s(t){try{a(i.next(t))}catch(t){r(t)}}function c(t){try{a(i.throw(t))}catch(t){r(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,c)}a((i=i.apply(t,e||[])).next())})};const c=new class{constructor(t){this.router="/router/element/web/dropdown/notify",this.el=t,this._init()}_init(){return s(this,void 0,void 0,function*(){const{socket:t}=yield r.N.socket();this.socket=t,this.contentHelper=new o.Z,this.dropdown=this.el.querySelector(".notify-dropdown"),this.notifyCircle=this.el.querySelector("div.notify-bell-circle"),this.listeners()})}updateNotificationCount(t=1){this.notifyCircle.classList.remove("d-none");const e=Number(this.notifyCircle.innerText||0);this.notifyCircle.innerText=(e+t).toString()}listeners(){this.el.querySelector("a.notify-bell").addEventListener("click",()=>{const t=this.el.dataset.date,e=this;new i.a("/router/element/web/dropdown/notify/notified",{date:t},{json:!0},()=>{e.loadNotifications()})}),this.socket.on("notification",t=>{this.updateNotificationCount(t.number||1),this.dropdown.classList.contains("show")&&this.loadNotifications()})}loadNotifications(){this.contentHelper.load(this.router+"/load",{target:this.dropdown.querySelector(".notify-dropdown-item-wrap")})}}(document.querySelector('div[data-type="element-dropdown-notify"]'))}}]);

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.