PageSourceSearch

https://www.alternet.org/static/dist/social-ux/7953.aa773583923fad5ada75.bundle.mjs

js alternet.org collected 2026-09-24 08:31:36 UTC 3,777 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[7953],{3906:function(n,e,t){t.d(e,{NC:function(){return c},aq:function(){return i},z$:function(){return l}});var o=t(298);function r(n){return n?`/core/v1/communities/${n}/shared/posts`:"/core/v1/users/me/saved/posts"}function s(n){return n?"/core/v1/folders/communities/shared/posts/labels":"/core/v1/folders/users/saved/posts/labels"}function u(n){return n?`/core/v1/communities/${n}/shared/posts/labels`:"/core/v1/users/me/saved/posts/labels"}function i(n,e){const t=(n?u:s)(e);return(0,o.mQ)(t,"GET")}function l(n,e,t){const s=r(n),u={labels:t,post:{id:e,timestamp:parseInt(Date.now()/1e3,10)}};return(0,o.af)(s,"POST",u)}function c(n,e,t){const s=r(n),u={labels:t,post:{id:e,timestamp:parseInt(Date.now()/1e3,10)}};return(0,o.af)(s,"DELETE",u)}},3195:function(n,e,t){function o(n,e){let t,o=null;return function(...r){let s=!0;null!=o&&(s=n.apply(null,o.concat(r))),o=r,s&&(t&&(t(),t=null),t=e.apply(null,r))}}t.d(e,{A:function(){return o}})},1592:function(n,e,t){t.d(e,{A:function(){return s}});var o=t(6382);const r=(0,t(3964).A)((function(n,e,t,o,r){return o().then((e=>e(n))).then((n=>n(e,t,r)))}));function s(n,e,t,s){const u=n in window.RM_OVERRIDES?window.RM_OVERRIDES[n]:null,i=u||s;return(0,o.A)().then((n=>{const o=r(n,e,t),l=u?()=>o(s,null):null;return o(i,l).then((e=>[n,e]))}))}},4868:function(n,e,t){t.d(e,{U:function(){return r}});var o=t(3964);const r=(0,o.A)(((n,e,t,o,r)=>{t.classList.add("loaded","rm-preact");const s=n.preact.h(e,o);return n.preact.render(s,t,r)}));e.A=(0,o.A)((function(n,e,t,o){return r(n,e,t,o,null)}))},6326:function(n,e,t){function o(n,e,t,o){return n!=t||o.profileSite.id!==e.profileSite.id}function r(n){return"group"===n.type_name.toLowerCase()}function s(n){const e=n.sites.find(r);return e&&e.permissions.edit_folder_items?e.id:null}function u(n){return!!n.profileSite.permissions.edit_folder_items}t.d(e,{PA:function(){return o},rz:function(){return u},z3:function(){return s}})},7953:function(n,e,t){t.r(e),t.d(e,{default:function(){return g},renderFoldersButton:function(){return A}});var o=t(1592),r=t(4868),s=t(3195),u=t(3964),i=t(7611),l=t(3906),c=t(9124),a=t(48),d=t(6326);function f(n){return{...n,icon:window.RM_FOLDER_ICONS[n.slug]}}function p(n){return window.RM_FOLDER_ICONS&&Object.keys(window.RM_FOLDER_ICONS).length>0?n.map(f):n}function m(n){return{...n,type:"custom"}}function h(n){return{...n,type:"global"}}const A=(0,u.A)((function(n,e,t,o,r,s){if(r)return void n({success:null,folders:[],teamFolders:[],isLoggedIn:!1,getFolders:i.A,addToFolders:i.A,disabled:!1});const u=(0,d.z3)(s),l=(0,d.rz)(s);if(!u&&!l)return void n({success:null,folders:[],teamFolders:[],isLoggedIn:!0,getFolders:i.A,addToFolders:i.A,disabled:!0});let c=[],a=[],f=null;function A(){n({success:f,addToFolders:g,folders:c,teamFolders:a,getFolders:F,isLoggedIn:!0,disabled:!1})}function b(){f=!0}function v(){f=!1}function g(n,t){const r=[o(null,e,n)];return u&&t.length>0&&r.push(o(u,e,t)),Promise.all(r).then(b).catch(v).finally(A)}function w([n,e,t,o]){c=n&&e?p([...n.labels.map(h),...e.labels.map(m)]):[],a=t&&o?p([...t.labels.map(h),...o.labels.map(m)]):[],A()}function F(){f=null,A();const n=[];l?n.push(t(),t(!0)):n.push(Promise.resolve(null),Promise.resolve(null)),u&&n.push(t(!1,u),t(!0,u)),Promise.all(n).then(w).catch(v).finally(A)}A()})),b=(0,u.A)((function(n,e,[t,o]){const u=e.closest("article[elid]").getAttribute("elid");u&&n.listenForUserInfo((0,s.A)(d.PA,A((0,r.A)(t,o,e),u,l.aq,l.z$)))})),v=()=>t.e(378).then(t.bind(t,378)).then((n=>n.default));function g(n,e){(0,c.r)(n).then((function(t){(0,o.A)("FoldersButton",n,{Informer:t,raiseNotification:a.A},v).then(b(n,e))}))}}}]);
2//# sourceMappingURL=7953.aa773583923fad5ada75.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.