PageSourceSearch

https://www.ehn.org/static/dist/social-ux/6415.25118bb2595670452395.bundle.mjs

js ehn.org collected 2026-09-24 08:43:36 UTC 2,936 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[6415],{4764:function(n,t,e){e.d(t,{a:function(){return r},v:function(){return u}});var i=e(298);function o(n){return`/core/feeds/site/${n}`}function r(n){return(0,i.mQ)(o(n),"GET")}function u(n,t){return(0,i.af)(o(n),"PUT",{id:n,...t})}},3195:function(n,t,e){function i(n,t){let e,i=null;return function(...o){let r=!0;null!=i&&(r=n.apply(null,i.concat(o))),i=o,r&&(e&&(e(),e=null),e=t.apply(null,o))}}e.d(t,{A:function(){return i}})},5934:function(n,t,e){e.d(t,{N:function(){return h},V:function(){return p}});var i=e(3964),o=e(4764);const r={},u={};function s(n,t){return Boolean(Object.entries(n).find((function([n,e]){return t[n]!==e})))}function c(n){if(!n.permissions.edit_site)throw new Error("You have no permissions to edit this site");return function(n){let t={...n};const e=[];function i(n){n(t)}function r(n){t={...n},e.forEach(i)}return{subscribeToChanges:function(n){e.push(n),n(t)},sendChanges:function(n){if(s(n,t)){const e={...t,...n};(0,o.v)(t.id,e).then(r)}}}}(n)}const f=(0,i.A)((function(n,t,e){const{runnerSite:i,profileSite:r}=e;return t===r.id&&(r.permissions.edit_site||i.permissions.edit_site)?function(n){let t;const e=[];function i(n){n(t)}return n.listenForUserInfo((function(n,o){if(n)return;const{profileSite:r}=o;t={...r},e.forEach(i)})),{subscribeToChanges:function(n){e.push(n),t&&n(t)},sendChanges:function(e){if(s(e,t)){const i={...t,...e};(0,o.v)(t.id,i).then(n.refreshUserInfo)}}}}(n):(0,o.a)(t).then(c)})),l=(0,i.A)((function(n,t){return r[n]=t,t})),a=(0,i.A)((function(n,t){u[n].forEach((([n])=>{n(t)}))})),d=(0,i.A)((function(n,t){u[n].forEach((([n,e])=>{e(t)}))}));function h(n,t){return t in r?Promise.resolve(r[t]):new Promise(((e,i)=>{const o=[e,i];t in u?u[t].push(o):(u[t]=[o],n.getUserInfo().then(f(n,t)).then(l(t)).then(a(t)).catch(d(t)))}))}function p(n,t){const e=t.closest("[data-edit-site-id]");if(e)return parseInt(e.dataset.editSiteId,10);const{settings:{site:i}}=n;return i.isCommunitySite?i.id:void 0}},6415:function(n,t,e){e.r(t),e.d(t,{default:function(){return l},renderEditTitle:function(){return c}});var i=e(3195),o=e(3964),r=(0,o.A)((function(n,t){const{title:e,saveSiteTitle:i}=t;function o(t){const{keyCode:e}=t;if(13===e)return n.blur(),t.preventDefault(),!1}function r(){i(n.textContent)}return n.textContent=e,n.setAttribute("contenteditable",!0),n.addEventListener("keydown",o),n.addEventListener("focusout",r,!0),function(){n.removeEventListener("keydown",o),n.removeEventListener("focusout",r)}})),u=e(5934);function s(n,t){return t.title!==n.title}const c=(0,o.A)((function(n,t,e){return n({saveSiteTitle:function(n){t.sendChanges({title:n})},title:e.title})})),f=(0,o.A)((function(n,t){t.subscribeToChanges((0,i.A)(s,c(r(n),t)))}));function l(n,t){const e=(0,u.V)(n,t);e&&(0,u.N)(n,e).then(f(t)).catch(console.error)}}}]);
2//# sourceMappingURL=6415.25118bb2595670452395.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.