PageSourceSearch

https://www.commondreams.org/static/dist/social-ux/2379.daf463a7ec8ff059e1ce.bundle.mjs

js commondreams.org collected 2026-09-24 08:28:24 UTC 2,521 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[2379],{3195:function(t,n,e){function s(t,n){let e,s=null;return function(...o){let i=!0;null!=s&&(i=t.apply(null,s.concat(o))),s=o,i&&(e&&(e(),e=null),e=n.apply(null,o))}}e.d(n,{A:function(){return s}})},1592:function(t,n,e){e.d(n,{A:function(){return i}});var s=e(6382);const o=(0,e(3964).A)((function(t,n,e,s,o){return s().then((n=>n(t))).then((t=>t(n,e,o)))}));function i(t,n,e,i){const r=t in window.RM_OVERRIDES?window.RM_OVERRIDES[t]:null,l=r||i;return(0,s.A)().then((t=>{const s=o(t,n,e),u=r?()=>s(i,null):null;return s(l,u).then((n=>[t,n]))}))}},4868:function(t,n,e){e.d(n,{U:function(){return o}});var s=e(3964);const o=(0,s.A)(((t,n,e,s,o)=>{e.classList.add("loaded","rm-preact");const i=t.preact.h(n,s);return t.preact.render(i,e,o)}));n.A=(0,s.A)((function(t,n,e,s){return o(t,n,e,s,null)}))},2379:function(t,n,e){e.r(n),e.d(n,{default:function(){return p},renderFollowButton:function(){return g}});var s=e(88),o=e(1592),i=e(4868),r=e(3195),l=e(3964),u=e(7611),c=e(298),f=(0,l.A)((function(t,n,e,s,o){const i=((t,n,e,s,o)=>{const i={status:o};return"sections"===t?i.section_id=n:(i.id=s,i.site_id="sites"===t?n:e,i.tag_id="tags"===t?n:void 0),i})(t,n,e,s,o);return(0,c.af)(((t,n)=>"sections"===t?"/core/feeds/site/follow_sections/":`/core/feeds/site/follow/${n}`)(t,s),"PUT",i)}));const a=(0,l.A)(((t,n,e)=>e.profileSite.follow[t].includes(n))),d=(0,l.A)(((t,n,e,s,o)=>n!=s||t(o)!==t(e))),g=(0,l.A)(((t,n,e,s,o,i,r,c)=>{let f=null,a=!1,d=!1,g=!1;if(r||(d=!0,a=t(c),f=c.profileSite.id),f&&"sites"===e&&f===s)return;const A=(0,l.A)(((t,n)=>{if(d&&!g)return g=!0,i(f,!t).then(h).catch(console.error),n.preventDefault(),!1}));function h(t){n.refreshUserInfo(),p(t.status)}function p(t){const n={isLoggedIn:d,following:t,toggleFollow:d?A(t):u.A};o(n)}p(a)})),A=(0,l.A)(((t,n,[e,o])=>{let l,u;const c=t.settings.runner.id;if("authorId"in n.dataset)l="sites",u=parseInt(n.dataset.authorId,10);else{const e=n.closest("article[elid]");e?(l="sites",u=(0,s.A)(`.post-context-${e.getAttribute("elid")}`,e).post.authors[0]):t.settings.section.id?(l="sections",u=t.settings.section.id):t.settings.tag.slug?(l="tags",u=t.settings.tag.slug):(l="sites",u=t.settings.site.id)}const A=a(l,u);t.listenForUserInfo((0,r.A)(d(A),g(A,t,l,u,(0,i.A)(e,o,n),f(l,u,c))))})),h=()=>e.e(5922).then(e.bind(e,5922)).then((t=>t.default));function p(t,n){(0,o.A)("FollowButton",t,{},h).then(A(t,n))}}}]);
2//# sourceMappingURL=2379.daf463a7ec8ff059e1ce.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.