1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[3590],{3195:function(t,n,e){function r(t,n){let e,r=null;return function(...i){let o=!0;null!=r&&(o=t.apply(null,r.concat(i))),r=i,o&&(e&&(e(),e=null),e=n.apply(null,i))}}e.d(n,{A:function(){return r}})},1592:function(t,n,e){e.d(n,{A:function(){return o}});var r=e(6382);const i=(0,e(3964).A)((function(t,n,e,r,i){return r().then((n=>n(t))).then((t=>t(n,e,i)))}));function o(t,n,e,o){const u=t in window.RM_OVERRIDES?window.RM_OVERRIDES[t]:null,c=u||o;return(0,r.A)().then((t=>{const r=i(t,n,e),a=u?()=>r(o,null):null;return r(c,a).then((n=>[t,n]))}))}},4868:function(t,n,e){e.d(n,{U:function(){return i}});var r=e(3964);const i=(0,r.A)(((t,n,e,r,i)=>{e.classList.add("loaded","rm-preact");const o=t.preact.h(n,r);return t.preact.render(o,e,i)}));n.A=(0,r.A)((function(t,n,e,r){return i(t,n,e,r,null)}))},3590:function(t,n,e){e.r(n),e.d(n,{default:function(){return I},renderRiverTopBar:function(){return C}});var r={};e.r(r),e.d(r,{clearCounter:function(){return v},getCounter:function(){return _},getCounterUpdates:function(){return A},getLastPublishedPosts:function(){return g}});var i=e(1592),o=e(3195),u=e(4868),c=e(3964),a=e(8879),s=e(298);const l=new Map,f=new Map,d=(0,c.A)((function(t,n){n(t)})),p=(0,c.A)((function(t,n){l.get(t).forEach(d(n)),f.set(t,setTimeout((()=>{h(t)}),1e4))}));function h(t){_(t).then(p(t)).catch(console.error)}const m=(0,a.A)((function(t,n){if(!l.has(t))return;const e=l.get(t);e.delete(n),0===e.size&&f.has(t)&&clearTimeout(f.get(t))}));function A(t,n){l.has(t)||l.set(t,new Set);const e=l.get(t);return e.add(n),1===e.size&&h(t),m(t,n)}function _(t){return(0,s.mQ)(`/core/river/counter/${t}`,"GET")}function v(t){return(0,s.mQ)(`/core/river/counter/${t}`,"DELETE")}function g(t,n,e){return(0,s.mQ)(`/core/river/?offset=${t}&limit=${n}&clear_unread=${e}`,"GET")}const E=()=>e.e(2886).then(e.bind(e,2886)).then((t=>t.default)),R=[4,27,28];function T(t,n,e,r){return t!=e||r.profileSite.title!==n.profileSite.title}function U(t){return{...t,isUnread:!1}}function w(t){const{emitter_site_title:n,emitter_site_name:e,id:r,message_html:i,emitter_avatar:o,post_permalink:u,reply_url_param:c,created_date_html:a,created_time_html:s,event_type_id:l}=t;return{id:r,message:i,siteName:e,siteTitle:n,siteAvatar:o,permalink:[u,c].filter(Boolean).join("?"),fullDate:`${a} ${s}`,date:a,eventType:l,isUnread:!1}}function k(t){return t.map(w)}function y(t){return t.isUnread}const C=(0,c.A)((function(t,n,{getCounterUpdates:e,clearCounter:r,getLastPublishedPosts:i},o,u){if(o)return console.error(o),null;let s=-1;const{profileSite:l}=u,f=l.display_logo,d=l.title;function p(t){return n.includes(t.eventType)}function h(t){return t.filter(p)}const m=(0,a.A)((function(t){s=0,r(l.id),A(t.map(U))}));function A(n){t({notifications:n,picture:f,username:d,count:n.filter(y).length,markAllAsRead:m(n)})}const _=(0,c.A)((function(t,n){return n.map(((n,e)=>({...n,isUnread:e<t})))})),v=e(l.id,(function(t){var n;t.count>s&&(s=t.count,n=s,i(0,20,0).then(k).then(h).then(_(n)).then(A))}));return A([]),v})),$=t=>parseInt(t,10),b=(0,c.A)((function(t,n,[e,i]){const c=n.dataset.events?n.dataset.events.split(",").map($):[...R];t.listenForUserInfo((0,o.A)(T,C((0,u.A)(e,i,n),c,r)))})),S=()=>e.e(4004).then(e.bind(e,4004)).then((t=>t.default));function I(t,n){(function(t){return(0,i.A)("RiverNotificationItem",t,{},E)})(t).then((([e,r])=>{(0,i.A)("RiverTopBar",t,{Notification:r},S).then(b(t,n)).catch(console.error)})).catch(console.error)}}}]); 2//# sourceMappingURL=3590.5459ea884b96e188fe4b.bundle.mjs.map
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.