1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[5134],{3906:function(n,t,e){e.d(t,{NC:function(){return l},aq:function(){return s},z$:function(){return c}});var r=e(298);function o(n){return n?`/core/v1/communities/${n}/shared/posts`:"/core/v1/users/me/saved/posts"}function u(n){return n?"/core/v1/folders/communities/shared/posts/labels":"/core/v1/folders/users/saved/posts/labels"}function i(n){return n?`/core/v1/communities/${n}/shared/posts/labels`:"/core/v1/users/me/saved/posts/labels"}function s(n,t){const e=(n?i:u)(t);return(0,r.mQ)(e,"GET")}function c(n,t,e){const u=o(n),i={labels:e,post:{id:t,timestamp:parseInt(Date.now()/1e3,10)}};return(0,r.af)(u,"POST",i)}function l(n,t,e){const u=o(n),i={labels:e,post:{id:t,timestamp:parseInt(Date.now()/1e3,10)}};return(0,r.af)(u,"DELETE",i)}},3195:function(n,t,e){function r(n,t){let e,r=null;return function(...o){let u=!0;null!=r&&(u=n.apply(null,r.concat(o))),r=o,u&&(e&&(e(),e=null),e=t.apply(null,o))}}e.d(t,{A:function(){return r}})},1592:function(n,t,e){e.d(t,{A:function(){return u}});var r=e(6382);const o=(0,e(3964).A)((function(n,t,e,r,o){return r().then((t=>t(n))).then((n=>n(t,e,o)))}));function u(n,t,e,u){const i=n in window.RM_OVERRIDES?window.RM_OVERRIDES[n]:null,s=i||u;return(0,r.A)().then((n=>{const r=o(n,t,e),c=i?()=>r(u,null):null;return r(s,c).then((t=>[n,t]))}))}},4868:function(n,t,e){e.d(t,{U:function(){return o}});var r=e(3964);const o=(0,r.A)(((n,t,e,r,o)=>{e.classList.add("loaded","rm-preact");const u=n.preact.h(t,r);return n.preact.render(u,e,o)}));t.A=(0,r.A)((function(n,t,e,r){return o(n,t,e,r,null)}))},6326:function(n,t,e){function r(n,t,e,r){return n!=e||r.profileSite.id!==t.profileSite.id}function o(n){return"group"===n.type_name.toLowerCase()}function u(n){const t=n.sites.find(o);return t&&t.permissions.edit_folder_items?t.id:null}function i(n){return!!n.profileSite.permissions.edit_folder_items}e.d(t,{PA:function(){return r},rz:function(){return i},z3:function(){return u}})},5134:function(n,t,e){e.r(t),e.d(t,{default:function(){return C},renderFoldersPostManager:function(){return _}});var r=e(1592),o=e(4868),u=e(3195),i=e(367),s=e(3964),c=e(7611),l=e(48),f=e(3906),a=e(6326);const d=/(community|user)\((?:\d+)\):(?:saved|shared)([a-z0-9_-]*)?/i,p=/^-/,m={},h={},A=(0,s.A)((function(n,t){return m[n]=t,t})),v=(0,s.A)((function(n,t){n.forEach((([n])=>n(t)))})),b=(0,s.A)((function(n,t){n.forEach((([n,e])=>e(t)))}));function E(n){return n.slug}function w(n){return n?n.labels.map(E):null}function P(n){return n.map(w)}function g(n){const t=n.profileSite.id;return t in m?Promise.resolve(m[t]):new Promise((function(e,r){const o=[e,r];if(t in h)return void h[t].push(o);h[t]=[o];const u=(0,a.z3)(n),i=[];(0,a.rz)(n)?i.push((0,f.aq)(),(0,f.aq)(!0)):i.push(Promise.resolve(null),Promise.resolve(null)),u&&i.push((0,f.aq)(!1,u),(0,f.aq)(!0,u)),Promise.all(i).then(P).then(A(t)).then(v(h[t])).catch(b(h[t]))}))}const _=(0,s.A)((function(n,t,e,r,o,u,s,l,f){let d=!1,p=null,m=c.A,h=null,A=!1,v=!l;function b(){d||n({isLoggedIn:v,disabled:A,success:h,isInFolder:p,onClick:m})}if(l)return p=!1,void b();const E=(0,a.z3)(f);function w(){h=null}function P(){A=!0}const g=(0,i.A)((function(){A=!1}),b),_=(0,i.A)(P,w,b,(function(){u(t?null:E,r,[e]).then(C).catch(I).finally(g)})),z=(0,i.A)(P,w,b,(function(){s(t?null:E,r,[e]).then(y).catch(I).finally(g)}));function y(){h=!0,p=!0,m=_}function C(){h=!0,p=!1,m=z}function I(){h=!1}return o(f).then((function([n,r,o,u]){const[i,s]=t?[n,r]:[o,u];(i&&i.indexOf(e)>=0||s&&s.indexOf(e)>=0)&&(m=_,p=!0)})).catch(I).finally(b),function(){d=!0}})),z=(0,s.A)((function(n,t,[e,r]){const i=t.getAttribute("elid"),s=t.closest(".posts-custom");if(!i||!s)return;const{attrFrom_buckets:c}=s.dataset;if(!c||(l=c,!d.test(l)))return;var l;const[m,h]=function(n){const[t,e,r]=n.match(d);return["user"===e,r?r.replace(p,""):null]}(c);if(!h)return;const A=document.createElement("div");A.classList.add("rm-folders-toggle-button"),t.appendChild(A),n.listenForUserInfo((0,u.A)(a.PA,_((0,o.A)(e,r,A),m,h,i,g,f.NC,f.z$)))})),y=()=>e.e(4439).then(e.bind(e,4439)).then((n=>n.default));function C(n,t){(0,r.A)("FoldersPostManager",n,{raiseNotification:l.A},y).then(z(n,t))}}}]); 2//# sourceMappingURL=5134.5107e2fc8a353d1672af.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.